cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

Hello and good morning wxperts,

System:

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

SAP HANA SPS 12


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">
<Key>
<PropertyRef Name="ID"/>
</Key>
<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

"/IWBEP/OCI_SRV_GEN"

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

When i want to activate the Service via

"/IWFND/MAINT_SERVICE"

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

Martin

hasnaa_ech
Explorer
0 Kudos

Hello Martin,

We are actually facing the same problem, did you find out the solution?

It is highly appreciated if u can help to solve the issue.

Thanks

Hasnaa

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member188396
Participant
0 Kudos

Hi,

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

Thanks,

Bhavik