Show TOC

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

Use

  1. Logon to the SAP NetWeaver 7.4 system.

  2. Go to transaction SEGW.

  3. You can either create a new project or open an existing project.

  4. If you are editing an existing project, click Display - Change ( 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. Click Next.

  10. 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.

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