I have implemented GET_EXPANDED_ENTITY method to makes use of Data Provider expand framework. I have defined relations, associations, navigation as well. My problem is that when I am using the URI /sap/opu/odata/SAP/ZPUR_HEA_ITE_SRV/PHeaderSet('4500004837')?$expand=HeadtoItem, GET_EXPANDED_ENTITY is called successfully and in turn GET_ENTITY is called as well.
But I am not getting the complete response . I am getting blank header and no expanded items are present in the output. I can see only header with blank values. Please suggest me on how to get rid of this. Awaiting your thoughts