Deploying the Device Application

Deploy the SMP101 application to the iPhone simulator for testing.

Prerequisites
Register an application connection in SAP Control Center.

You must be connected to the server where the mobile application project is deployed.

Task
  1. From the top menu, select Product > Scheme > Edit Scheme and change to iOS 7.0 Simulator.

    SMP101 | iPhone 7.0 Simulator Scheme
  2. Select Product > Build then Product > Run to build the project and start the iPhone simulator.
  3. In the iPhone applications screen, open the SMP101 application.
    When you run the application for the first time, it exits immediately with a dialog asking you to enter the application settings in the Settings application.
  4. In the iPhone simulator, go to Settings > SMP101 to enter the connection settings.
    • SMP Server – the machine that hosts the server where the SMP101 mobile application project is deployed.
    • SMP Server Port – SAP Mobile Server port number. The default is 5001.
    • Farm ID – an identifier for the SAP Mobile Server Cluster for which a Relay Server manages requests. For this tutorial, accept the default value 0.
    • SMP Username – the user to be authenticated, supAdmin.

    iPhone Simulator - SMP101 Connection Settings

    If the Manual registration switch is off, the application attempts an automatic registration, creating an application registration with the same name as the SAP Mobile Platform user name ("supAdmin" in this example). This allows a client with a valid SAP Mobile Platform user name and password to connect and register with the server without manual registration.

    If the Manual registration switch is on, the connection name and activation code must be filled in, and must match an application connection that has already been created in SAP Control Center (see Registering the Application Connection in SAP Control Center).

  5. In the iPhone applications screen, reopen the SMP101 application.
    Enter a pin with which to securely store your SAP Mobile Platform password, and a database encryption key that is generated when the application launches. For subsequent launches of the application, you need only enter the PIN.
  6. Enter a PIN, and enter the password for the SAP Mobile Platform user name entered in step 4.
  7. Click Synchronize.
  8. Click List.
  9. Select a customer record from the customer list and double-click to open the detail view.
    The customer detail shows the First Name, Last Name, and Phone.
  10. Change the First Name to something else, and click Update.