Show TOC

Activating the Service on the HubLocate this document in the navigation structure

Use

We now activate the service on the SAP Gateway hub, as follows:

  1. Log on to your corresponding SAP Gateway hub server.

  2. Start transaction SPRO.

  3. Open the SAP Reference IMG and navigate to Start of the navigation path SAP NetWeaver Next navigation step SAP Gateway Next navigation step Administration Next navigation step OData Channel End of the navigation path.

  4. Execute the action Register Remote Services:

  5. On the Register Remote Services screen, select the appropriate backend server and enter the name of the service you created earlier:

    Register Remote Services screen

  6. Select the Execute button at the top of the screen or press F8.

    The service appears in the table under Status of ICF Services, marked as inactive (Status column is red).

  7. Activate the service by selecting the line in the table and pressing Enable Service.

  8. Choose a local package and start the URL in the browser. You should now be able to see the metadata XML file exposed by the generated metadata class.

  9. To check the ICF services, start transaction SICF and expand the service tree to display the services as shown below (Start of the navigation path default_host Next navigation step sap Next navigation step opu Next navigation step sdata Next navigation step iwfnd Next navigation step sap End of the navigation path):

    Display SICF services

  10. Check that the service we created displays in the list.

Result

The service is activated. The generated metadata can be retrieved at: http://<server>:<port>/sap/opu/sdata/sap/ZHS_EPM_FILE_IMP_TUTORIAL_SERV/$metadata?sap-client=100&$format=xml

An example for retrieving the dummy goods issue collection can be seen at: http://<server>:<port>/sap/opu/sdata/sap/ZHS_EPM_FILE_IMP_TUTORIAL_SERV/GoodsIssueCollection?sap-client=100&$format=xml

An example for retrieving detailed information about a specific item can be seen at: http://<server>:<port>/sap/opu/sdata/sap/ZHS_EPM_FILE_IMP_TUTORIAL_SERV/GoodsIssueCollection(10)?sap-client=100&$format=xml