Show TOC

Register the Model / ServiceLocate this document in the navigation structure

Use
The registration process of models and services is based on IMG activities and underlying repository objects. In order to allow collecting authorizations per data provider class a repository object type is available. This is integrated into transaction SU22 See also Roles in the SAP Gateway Landscape . The following repository object types are available:
  • R3TR IWSV: Logical transport object for the transport of an OData Channel service in the system where IW_BEP is deployed (applicable for systems based on an SAP NetWeaver release lower than 7.40).
  • R3TR IWMOLogical transport object for the transport of an OData Channel model in the system where IW_BEP is deployed, to be in line with the transport concept of an OData Channel service (applicable for systems based on an SAP NetWeaver release lower than 7.40).
The foundation on repository objects has the following impacts:
  • Models and services are only transported via the transport objects.
  • The external name of a service is derived from the technical name and cannot be freely defined to ensure a GTADIR connection to guarantee unique Services. You create service /MYNAMESPACE/MYSERVICE version 0001 which then results in http://host:port/sap/opu/odata/mynamespace/MYSERVICE.
The activities are part of the OData Channel implementation guide (IMG) on the backend system to maintain services / models and services:
  • Maintain models

  • Maintain services

In transaction SPRO open the SAP Reference IMG and navigate to 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 and Maintain Services.
Define Model
  1. In the IMG navigate to Maintain Models and click on the Activity icon.
  2. Enter the Technical Model Name.

    Example

  3. Choose Change to assign the model provider class. Enter a model description.

    Example

  4. Save the model, specify a package assignment and add it to a valid transport request.
  5. Ensure the model is working fine by choosing Check Model. A success message displays, indicating that the model is correct.

    Example

Define Service
  1. In the IMG navigate to Maintain Services and click on the Activity icon.
  2. Enter the Technical Service Name.

    Example

  3. Choose Change to assign a data provider class and enter a service description.

    Example

  4. Save the service, specify a package assignment and add it to a valid transport request.
  5. Choose Assign Model to assign the model to the service.

    Example

  6. Save your settings. After saving the service / model assignment is finished.

    Example

Result
You have now maintained and registered your service in the backend system. You can use the old view cluster display all registered services and models (IMG activity Display Models and Services).