Basic Introduction ODATA Services.
Read Time – 5 Min
In this blog, we will discuss what is ODATA in SAP, what is need of ODATA services, Types of
ODATA Services.
What is ODATA in SAP?
ODATA is an open data protocol used in web technologies. ODATA is used by SAP make
SAP data accessible to other platforms so that the non-SAP users can also access this data to
develop web application, website, mobile app, etc.
ODATA first introduced by Microsoft now it is begin used for web application, mobile
application etc.
ODATA is an open standard that is both data format & protocol for consuming data in
uniform way.
It is also ISO approved and managed by the OASIS organization.
ODATA is communication between front end which is SAP UI5 FIORI and backend SAP
Systems.
ODATA represent DATA of collection of entities.
1 Data model -> 1 API -> Multiple End User Experience.
(If you plan to expose your SAP Data (Table or Query Data) to external environment like
UI5/Fiori or HANA, then you need to push your data in a form of API. By API we mean, using
OData. OData will generate a service link that can be accessed via internet and can be used
to perform CRUD operations. SAP OData in SAP ABAP environment is just like another ABAP
Class. We can access the methods of this class using SEGW transaction. We can write our
required code here for the data manipulation and once we activate the class, the service link
that we generate will act accordingly).
(SAPFRONTEND)
HTML /SAPUI5/FRONT END UI TECHONOGY
ODATA
ODATA SERVICES
ODATA
(SAPBACKEND)
SAP GATEWAY
SAP ECC/S4 HANA BW
ODATA used to create RESTful APIs.
ODATA fetches the data form one or many database and tables with the help of select,
insert or modify statement. it based on the HTTP framework.
Understanding ODATA.
Database layer Application layer HTTP Presentation layer
HTTP
OData
➢ Each OData service is represented by a URI (Uniform Resource Identifier) or URL
(Uniform Resource Locator). We will use URI term going forward.
➢ OData Service has two types of documents – Service and Metadata
➢ Atom format (xml) and JSON formats are supported Any web browser can be used
to explore OData Service
What is the need of ODATA Services in SAP?
OData service is used in the SAP gateway to connect with non-SAP platforms.
There are three types of OData services:
1. OData ABAP Services:
For OData services the backend server is SAP ECC / CRM / SRM.
2. OData HANA services:
For OData services the backend server is S4 HANA
3. OData External services:
For OData services the backend server is Non SAP server / external server.
Transaction code of OData Services:
➢ In SAP, we use SEGW Transaction code to create an OData services.
➢ SEGW Stand for services gateway.