Show TOC

Configuring the System Alias for your ServiceLocate this document in the navigation structure

Procedure

After adding your Data Model to a consumption model, you must enable SAP Gateway to correctly identify the SAP backend system that can process OData requests from the newly created service.

Recommendation

We highly recommend to configure the system alias for the generated service using the procedures below whenever the service is transported to another SAP Gateway server that has been configured with a different system alias.

You enable SAP Gateway to route the processing of OData request by manually assigning a system alias to the service.

Note

Skip this section if you have Generic Channel Data Models.

The procedures in this section apply only to OData Channel Data Models.

To assign the system alias to a service:

  1. Use transaction SPRO, select Start of the navigation path SAP reference IMG  Next navigation step SAP Customizing Implementation Guide Next navigation step SAP NetWeaver Next navigation step  SAP Gateway Next navigation step  OData Channel  Next navigation step  Administration  Next navigation step General Settings Next navigation step Assign SAP System Aliases to OData Service End of the navigation path.

  2. Choose New Entries and enter the following:

  3. In the column, Service Doc. Identifier, enter the name of your Data Model and add to the end of the name, the suffix _0001.

    For example, ZUSER_BOR_0001

  4. In the column, SAP system alias, press F4 and select the system alias from the list displayed.

    For example, EX1_800.

    The system alias you choose should be the same system alias you defined while creating the Data Model.

  5. Click Save to save your configuration settings.

Alternatively, use the transaction, SM30. In Table/View, enter the name /IWFND/V_MGDEAM, switch to edit mode and repeat steps two to five above.

You can see different views of the service in the consumption model using the XML and the Metadata buttons.

Assign the New System Alias to a Service after Transport (applicable to Generic Channel Data Models)

There is a direct connection between the SAP Gateway service and the system alias that you specified.

You must assign the new system alias information to a service whenever the service is transported to another SAP Gateway server that has been configured with a different system alias.

Note

The procedures in this section apply only to Generic Channel Data Models.

Use the procedure in the section above if you have OData Channel Data Models.

To assign the new system alias:

  1. Use transaction SPRO, select Start of the navigation path SAP reference IMG  Next navigation step SAP Customizing Implementation Guide Next navigation step SAP NetWeaver Next navigation step  SAP Gateway Next navigation step  Generic Channel  Next navigation step  Administration  Next navigation step General Settings Next navigation step Assign SAP System Aliases to OData Service End of the navigation path.

  2. Press Ctrl +F1 to switch to the edit mode.

  3. In the column, Service Doc. Identifier, locate the name of your Data Model

    For example, /IWFND/ZUSER_BOR_0001

  4. In the column, SAP system alias, press F4 and select the applicable system alias from the list displayed.

    For example,EX2_800.

  5. Click Save to save your configuration settings.