1. A method for adjusting a mobile function during a planned disconnect from an enterprise server, comprising: analyzing an enterprise application linked to a mobile device application, wherein the enterprise application is located on the enterprise server; determining that the enterprise application performs a first set of roles; analyzing the mobile device application on a mobile device, including analyzing a user interface structure on the mobile device, wherein the analyzing the mobile device application uses query analysis; determining that the mobile device application performs a second set of roles, wherein the second set of roles is a subset of the first set of roles, and wherein the determining comprises filtering data based on usage of the data by the mobile device application, where the data is a subset of an entire dataset for the enterprise application; identifying a loop in the mobile device application that includes multiple application navigation occurrences to a first data query; applying a first limit to the loop in response to the identifying the loop; receiving an input parameter at the mobile device application; generating a mobile data structure in response to the determining that the mobile device performs the second set of roles, wherein the mobile data structure is stored on the mobile device, and wherein the mobile data structure is configured to perform the second set of roles; receiving an indication of a planned disconnect of the mobile device application from the enterprise application; and storing, in response to the receiving the indication of planned disconnect, the generated data structure in the mobile device for disconnected execution.