DDIC structure

Step by Step Gateway Odata Service Creation Using SEGW - method 1. importing DDIC structure

How to Expose an SAP table or structure as Odata Using Gateway Service builder

Pre
-requisites

1.SAP user id with developer access
2.abap skill (good to have not necessary)

Steps
1.Go to TCODE SEGW.Then click on create icon.



Fill Details Project name ,Description and choose package click tick button.A new project will be created.

2.Expand the Node Select Data Model node and right click select import-->DDIC structure



3.Enter name of the entity(give any reasonable name) and select abap structure.Here i have selected a custom table created by me



4.Select which all fields to be exposed.Tick mark needed fields and click next button




5.Select the Key fields in the table and Click finish button





6.Now click on Generate button to generate model provider classes and data provider class.This will be generated automatically by the system.





7.Click tick button.






8.Expand Service Maintenance node and click register button.





9.Select system alias.Here iam selecting LOCAL.Click tick mark button.




10.If you want to change service name you can do it here.Iam not gonna change it.Select local object and press OK button.Now press maintain button




11.Already Now you can view your service in the browser or gateway client.




12.Wow See the result in gateway client.Note that http status is 200 ok.If you get other than 200 You have done something wrong.  





Hope You liked the Post.In future I will show you how to populate your odata service with real data.

how to populate your odata service with real data

Watch on Our Youtube channel.Dont forget to subscribe.Thanks

how to create data in sap backend using odata service
Note:If looking for OData service creation:method2 importing RFC/BOR interface.New tutorial is posted.

If you enjoyed this post, Please Share!!

4 comments :

  1. thanks! very helpful , what if i don't have GW_HUB ? and what does this mean ?

    ReplyDelete
    Replies
    1. GW_HUB is my gateway system..You can Select your gateway system to register the service.OR use /IWFND/MAINT_SERVICE tcode to register the service.

      Delete
  2. Can you please load some video of odata that help alot

    ReplyDelete

Powered by Blogger.