Show TOC

Create a Data Model from BOR Data SourceLocate this document in the navigation structure


This tutorial uses the BAPIs of the SAP User objects that are available in any SAP NetWeaver AS ABAP system.

You can perform these steps based on the User data that exists locally in the SAP Gateway system or User data that resides in another backend SAP Business Suite system.


Familiarize yourself with the function modules for the user objects, such as, BAPI_USER_GETLIST. Refer to the function module documentation for the BAPI in transaction SE37.


The SAP Gateway data model you create will have the operations you want to perform at runtime, mapped to specified data and attributes.


You create a data model from any data source using the steps below.

At runtime, your data model will be exposed to SAP Gateway services to invoke the operations that you defined at design time, returning data to the end user.

  1. Logon to the SAP Gateway system, and enter transaction SE80.

  2. In the Object Navigator, choose the object type SAP GW Data Model from the drop down.


    The data model name you specify does not change.

  3. Enter a name, for example, Z_USER_BOR as the name of the data model and press Enter.

  4. Select Yes when prompted to create the data model object.

    Confirm the message to create the model

  5. In the Create Data Model dialog, press F4 in Type and select PS (for Public Solution model) as the data model type.

  6. Select Generate from Data Source Object, and select OData Channel checkbox, and then click the check mark to continue.

  7. In the Create Data Model <Model Name> do the following:

    • Enter a description, this is mandatory.

    • In Data source type, select BOR.

    • In System Alias (pre-configured in SAP Gateway), press F4 and choose a system alias according to where the User object data resides; locally or in another backend system. .


      For OData Channel data models, take note of the system alias information, as you are required to provide it later on.

  8. Click Continue.

  9. Specify a package to which your objects can be saved for transport purposes. Select an appropriate package or select Local Object to save as local objects that will not be transported.

    The Create Data Model screen displays.


You have successfully created a new data model. Continue with Mapping the Operations.