Hi,
Am new to Odata world and i have following scenario and would like to know how to achieve it.
Structure-1 - ProductionOperationConfirmation
Structure-2 - GoodsMovement
Create below objects and their Associations as well..
Entity Type-1- ProductionOperationConfirmation
Entity Type-2- GoodsMovement
Entity Set-1- ProductionOperationConfirmations
Entity Set-2- GoodsMovements
By standard definition following URI works fine:
/sap/opu/odata/sap/ZPP_PRODOPS_CONFIRM_SRV/ProductionOperationConfirmations('0000000357')/GoodsMovements
It retrives me the list of components, for the given Confirmation# - this is for 2 separate views on UI (standard app)
But my intention is to get detail for a given Confirmation# along with table of all Components assigned to it in one go:
the simple reason being i would like to see both these data on a single view for my UI design.
/sap/opu/odata/sap/ZPP_PRODOPS_CONFIRM_SRV/ProductionOperationConfirmations('0000000357')?$expand=GoodsMovements
Reading through several blogs here, i started by using METHOD /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_EXPANDED_ENTITY
I could populate the Confirmation and the said components list here but upon final output on the gatewayclient all i see is the ProductionOperationConfirmation alone without any GoodsMovements data (attachment ouptut.txt).
Is my scenario even valid or where am i going wrong in the approach ?
Appreciate all help...
Thanks,
Ram