Binding a Mobile Business Object to an SAP Object

Bind the attributes and operations of a mobile business object to an SAP object.

Prerequisites 

Create the mobile business object (MBO).

This topic assumes you are familiar with the methods that are available in your SAP system.


  1. Open the MBO that you want to bind to an SAP object.
  2. Right-click the MBO in the mobile application diagram and select Detailed Properties.
  3. In the Mobile Business Object Properties dialog, select the General tab and verify that the Syncable property is checked.
  4. Select the Connection tab, then define the connection details:
    1. Click Select to the right of the Connection field.
    2. Select Define Connection Now.
    3. Select SAP as the Connection Type.
    4. For the Connection Name, either select the name of an existing SAP connection, or click New and create a new connection. Click OK.
    5. Select one of the following:
      • Use Default Authentication.
      • Override Default Authentication – next, enter the authentication details.
      Note: Using default authentication, data-source connections are pooled. If you override default authentication, data-source connections are created when they are needed, then released.
  5. Select the Definition tab, then define the SAP method to map to the MBO:
    1. To the right of the BAPI Methods field, choose Select.
    2. In the Select SAP Operation dialog, select either:
      • Browse from Object Hierarchy – next, select Browse, and select the method.
      • Find Objects and Methods – next, find the method by entering a filter pattern for either an object or the method itself, then clicking Find.
    3. Select the method in the BAPI/RFC list, then click OK.
    4. Select the either the Table Parameters tab or theParameters tab.

      If the BAPI method has parameters, they display here. To define parameters, select Input or Output, then enter the table values.

      For help setting table parameters, see the BAPI User Guide.

    5. To see the results of using the specified values, click Preview Data.
  6. To define MBO attributes, select the Attributes tab, then:
    • To add an attribute above the currently selected attribute, click the table icon Insert Attribute.
    • To insert an attribute at the end of the list, click the table icon Add Attribute.
    • To delete an attribute, select the row, then click the Scissors icon.
    • To increase or decrease the number of fields displayed, click More or Less at the bottom of the page.
  7. Map the MBO attributes to the SAP data source columns.
  8. To specify MBO parameters and map them to arguments in the SAP operation, select the Parameters tab. For each parameter, specify:
    Option Description
    Name Parameter name.
    Note: Parameter names cannot contain C# or Java reserved words.
    Datatype Parameter datatype.
    Argument SAP argument name.
    Datatype Datatype of the SAP argument.
    Default Value Default argument value.
    Filter By Define the argument as a field that can be used to filter the results that are downloaded to mobile devices.
    Personalization Key If you select Filter By, you can select a personalization key to map to the argument, which provides an argument value.
  9. Click OK.
Next Deploy the MBO project to Unwired Server.
Related concepts
Synchronization
Connection Pools
Related tasks
Mapping Attributes to Data Source Columns
Configuring Your Environment for SAP
Creating a Mobile Business Object and Deferring Data Source Binding
Related reference
Mobile Business Object Properties


Created September 17, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com