Show TOC

Maintaining Models and ServicesLocate this document in the navigation structure

To retrieve data from a backend system, you have to define a service in the backend system. First you have to define a model, then define a service, and finally assign the model to the service.

Maintain Model

Start the SAP Reference IMG (transaction SPRO) and choose Start of the navigation path SAP NetWeaver Next navigation step SAP Gateway Service Enablement Next navigation step Backend OData Channel Next navigation step Service Development for Backend OData Channel Next navigation step Maintain Models End of the navigation path.

To maintain models, proceed as follows:

  1. Click on the Activity icon.

  2. Enter a Technical Model Name, which can include a namespace within /, for example, /MYNAMESPACE/.

  3. Enter 0001 as Model Version.

  4. Choose Create. You can also display, edit or delete an existing model.

  5. Enter the Model Provider Class, which is the name of the class providing metadata for this model.

  6. Enter an explanatory text as Description.

  7. Save your settings.

Maintain Service

Start the SAP Reference IMG (transaction SPRo) and choose Start of the navigation path SAP NetWeaver Next navigation step SAP Gateway Service Enablement Next navigation step Backend OData Channel Next navigation step Service Development for Backend OData Channel Next navigation step Maintain Service End of the navigation path.

To maintain the service, proceed as follows:

  1. Click on the Activity icon.

  2. Enter a Technical Service Name, which can include a namespace.

  3. Enter 0001 as Version.

  4. Choose Create.

  5. Enter the Data Provider Class, which is the name of the class providing the runtime data for this service This class implements the interface /IWBEP/IF_MGW_CORE_SRV_RUNTIME.

  6. Enter an explanatory text as Description.

  7. Save your settings.

Assign Model to Service

To assign your model to a service, proceed as follows:

  1. Choose Assign Model.

  2. Enter the Technical Model Name and the corresponding Model Version, which you created in Maintain Models.

  3. Choose Save.