Skip to Content
0
Nov 06, 2020 at 08:56 AM

SAPUI5 - oData expand multiple associations

253 Views

Hi

I have an oData Entity with multiple associations. Like this:

PurchaseOrder
---> PurchaseOrderItems (PurchaseOrderToItems)

---> PurchaseOrderPartners (Po2Partners)

I can expand the items with

/sap/opu/odata/SAP/ZVDKONTRAKT_SRV/PurchaseOrderSet('4500000313')?$expand=PurchaseOrderToItem

But i wan´t to expand bot in one call. How do i do that?

/sap/opu/odata/SAP/ZVDKONTRAKT_SRV/PurchaseOrderSet('4500000313')?$expand=PurchaseOrderToItem,Po2Partners

Returns error...

Please note: PurchaseOrderPartners is a subset of PurchaseOrder NOT Items!