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
Fill Details Project name ,Description and choose package click tick button.A new project will be created.
3.Enter name of the entity(give any reasonable name) and select
abap structure.Here i have selected a custom table created by me
6.Now click on Generate button to generate model provider classes
and data provider class.This will be generated automatically by the system.
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
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!!
thanks! very helpful , what if i don't have GW_HUB ? and what does this mean ?
ReplyDeleteGW_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.
DeleteCan you please load some video of odata that help alot
ReplyDeleteWatch on Our Youtube channel.Dont forget to subscribe.Thanks
Delete