
You create the data model for the service by redefining the service of the ODP framework.
To create services for the extraction of ODP data, you can use the wizard in the SAP Gateway Service Builder.
You have opened the previously created project in the SAP Gateway Service Builder (transaction SEGW). If the project is not open, choose
Project
Open
.
Redefine
ODP Extraction
. The system opens the popup Wizard - Step 1 of 3: OData Access for Operational Data Provisioning. You specify ODP-specific parameters here.
The RFC destination describes the connection between the system that you are using the SAP Gateway Service Builder to define the ODP OData service on (SAP Gateway Application) and the back end system that the ODPs should be distributed to other systems from.
Background: With the configuratio of the system alias for the OData service and an optional BAdI implementation, the connections in the processing of an OData request between the SAP Gateway hub, the SAP Gateway Application and the BW back end system can be defined. Various combinations are possible for this. Two extreme scenarios are as follows:
All three systems are located on the same system (embedded deployment).
All three systems are located on different systems that are connected via an RFC connection.
Select an ODP and press Add ODP. For ODP contexts that offer a hierarchy, yo can select the ODP from the hierarchy by pressing
(Hierarchy).
The ODP is added to the table displayed in the popup.
If you want to enhance the data model of the service, add the associated ODPs. You can add master data ODPs to a fact ODP for example, and then add text ODPs to them.
You can use the following pushbuttons for this:
Pushbutton |
Description |
|---|---|
|
You can use this button to delete one or more selected ODPs from the data model. |
|
You can add the associated ODPs to the data model for one or more selected ODPs. |
(Delete Associated ODPs) |
You can remove the associated ODPs from the data model for one or more selected ODPs. |
The system opens the popup Wizard - Step 2 of 3: OData Access for Operational Data Provisioning. Here you define the name for the service-specific classes, the model and service name, and the package and transport request.
Fields |
Description |
|---|---|
Package |
Enter the package name in which generated artefacts (in particular model provider class and data provider class) should be after being generated. |
Transport Request |
Enter a valid transport request number. |
Model Provider Class |
The system creates a proposal for the name in accordance with the following naming convention: CL_<Projektname>_MPC_<X>. You can change this proposal. |
Data Provider Class |
The system creates a proposal for the name in accordance with the following naming convention: CL_<Projektname>_DPC_<X>. You can change this proposal. |
Mode name, version and description |
|
Service Name, Version and Description |
|
The system opens the popup Wizard - Step 3 of 3: OData Access for Operational Data Provisioning. The system displays all generated artefacts of the service here. This includes in particular the entity types for the selected ODPs, together with function imports. The generated function imports are operations that are specific for ODP extraction, such as terminating the delta extraction (TerminateDeltasForFactsOf<ODP-Name>).
The Service Builder runs a consistency check and dislays a message accordingly. The data model is created (model provider class), and the service is implemented (data provider class).
The artefacts selected during definition of the data model are displayed in the corresponding Data Model folders for the project. In the Model References folder, the name and version of the service are displayed. The Service Implementation folder contains references to the operations and methods for the service.