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

multi-level associations using deep structure for get_expanded_entity

$
0
0

Hi experts,

 

I am redefining the get_expanded_entity for a service with multi-level associations.

 

I have an association SalesOrderHeader->SalesOrderItem->ScheduleLines.

 

I have created a deep structure ls_header which has-

     1. include type for header properties.

     2. table for item data.

     3. another deep structure ls_item, which has-

          1. include type for item properties.

          2. work area for schedule lines.

 

The debugger shows all the data for header, item and schedulelines filled in the deep structure correctly.

But the output at the gateway client shows only the header and item data; doesnt show scheduleline data. (URL- /sap/opu/odata/SAP/ZSO_TEST_SRV/SOHeaderSet('100006')?$expand=SOItemSet/SOScheduleSet).

 

This is the code for expanded clauses for the navigation properties-

        ls_expanded_clause1  = 'SOItemSet/SOScheduleSet'.

        APPEND ls_expanded_clause1 TO et_expanded_tech_clauses.


Where am I going wrong?


Thank you in advance,

-Nimish Kate


Viewing all articles
Browse latest Browse all 2823

Trending Articles