Generating Object API Code

Launch the code generation wizard and generate the object API code for a replication-based iOS application.

  1. In SAP Mobile WorkSpace, open the SMP101 mobile application project.
    In WorkSpace Navigator, right-click the SMP101 folder and select Open in Diagram Editor.
  2. Right-click anywhere in the SMP101 - Mobile Application Diagram and select Generate Code.
  3. On the Code generation configuration screen, click Next.
  4. Make sure the Customer and Sales_order MBOs are selected, then click Next.
  5. In the Configure Options page, specify these values and click Finish.
    Option Description
    Language Select Objective C.
    Platform Accept the default, iOS.
    Mobile Server Select My Mobile Server.
    Server domain Accept default. If you are not connected to SAP Mobile Server, this field is empty. Connect to SAP Control Center to proceed.
    Page size Accept the default or select a larger page size.
    Name prefix The prefix for the generated files. Leave blank.
    Project path Accept the default or enter a different location for the generated project files.
    (Optional) Clean up destination before code generation Delete all items in the destination folder before generating the device client files.

    Generate Code - Configure Options page
  6. Click OK in the Success dialog.
    Objective-C code is generated into the specified output location and in the WorkSpace Navigator.