Skip to Content
1
Jan 15, 2021 at 01:21 PM

Issue in Registering OData Service on SAP Gateway from an External System.

105 Views Last edit Jan 15, 2021 at 02:08 PM 4 rev

Hi All,

We are trying to Generate an OData Service on SAP Gateway (Version 7.5) connecting to an external system (SAP MII).

We are referring to the following link for Generating Service based on OData.

Generating an SAP Gateway Service for OData

As per the link, it requires to have a connection type 'G' or 'H' to the external system.

We already have a RFC Connection to the external system which works fine as it is being used to pull data from external system.

On selecting the RFC Connection type G and clicking on next, we get the error message as "RFC Connection should be type 'G' or 'H'.

On checking the standard code, we found that it is happening because of an incorrect IF Condition in the code.

Ideally the Operator AND should have been used instead of OR.

Program Name : /IWBEP/SAPLFG_SBUI_OCI_GA_SPEC

Include : INCLUDE /iwbep/ifg_sbui_oci_ga_specf01.

We searched for an SAP Note as well to see if there is any correction note available but could not find anything helpful.

Please let us know if there is any other approach that should be used for generating OData Service from external systems.

We also tried by-passing the condition in debug mode just to check if we are able to go further but encountered another error in next screen. The error mentioned to "Fill in mandatory fields" however we have entered data for all the input fields.

Please let us know if there is any other approach that needs to be followed to generated ODATA Service from external system..

Thanks,

Vaibhav Maheshwari

Attachments

incorrect-code.png (12.3 kB)