Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

OData Service Implementation approach

$
0
0

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.

 

Landscape.jpg

 

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.

 

https://help.sap.com/saphelp_gateway20sp08/helpdata/en/92/56b605d2b94477a4bab2b3d574cc67/content.htm?frameset=/en/bb/34770b3d9f4d7fa6388edc213152e1/frameset.htm


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:

  • Code-based implementation: The Service Builder generates the required ABAP classes based on the data model you define. Subsequently you can navigate directly from the Service Builder to ABAP Workbench where you can access the appropriate methods and write the source code for the various different service operations. SAP provides some code patterns for data provision and metadata definition.
  • Mapping operations to a data source: You define manual relations between the parameters of a data source object and the properties of an entity. You can map data sources of type Remote Function Call (RFC) and Business Object Repository (BOR). This function is designed for use in conjunction with the Import data source function (RFC/BOR interface) and enables you to map the RFC/BOR function to the service operations. Where possible, the Service Builder proposes an operation mapping for imported RFC/BOR interfaces.


Thanks in advance.

Best Regards,

Emanuel


Viewing all articles
Browse latest Browse all 9129

Trending Articles