Selecting OData service (for OData script)

 

EasyInput can use Open Data  Protocol services (OData) from SAP or external sources[1]. OData standard documentation can be found under this address: https://www.odata.org . Selecting OData service will be shown below based on SAP OData service.

 

An SAP system in particular in S4HANA version have hundreds of already prepared, ready-to use OData services. One can use them to execute transactions and report data. On web page https://api.sap.com one can fond documentation of API OData services (there are much more than this in the SAP system). Additionally one can check SAP Fiori documentation https://fioriappslibrary.hana.ondemand.com to check OData services used via each SAP Fiori transaction.

 

In the SAP system OData services can be realized in two versions: OData V2 (older) and OData  V4 (newer). A lot of already existing services was implemented in OData V2 version. Newer services are usually implemented in V4 version. The documentation of SAP API V2 and V4is included in SAP Gateway documentation (https://help.sap.com) .

 

OData version 2 in SAP

In SAP system the activation and maintenance of OData services version 2.0 is done using transaction /n/IWFND/MAINT_SERVICE. In this transaction one can browse already activated OData services and activate new ones (button Add service). To create a new SAP OData V2 service use transaction  SEGW in SAP GUI.

OData version 4 in SAP

SAP OData V4 services can be administrated with transaction /n/IWBEP/V4_ADMIN. The creation of OData V4 services is done in ABAP/Eclipse environment.

Other useful SAP OData transactions

Transaction

Description

/n/IWFND/GW_CLIENT

Testing V2 and V4 SAP OData services.  Allows to check how the service works and is recommended before using SAP OData service in EasyInput.

/n/IWFND/CACHE_CLEANUP

Clearing cache for ODATA V2 services

/n/IWBEP/CACHE_CLEANUP

Clearing cache for ODATA V4 services

/n/IWFND/ERROR_LOG

LOG checking for OData V2 and V4

/n/IWFND/TRACES

Trace analysis for OData V2 and V4

 

Creation of OData script in general is described here.

Adding Odata script with Odata script generation window is described here.





[1] Some OData services cannot be used with EasyInput (e.g. because of OData version or authentication solution).