Generating a Service for Extracting ODP Data via OData
To generate an OData service for extracting ODP data, you need to perform various steps in SAP Gateway Service Builder.
Context
There are various functions available in SAP Gateway Service Builder, which you need in order to generate and register the OData service. These functions include a wizard, which requests values for different parameters that are part of the ODP OData service. These values include:
-
an RFC destination to address the target system, for which an ODP context and any required number of ODPs can be selected
-
an ODP context
-
the ODPs required for a self-contained data extraction scenario
Using the service you can generate the following artifacts in a customer package:
-
The provider classes
-
Model provider class for accessing model metadata
-
Data provider class for data access
-
-
Artifacts for service registration
-
Model (R3TR IWMO)
-
Service (R3TR IWSV)
Procedure
- Create a project.
- Define the data model of the service. In the data model, specify which operational data providers will be provided for extraction.
- Save the project.
- Generate the runtime objects. Proceed as described in the SAP Gateway documentation for generating ABAP classes. The system suggests names for the artifacts to be created.
- Register the service. Proceed as described in the SAP Gateway documentation for service administration.