An SAP business object is an object whose methods have been implemented as BAPIs (Business Application Programming Interfaces).
A BAPI is a remote callable ABAP function module that has been written to conform to a strict set of design constraints. These business objects are aggregated together by the SAP Business Object Repository (BOR).
You select a BAPI (the method of a business object), map selected operations and fields from the BOR to a Data Model, and the Data Model Generator then automatically generates the PS (Public Solution) and DS (Data Source) models and the mapping metadata required by SAP Gateway.
Some BAPIs are not supported by the Data Model Generator tool, to help you identify the BAPIs that can be used in the Data Model Generator tool, see Data Model Generator Support for Data Sources.
You can quickly create a Data Model from a BAPI for use as a service in SAP Gateway.
The following is an overview of the sequence of tasks to perform in order to generate a Data Model based on BOR data sources:
Create your Data Model using BOR as the data source.
For more information, see Selecting the Data Source.
Map the data entities in the selected BAPI to specific operation types in your Data Model.
For more information, see Creating the Mapping.
Set keys for the mapped operations.
For more information, see Assigning Keys to Operations.
Generate the Data Model.
For more information, see Generating the PS and DS Data Models.
Add your generated model to a Consumption Model.
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.
Optionally, you can test the generated service.
To create a Data Model using the Data Model Generator tool and to test the generated SAP Gateway service, see SAP Gateway Generators Cookbook.