Skip to Content
avatar image
Former Member

Get Entity Set whit input parameters?

I have the same problem that is presented here https://archive.sap.com/discussions/thread/3538309 and mention that the solution is to create a navigation to the same entity is the answer, could someone support me with the steps? Since I've tried, but without success ...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 03 at 04:37 AM

    Suppose your parent entity is SalesOrder and requirement is to get some other SalesOrders which are children to a single SalesOrder whose key you already have. You need to follow as below -

    1. Create an entity SalesOrder.

    2. Create a navigation -GetDependents from SalesOrder Entity to SalesOrder Entity referencing the keys and cardinality( should be 1 to N).

    3. Trigger Call as

    /sap/opu/odata/sap/my_service/SalesOrder('key_object_num_here')?$expand=GetDependents

    -> GW Framework will First Read the Sales Order which matches the key provided and then get all the other SalesOrder and populate the data.

    Add comment
    10|10000 characters needed characters exceeded