Hi Ashish,
Thanks again for the info.
I redefined using the service /IWPGW/TASKPROCESSING in SEGW.
Then i added our custom entity type with few properties -> created the entity set -> created the association to TaskCollection -> Generated the runtime artfacts.
Then in the data provider ext class, i redefined the below methods and placed breakpoints in all of them to check by debugging as to which methods would i actually need to add our code for retrieving the data.
GET_ENTITYSET
GET_ENTITYSET_DELTA
GET_EXPANDED_ENTITYSET
GET_EXPANDED_ENTITY
CASE_GET_ENTITY
CASE_GET_ENTITYSET.
I added our code in CASE_GET_ENTITY.
I tested with the URL /sap/opu/odata/sap/ZVFIORI_2_SRV/TaskCollection('000016511673')/InvoiceDetails
I debugged the method CASE_GET_ENTITY and it works fine. However, i get an error saying "Type of data container returned by DPC is wrong. 'Structure' is expected." I am not sure why this is happening. After debugging a bit more, i found that the error happens as the if statement fails at line 123 of class /IWBEP/CL_MGW_ABS_DATA method READ_ENTITY. Any idea as to what is missing?
From your other post, you mentioned that you will need to redefine few more methods. How do you determine as to which method should be redefined? What methods am i missing?
Thanks,
Varun