Show TOC

Selecting the Data SourceLocate this document in the navigation structure

Procedure

The Data Model that you create can contain multiple operations for an SAP function, or recorded screens referred to as a data source.

To create a Data Model using one of the data sources:

  1. Start transaction SE80.

  2. Select SAP GW Data Model from the drop-down list.

  3. Enter a name for the model in the Model Name field (maximum of 24 characters), for example, ZJWTEST, and then press Enter.

    A popup informs you that this object does not exist and asks if you wish to create it.

    Note

    If you are creating the Data Model in the local namespace, the model name must start with, for example, Z.

  4. Select Yes and the Create Data Model popup displays, with the model name you entered above displaying in the Name field.

  5. Press F4 in the Type, and choose PS (Public Solution Model).

    The Data Model automatically generates the following models:

    • PS (Public Solution Model):

      Maps the model to its data source through a transformation mechanism.

    • UC (User Centric Model):

      Translates the data exposed in the PS model into a model that can be used natively by a consumer application.

      Note

      The tool does not generate the UC model.

    The model types describe how objects from the SAP backend system are transformed into external objects that can be used

  6. Choose Generate from Data Source Object. Version (read-only) displays as 0001 (first version).

  7. Select the option, OData Channel and then select the green check mark to continue.

    If you remove the selection for the option, OData Channel, the model is generated in the Generic Channel.

    The Create Data Model popup displays, with the model name you entered above displaying in the Name field.

    Enter the following:

    • In Description, enter a suitable description for the Data Model. It can contain a maximum of 40 characters. This is a mandatory.

    • In Data Source Type, select the data source for your model. The Data Source Type determines which data source appears in the left-hand section of the Data Model Generator screen.

      The following are the data source types:

      • Business Object Repository (BOR)

      • Screen Scraping

      • Remote Function Calls (RFC)

    • In System Alias, enter the System Alias for the SAP backend system to which you want to connect, for example, EX1_201.

      Alternatively, press F4. The list only shows the aliases of SAP systems defined in SAP Gateway. Select the alias for a SAP system in which the operations you want are available.

      Note

      For OData Channel Data Models, take note of the system alias you have specified. Later, you are required to manually configure the service document generated for your model with the system alias information.

  8. Choose Continue. The Create Object Directory Entry popup displays.

  9. Select Local Object or a package and the Save icon. The Data Model Generator screen displays with the data source information on the left-hand side.

You can choose to display the entities in the data source in alphabetical order (the default) or in a hierarchical structure by using the Alphabetical or Hierarchical tabs at the top.

Note

The Hierarchical tab is not available if Screen Scraping or RFC is your data source.

The next step is to map the operations, data, and attributes from the data source to the Data Model.