Skip to Content
0
Former Member
Dec 26, 2015 at 01:21 AM

GET_ENTITY with several key fields

4250 Views

Hi,

in my entity model, the entity (e.g. MyEntity) consists of two key fields instead of one.

How do I have to call the URI for a entity set with 2 key values in order to receive one entity (MyEntity is the entity and MyEntityCollection is the set of MyEntity) using the service sap/opu/odata/sap/Ztest_srv/MyEntityCollection but without using an additional filter?

E.g. something like sap/opu/odata/sap/Ztest_srv/MyEntityCollection('..<key1>..', '..<key2>..')?

The idea is to get the corresponding internal array it_key_tab filled automatically.


Yours

Stephan