on 11-11-2014 3:23 PM
Hi Gurus,
I am developing an OData Web Service, and I have a doubt I would like to clarify with you.
I am working with a Hub Deployment, where the IW_BEP component is installed in the SAP NW GW. This means, I will have to work with RFC functions to implement the CRUD operations in the SAP Backend.
My question is:
Which is the best way to create the operations in the SAP NW GW:
Use the "code-based implementation", and write in the class the code to call the RFC?
Or to use the "mapping operations to a data source" approach, and just do the mapping?
Below you can find some information I've found in the helpsap site.
Service Implementation
In the service implementation phase, you define the runtime artifacts (operations and methods) for the data provider class. You can define the runtime artifacts in the following ways:
Thanks in advance.
Best Regards,
Emanuel
Hello Emanuel,
May be u can quickly refer the below which will give u more info on development & deployment options. Regarding Hub and Embedded Architecture.
So that u can decide what kind of development & deployment u need to follow based on ur requirements.
Deployment Options - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library
Use of SEGW will help to model ur service and generate them faster.
Everything cannot be accomplished by just performing mapping in SEGW ( GW Service Builder Tool )
Only straight forward case/ happy scenarios can be easily modeled in SEGW and perform mapping and generate ur runtime artifacts so that u create ur services faster with less time.
Some scenarios requires coding in the respective methods based on ur business use case.
U can use SEGW to model ur service and manually implement the respective methods in DPC_EXT class based on ur use case.
Some Blogs for ur reference shows how u can use SEGW to model and create services ->
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your reply Ashwin.
I've been reading some posts, and saw that some people didn't recommend the "Mapping operations to a data source" approach.
But I've been doing som test´using both approaches (based code and map to data source), and both worked fine for me.
So, I wanted to know if there is a best practice that recommends one between both existing approaches.
Best regards,
Emanuel
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.