首页 > SAP > ODATA > Model your first ODATA Service
2019
08-29

Model your first ODATA Service

Hello everyone, in this blog post, we will learn how to create OData service in SAP Netweaver Gateway System. Below are steps to model OData service and this tutorial is one among the first sap netweaver gateway tutorials.

To access all SAP Netweaver Gateway tutorials, please click here.

1. Go to transaction code SEGW(Gateway Service Builder).

2. Click on Create Project button. Provide the following details and click on OK.

3. Project will be created successfully with following artifacts

4. Right click on Data Model → Import → DDIC structure

Provide below information and click on Next

Name – SalesOrder
Select “Entity Type”
Give ABAP Structure as SNWD_SO
Check “Create Default Entity Set” , if you want to create Entity Set by default

5. Select the fields from the structure SNWD_SO to be the part of the ODATA service and Click on Next.

6. Choose SO_ID field as Key and click on Finish.

7. An Entity Type is successfully created. Go back and expand the Data Model you can find newly created Entity Set “Sales Order” and its properties.

8. Click on Generate to generate the Service

9. Click on OK

10. Service will be created successfully with below screen

Congrats, you have successfully modeled your OData service in Gateway service builder. In our next tutorial, we will perform service implementation, write the ABAP code to get the data from the database tables.

Please stay tuned to us for more

最后编辑:
作者:yangsen
本站为个人博客网站,全由我个人维护,我从事SAP开发13年,其它ERP开发7年,基本都是零售行业。本站记录工作学习的过程, 有SAP相关询问专、兼职工作可随时联系我。 有网站相关的问题可直接在文章下方留言,或者联系我。 邮件:yan252@163.com给我。 QQ:415402519