Configuring Gateway and ODATA Services
The SAP Gateway must be configured to receive and execute OData requests.
Enabling ICM Services
OData operates on the HTTP or HTTPS protocol. Therefore, the Internet Communication Manager (ICM) must enable the corresponding services.
You should set the following SAP profile parameters using Tcode:RZ10
icm/server_port_0 = PROT=HTTP,PORT=<http port>,TIMEOUT=7200,PROCTIMEOUT=7200
icm/server_port_1 = PROT=HTTPS,PORT=<https port>,TIMEOUT=7200,PROCTIMEOUT=7200
Activating the SAP Gateway
The following are the steps to activate the SAP Gateway:
Call transaction SPRO and click SAP Reference IMG.
Right-click on node SAP NetWeaver > SAP Gateway > OData Channel > Configuration >Activate or Deactivate SAP Gateway and select Edit Activity from the context menu.
If the message in the dialog reads "SAP Gateway is currently active,” click Cancel. Otherwise, click Activate.
Defining SAP System Alias for Backend System
The below steps help to define an SAP system alias for the backend system in the gateway system:
Call transaction SPRO and click SAP Reference IMG.
Right-click on node SAP NetWeaver >SAP Gateway >OData Channel >Configuration > Connection Settings >SAP Gateway to SAP System >Manage SAP Aliases and select Edit Activity from the context menu.
If the backend SAP system appears in the list, you are done. Otherwise:
Click New Entries.
Specify SAP System Alias, a Description, the RFC Destination (NONE for embedded deployment), the System ID and the Client of the backend SAP system. Check flag Local GW and enter DEFAULT for Software Version.
Click Save (Ctrl+S).
Setting up SAP Gateway in the Backend System
The following steps can be used to set up the SAP gateway in the backend system:
Call transaction SPRO and click SAP Reference IMG.
Right-click on node SAP NetWeaver >SAP Gateway Service Enablement >Backend OData
Channel >SAP Gateway Settings and select Edit Activity from context menu.
If the Gateway system appears in the list, you are done. Otherwise:
Click New Entries.
Specify Destination System, Client, System Alias and RFC Destination.
Click Save (Ctrl+S).