cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Gateway get_expanded_entityset with Navigation Properties from different Entitys

felix_mairon
Discoverer
0 Kudos

Hello,

I am building a Gateway Service in the SEGW transaction. I already worked through:

and got it working for my own Data Model, which simplified looks like this:

Both Aggregations have a 1..N Cardinality and the necessary Navigation Properties:

With http://xxxxx/Landscapes?$expand=LandscapeSystems I can already get the Landscapes and the according Systems.

What I would like is, that i can get the Interfaces nested to the Systems in the same Request (to reduce the number of Request to a single one when loading the complete data.)

Using http://xxxxx/Landscapes?$expand=LandscapeSystems,SystemInterfaces doesn't work. (Propably because SystemInterfaces doesn't belong to Landscape Entity?)

Is there any other way to get the nesting over more than one level?

Thanks for any help and suggestions!

Kind regards,

Felix

Accepted Solutions (1)

Accepted Solutions (1)

EkanshCapgemini
Active Contributor
0 Kudos

Hi Felix,

Try http://xxxxx/Landscapes?$expand=LandscapeSystems/SystemInterfaces . This will identify Systems associated with Landscapes and Interfaces associated with those Systems.

You can check the URI convention URI Conventions | OData - The Protocol for REST APIs  .

Regards,
Ekansh

felix_mairon
Discoverer
0 Kudos

Hi,

thanks for the quick answer! Works without a problem

Regards,

Felix

Answers (0)