The Data Model Generator tool enables you to create a Data Model from a specified data source without having to write any code. Later, you generate a service for use in SAP Gateway from the Data Model.
The data sources available in the Data Model Generator tool are as follows:
Business Object Repository (BOR)
BOR contains business objects, their properties, and connecting operations as BAPIs.
For more information, see Business Object Repository.
Screen Scraping contains recordings of screens you wish to be exposed by the Data Model.
For more information, see Screen Scraping.
Remote Function Calls (RFC)
RFC contains remote function modules.
For more information, see Remote Function Calls.
The Data Model Generator automatically generates the following:
Meta models: PS (Public Solution) Model, DC (Data Centric) Model, and mapping.
Runtime artifacts in the Generic Channel: structure type container, BOP (Backend Operation Proxy) and BSO (Backend Service Object) and Mapping Specialist. These are either generated or a generic is provided; this varies depending on the data source type.
OData Channel runtime artifacts use the BOP.
Configuration entries for default configuration (Generic Channel only).
We recommend that you plan the model before using the generator tool to create it. You should know the functionality you want to provide, as well as the nodes and fields that you want the model to contain.
Having a plan helps you to properly design your model so that the SAP Gateway service you generate, can meet your needs.
In addition, familiarize yourself Open Data (OData) protocol, as the services you create and expose through SAP Gateway are OData compliant.
To use the Data Model Generator tool, make sure that you have configured a system alias defined in SAP Gateway.
For more information, see System Alias Configuration in the SAP Gateway.
To use Screen Scraping data sources in the Data Model Generator tool, you must have the following:
Install the component, IW_SCS 200 (IW_SCS which is available with SAP NetWeaver 7.0 SPS18 and higher, in your backend system (SAP Business Suite system).
For more information, see Installing SAP Gateway Components.
Configured roles, users, and authorizations for transactions and search help to determine users’ access to these objects in each SAP backend system.
For more information, see Assigning Authorization to Transaction and Search Help.
The procedures for creating a Data Model and generating content are the same for all data sources, and the chosen data source displays on the Data Model Generator screen.
The following is a high level overview of the sequence of tasks for creating a Data Model and generating the models:
From the SAP Gateway host, use transaction se80 to start the SAP Gateway Data Model tool.
For more information, see Selecting the Data Source.
Map the operations, data objects, and properties from the selected data source to your Data Model.
For more information, see Creating the Mapping.
Assign an attribute to a key for each operation you have mapped to the Data Model.
For more information, see Assigning Keys to Operations.
Generate the PS and DC Models (generating the Data Model and associated models).
For more information, see Generating the PS and DS Models.
Manually create a Consumption Model and add your Data Model to it.
For more information, see Manually Add Your Model to a Consumption Model.
Manually configure the system alias for the service document.
For more information, see Configuring the System Alias for your Service Document.
Later, you can edit and modify the content of the Data Model after it has been generated. For more information, see Editing a Data Model.
To get started and test the services you create, see SAP Gateway Generators Cookbook.