Creating and Querying O DATA Services

O DATA Services

Hi,

While making Odata services, I had gone through various sites post and observed that there are not many advances which are not clear as crystal and subsequently toward the finish of making an odata service we get awful HTTP reaction . This is chiefly because of missing clarification for how to stack meta information and how to test the substance set information .

In this blog entry, I will let you know bit by bit cycle to make Odata services for SAP/SAP HANA framework and how to test it.

I attempted to make sense of the entire cycle in 4 stages.

Step 1. Go to transaction code – SEGW .

Click on Symbol Make. A pop window will show up , Fill the subtleties according to beneath specify in screen shot and snap on really take a look at symbol or enter.

Underneath screen will seem where you can see beneath envelope in project. In Envelope information model, we can see three sub organizers. Entity Type – it goes about as workspace , Entity Sets – It go about as interior table and affiliations.

Presently we will characterize construction of workspace and interior table , Right snap on Information model select import and select DDIC structure .

Here give the subtleties of endlessly structure name according to beneath screen underneath.

Select radio button Substance type and click on check box element set. fill ABAP structure as VBAK and click on straightaway

Presently you will get the spring up screen with VBAK table fields name. Select fields for your construction and snap on straightaway.

project5

Other window will appear where we have to select the key field. tick on Vbeln as key field and click on finish. You may get warning message , it can be totally ignored.

Presently extend envelope element type and fill the beneath boundaries in properties , Kindly don’t tick Invalid check box for VBELN as it is key field.

Comparatively Make Design for SD Thing following same advances

click on Save button at the highest point of menu bar

Presently click on create Symbol, A spring up window will show up with class subtleties , click on tick symbol and continue further. It will request bundle , give subtleties and continue further . These are additionally knowns as runtime curios.

Step 2. Go to transaction code /IWFND/MAINT_SERVICE .

Click on push button Add services .

Next screen will show up, give the moniker name and execute , Quest you for your task .

Presently double tap on your task name . A spring up window will show up , enter the bundle subtleties and snap on tick symbol. A Data message will be shown where it will affirm about the help is made and metadata stacked effectively

Presently click back and go to fundamental screen of exchange/IWFND/MAINT_SERVICE and track down your administration.

Click on SAP Gateway Client

Another screen will come, Execute the exchange and really take a look at the reaction .

Presently we will compose code to get information.

Step 3. Go to transaction code SEGW and expand folder service Implementation  .

Under assistance execution – Extend SDheaderSet. you will track down various choices. Right snap on GetEntitySet and select GO to ABAP work Seat . It will divert to the class

Presently extend the technique drop down and select strategy for GetEntitySet for Header information and right snap and select rethink.

Compose underneath code in strategy. Save and enact all connected items for classes.

Comparatively , Compose code for GetEntitySet for Thing and actuate .

Step -4

Go to transaction /IWFND/MAINT_SERVICE and find out you service , select your service and click on load metadata.

Data message will spring up – Metadata has been stacked effectively.

Presently Snap on SAP Door Client .

Now Click on Entity set.

Select entity for header and enter

Click and execute and you will get the header data in response

Likewise, Select element set for thing and execute . You will get information for thing

Here , We had finished our Odata administration creation with a Help Manufacturer Task with two substances and two element sets. We have produced the runtime relics and enlisted and enacted our OData administration. We had reclassified techniques for header and thing element set , load metadata and test the substance set with for test information.

Much obliged


PART-2


PART-4

 

 

₹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