O Data In Sap

O Data In Sap

Introduction to OData

If you are in SAP then you must have realized that in recent days the term OData is getting a lot of attention, O Data In Sap

During my normal project work, I got introduced to this term in an ESS-MSS Project I was working on. That time all I heard was that OData is a protocol which SAP is adopting for its future web applications.

This made me wonder why is SAP adopting a new protocol for data access. I had already heard and worked on some web applications using the REST protocol. This made me curious and I started reading heavily on OData Protocol.

If you are curious enough like I was to learn about this protocol and what it is about I hope this post helps you.

What is OData: 

When I first started working in SAP, I started with SAP-Scripts. Then SAP upgraded and a new thing called Smartforms was introduced. After some years I heard of ADOBE forms. And further on I started working on Interactive ADOBE Forms.

So being in SAP by now I had adapted myself to the thought that as technology improves new buzzwords will always keep coming up in SAP. Therefore when I first heard the term OData. I immediately assumed that this also must be a new development tool SAP has come up with. But later on, someone said OData is not a new development tool but a data transfer technique.

Ok, data-transfer hmm…. So this must be like ALE-IDOC then, another way to transfer data… Nice!!

But as I further started digging around, I learnt that Odata is not a development tool at all.

It is actually a PROTOCOL for data transfer and it is not owned or developed by SAP. But it has existed way before SAP adopted it. It was actually created by Microsoft and has been used by it and many others for multiple applications.

But this definition was a bit heavy right now to understand and I needed to break it down further to make it clear.  So let’s start from some basics.

OData is used to define best practices that are required to build and consume RESTful APIs. … REST stands for Representational State Transfer and it is sometimes spelt as “ReST”. It relies on a stateless, client-server, cacheable communication protocol. In virtually all cases, the HTTP protocol is used.

By exposing SAP Business Suite functionality as REST-based OData (Open Data Protocol) services, SAP Gateway enables SAP applications to share data with a wide range of devices, technologies, and platforms in a way that is easy to understand and consume.

Using REST services provides the following advantages:

  • Obtain human-readable results; you can use your browser to see what data you will get.
  • Use stateless applications
  • Receive related pieces of information, one leading to another.
  • Use standard GET, PUT, POST, DELETE, and QUERY. If you know where to GET data, you know where to PUT it, and you can use the same format.

What Is OData and Why Do We Use It?

OData is a Web protocol for querying and updating data, applying and building on Web technologies such as HTTP, Atom Publishing Protocol (AtomPub), and RSS (Really Simple Syndication) to provide access to information from a variety of applications. It is easy to understand and extensible and provides consumers with a predictable interface for querying a variety of data sources.

AtomPub is the standard for treating groups of similar information snippets as it is simple, extensible, and allows anything textual in its content. However, as so much textual enterprise data is structured, there is also a requirement to express what structure to expect in a certain kind of information snippet. As these snippets can come in large quantities, they must be trimmed down to manageable chunks, sorted according to ad-hoc user preferences, and the result set must be stepped through page by page.

OData provides all of the above as well as additional features, such as feed customization that allows mapping part of the structured content into the standard Atom elements, and the ability to link data entities within an OData service (via “…related…” links) and beyond (via media link entries). This facilitates support of a wide range of clients with different capabilities:

  • Purely Atom, simply paging through data.
  • Hypermedia-driven, navigating through the data web.
  • Aware of query options, tailoring the OData services to their needs.

OData is also extensible, like the underlying AtomPub, and thereby allows the addition of features that are required when building easy-to-use applications, both mobile and browser-based.

OData for SAP Products

SAP Gateway uses OData for SAP Products, which contains SAP-specific metadata that helps the developer to consume SAP business data, such as descriptions of fields that can be retrieved from the SAP ABAP Dictionary. The following are examples of OData for SAP applications:

  • Human-readable, language-dependent labels for all properties (required for building user interfaces).
  • Free-text search, within collections of similar entities, and across collections using OpenSearch. OpenSearch can use the Atom Syndication Format for its search results, so the OData entities that are returned by the search fit in, and OpenSearch can be integrated into AtomPub service documents via links with rel=”search”, per collection as well as on the top level. The OpenSearch description specifies the URL template to use for searching, and for collections it simply points to the OData entity set, using a custom query option with the name of “search”.
  • Semantic annotations, which are required for applications running on mobile devices to provide seamless integration into contacts, calendar, and telephony. The client needs to know which OData properties contain a phone number, a part of a name or address, or something related to a calendar event.
  • Not all entities and entity sets will support the full spectrum of possible interactions defined by the uniform interface, so capability discovery will help clients avoiding requests that the server cannot fulfil. The metadata document will tell whether an entity set is searchable, which properties may be used in filter expressions, and which properties of an entity will always be managed by the server.
  • Most of the applications for “light-weight consumption” follow an interaction pattern called “view-inspect-act”, “alert-analyze-act”, or “explore & act”, meaning that you somehow navigate (or are led) to an entity that interests you, and then you have to choose what to do. The chosen action eventually results in changes to this entity, or entities related to it, but it may be tricky to express it in terms of an Update operation, so the available actions are advertised to the client as special atom links (with an optional embedded simplified “form” in case the action needs parameters) and the action is triggered by POSTing to the target URI of the link.

 

Target Audience:

Sometimes I read a blog only to realize later that the blog was not meant for me. So Let me clarify that this blog post will be most useful to you if you are in SAP, mostly in the Technical/Development domain.

Also if you deal in the Core SAP ABAP Development area like Report Programming, BDC, Call Transactions, BAPI’s etc and if you move into newer development technologies of SAP like SAPUI5, Fiori etc then you may find value in this blog.

What is a Protocol: 

Before you can learn about OData protocol let’s understand what is the meaning of protocol. OK!!

The dictionary definition of the protocol is

pro·to·col

— Boring definition as always — Now you might find this definition to be too formal to understand but the idea is simple.

A protocol is a set of rules by which official procedures are conducted.

Let me explain this in much simpler terms.

Let say you visit a Hindu temple. The first thing you would do is you take off your footwear i.e your sandals or shoes. Then you climb the temple steps. Then you ring the temple bell and finally, then you enter the temple door. This is a standard procedure to be followed by any devotee entering a temple. That means this is the accepted protocol to enter a temple.

 

Interested in this Sap Classes ? Fill Your Details Here

Error: Contact form not found.

₹25,000.00

SAP SD S4 HANA

SAP SD (Sales and Distribution) is a module in the SAP ERP (Enterprise Resource Planning) system that handles all aspects of sales and distribution processes. S4 HANA is the latest version of SAP’s ERP suite, built on the SAP HANA in-memory database platform. It provides real-time data processing capabilities, improved…
₹25,000.00

SAP HR HCM

SAP Human Capital Management (SAP HCM)  is an important module in SAP. It is also known as SAP Human Resource Management System (SAP HRMS) or SAP Human Resource (HR). SAP HR software allows you to automate record-keeping processes. It is an ideal framework for the HR department to take advantage…
₹25,000.00

Salesforce Administrator Training

I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
₹25,000.00

Salesforce Developer Training

Salesforce Developer Training Overview Salesforce Developer training advances your skills and knowledge in building custom applications on the Salesforce platform using the programming capabilities of Apex code and the Visualforce UI framework. It covers all the fundamentals of application development through real-time projects and utilizes cases to help you clear…
₹25,000.00

SAP EWM

SAP EWM stands for Extended Warehouse Management. It is a best-of-breed WMS Warehouse Management System product offered by SAP. It was first released in 2007 as a part of SAP SCM meaning Supply Chain Management suite, but in subsequent releases, it was offered as a stand-alone product. The latest version…
₹25,000.00

Oracle PL-SQL Training Program

Oracle PL-SQL is actually the number one database. The demand in market is growing equally with the value of the database. It has become necessary for the Oracle PL-SQL certification to get the right job. eLearning Solutions is one of the renowned institutes for Oracle PL-SQL in Pune. We believe…
₹25,000.00

Pega Training Courses in Pune- Get Certified Now

Course details for Pega Training in Pune Elearning solution is the best PEGA training institute in Pune. PEGA is one of the Business Process Management tool (BPM), its development is based on Java and OOP concepts. The PAGA technology is mainly used to improve business purposes and cost reduction. PEGA…
₹27,000.00

SAP PP (Production Planning) Training Institute

SAP PP Training Institute in Pune SAP PP training (Production Planning) is one of the largest functional modules in SAP. This module mainly deals with the production process like capacity planning, Master production scheduling, Material requirement planning shop floor, etc. The PP module of SAP takes care of the Master…

 

Leave a Reply

X
WhatsApp WhatsApp us
Call Now Button