Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Exporting deep structure in a single call

$
0
0

Hi all,

 

I'm looking for some clarification on 'exporting' a deep structure via OData / Gateway. Based on some importing parameters, I have to return a structure which has several properties (columns).

 

Some of these columns are structures or even table types which in turn can have structures and/or table types themselves. Is it possible to fill the export structure as a whole within a single request?

 

I know it is possible to use expand to return (for example) for a single business partners all of his orders and order items. But these are based on the following model (hierarchy):

 

partner data

     sales orders

          sales order items

 

A single request in such a case would look something like this ....../PartnerCollection(PartnerID='000123')?$expand=SalesOrders,SalesOrders/OrderItems

 

But what about a structure like this:

 

partner data

     sales orders[]

          sales order items[]

     Addresses[] "Where a partner can have several different addresses for example

 

Sales Orders and Addresses are on the same level in the hierarcy, but I would like to return all the data in a single call.

 

If the latter is possible, how would such a request look like?

 

Kind regards,

 

Micky.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>