Show TOC

Generating an SAP Gateway Service for ODataLocate this document in the navigation structure

  1. Logon to the SAP Gateway Hub system where IW_BEP 200 and IW_FND are installed.

  2. Go to transaction SEGW.

  3. You can either Create a Project or open an existing project.

  4. If you are editing an existing project, click Display-Change.

  5. Expand the project and in the context menu of Data Model, choose Start of the navigation path Redefine Next navigation step OData Service End of the navigation path.

  6. In the Wizard Step 1 of 3: Redefine External OData Service screen, enter the following:

    Field

    Description

    HTTP Destination

    To select the HTTP Destination:

    1. Press F4 on the keyboard and choose the connection type.

      • G for HTTP Connection to External Server

      • H for HTTP Connection to Internal Server

    2. Choose Continue.

    3. Choose the RFC destination from the list.

    Service Namespace

    Enter the appropriate Service Namespace.

    For example, in the external OData Service, http://services.odata.org/Northwind/Northwind.svc/Information published on non-SAP site, Northwind is the Service Namespace

    Note

    You can leave this field blank if the source OData service you are using does not have a Service Namespace.

    Service Name

    Enter the appropriate Service Name.

    For example, in the external OData Service, http://services.odata.org/Northwind/Northwind.svc/Information published on non-SAP site, Northwind.svc is the Service Name

    Note

    You can leave this field blank if the source OData service you are using does not have a Service Name.

    HTTP Header

    Select the check box.

    Enter the HTTP Header names which will be passed / received by the consuming applications for the external OData Service you are using.

    Note

    You can pass either the request header name or response header name or both depending on the external OData service you are using.

  7. Click Next.

  8. In the Wizard Step 2 of 3: Redefine Service screen, enter descriptions for model name and service name.

  9. In the Wizard Step 3 of 3: Redefine Service screen, choose the OData artifacts which should be a part of the service you are generating and click Finish.

  10. Once the service is generated, you need to register and activate the service. See, Service Maintenance for more information.

    Note

    Before activating the service, make sure you have Created an SAP System Alias that points to the same RFC destination that is used to create the service.

Back to Creating an RFC Destination.