Hi Experts,
I have redefined the GET_EXPAND_ENTITY method of DPC_EXT class where I want to handle the various $expand query possible for my OData service.
I have one scenario, in which I have associations of 1. PO Item Detail to PO Item History, 2. PO Item Detail to PO Item Schedules and 3. PO Item Detail to PO Item Text.
In the below query, I am trying to fetch the Item Details for PO Item No '00010', along with its Histories, Schedules and Texts.
....local:8001/sap/opu/odata/.../POItemDetails(PONumber='4500018976',POItemNumber='00010')?$expand=POItemSchedules%2CPOItemHistorySet%2CPOTexts
The method GET_EXPAND_ENTITY is having an importing parameter IV_ENTITY_SET_NAME which holds the source entity set name i.e. POItemDetails.
Similarly one more importing parameter IO_EXPAND (Type Ref to /IWBEP/IF_MGW_ODATA_EXPAND) holds one table MT_CHILDREN, whose NAV_PROP_NAME field holds the Navigation Property Names of the above mentioned Associations. i.e. (POItemHistorySet, POItemSchedules or POTexts respectively)
I need to read the values of this MT_CHILDREN[] table in order to get the navigation property names and to make RFC destination call for each one of them.
This MT_CHILDREN is an private attribute in /IWBEP/CL_MGW_EXPAND_NODE class.
Please help me out with reading either MT_CHILDREN[] table values(the syntax), or any other technique to get the expanded entity set names (i.e. POItemHistorySet, POItemSchedules or POTexts).
Screen shots have been attached for your reference.
Regards,
Priyanka P