Hi Experts,
I have developed one ODATA service where I have created the Entity type and its Entity Set.
Entity type is created based on back end RFC parameters.
Here I have two options, first is binding the Get Entity and Get Entity Set operations with RFC using the 'Map to Data Source' option, which generates the code automatically in DPC class based on the fields mapping in wizard itself.
While in the second approach, I can redefine the respective method in DPC EXT class and internally I call the RFC and then finally map the RFC output structure with the respective Entity type fields.
for the better performance and in order to make the existing development extensible for further requirements which is the better option to adopt here.
in my opinion, second approach is better where we have a control to handle the input HTTP requests and then RFC access and finally building the Entity output parameters. and all these we can write in a single redefined method.
please suggest.
Thanks & Regards,
Jagesh