Skip to Content
avatar image
Former Member

Consume XS oData Service (with CalculationView) in SAP Gateway via Transaction /IWBEP/OCI_SRV_GEN

Hello and good morning wxperts,


SAP_GWFND - 740 - 0014 - SAPK-74014INSAPGWFND - SAP Gateway Foundation 7.40


I have a severe problem with consuming a HANA XS oData-service in SAP Gateway, that embeds a CalculationView with several input-parameters as follows:

service {
"playground.USERNAME::CV_AS_SEARCH_COMBINED" as "ArticleSearchList"
keys generate local "ID"
parameters via entity;

When i call the Service in my Browser i get a nice and wonderful response with the Data I wish to have, all the parameters work as designed.

In the metadata of the Serivce in the browser I can see the automatic generated key:

<EntityType Name="ArticleSearchListType">
<PropertyRef Name="ID"/>
<Property Name="ID" Type="Edm.String" Nullable="false" MaxLength="2147483647"/>

Out of reasons of single point of entry and hiding the HANA etc. we want to "route" all oData-Services including this one over our SAP Gateway System.

So naturally I use the OSCI - Feature of SAP Gateway and want to generate the Gateway-Service out of the defined HANA XS oData-Service via transaction


Connection to HANA is established in SM59, and the service generates beautifully.

When i want to activate the Service via


the system generates a Shortdump:

The problem is the length of the automatic generated OData-Key in our Unicode System. The Calculation View doesnt have a unique key, so I think I have to generate it in the oData definiton.
Any Ideas how I can resolve that?

If any further information is needed, just tell me and I will provide.

I really hope you can help me.

Best wishes


en-1.png (46.0 kB)
en-23.png (43.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Apr 27, 2018 at 03:16 PM


    Were you able to resolve this issue? What was the resolution?



    Add comment
    10|10000 characters needed characters exceeded