Professional Documents
Culture Documents
08/13/2018
Dear SAPLearners, in this blog post i will discuss about di erent ways to create and model an OData
service in SEGW(Gateway Builder) and Eclipse ABAP Development Tools.
Before discussing the other approaches i would like to introduce you to the SADL (Service
Adaptation Description Language), as the other 2 approaches depend on this framework.
SADL is an ABAP technology that enables the consumption of entity relationship-like ABAP data models in
various scenarios with a common development experience based on a model-driven approach. – SAP
de nition
SADL model is a data model like CDS views, DDIC tables (or) views and BOPF.
In short, SADL framework allows us to create OData service based on a model-driven approach
using ABAP CDS Views.
2. Mapping Editor
In SEGW gateway builder, you can map an ABAP CDS Views as a data source to the entity type
properties.
Also Read: How to create OData Service in SEGW Using the Mapping Editor
With this approach, the business logic is available in ABAP CDS View. The SADL framework provides
a standard, optimized implementation of the OData service to retrieve data.
You can map as many as ABAP CDS views in a single SEGW OData service.
3. Referenced Data Source
In SEGW gateway builder, you can reference an ABAP CDS Views as a data source. Each entity type in
OData service model corresponds to 1 ABAP CDS view.
Also Read: How to create OData Service based on Referenced Data Sources
Along with these 3 approaches we have another approach, that is using annotation in ABAP CDS
views.
4. Using Annotation
In this approach we can create OData service directly on ABAP CDS View in Eclipse ABAP
Development Tools using annotation @OData.publish: true
Also Read: How to create OData service on ABAP CDS view using Annotation
Now we know 4 di erent ways to create OData service and di erent tools cover di erent use cases.
Below is the table which compares di erent approaches.
Congrats.! you have successfully learned 4 di erent ways to create OData Service using SEGW and
ABAP Development Tool.
Please feel free to comment and let us know your feedback. Subscribe for more updates
Prakash
SAP Fiori Consultant