Pre-requisites
1.SAP user id with developer access
2.abap skill
3.Odata service created using SEGW.(If you dont know how to Please refer my previous post step-by-step-gateway-odata-service)
Steps
1.Go to SEGW .Open created service node.Expand Service Implementation node.Right click on GetEntitySet(Query) and click on Go to Abap Workbench
2.You will get an information message that method is not implemented. Click OK.
3.You will now land on class builder with ****_DPC_EXT opened.We write our code in this class.Expand methods node.expand inherited methods node.Right click on FILGHTSET_GET_ENTITYSET and click redefine.
4.Write code for populating the data.activate it.
5.Ready to go .Now check your service in browser or gateway client.

3.Odata service created using SEGW.(If you dont know how to Please refer my previous post step-by-step-gateway-odata-service)
Steps
1.Go to SEGW .Open created service node.Expand Service Implementation node.Right click on GetEntitySet(Query) and click on Go to Abap Workbench

2.You will get an information message that method is not implemented. Click OK.

3.You will now land on class builder with ****_DPC_EXT opened.We write our code in this class.Expand methods node.expand inherited methods node.Right click on FILGHTSET_GET_ENTITYSET and click redefine.

4.Write code for populating the data.activate it.

5.Ready to go .Now check your service in browser or gateway client.

If you enjoyed this post, Please Share!!
super
ReplyDeletesuper
ReplyDeleteThank you
DeleteVery good info..
ReplyDeleteThank You
DeleteUseful Information
ReplyDeleteThank you Dinesh Kumar
DeleteHey, what if i made the odata in my fiori server, how to read the data from my backend ?????
ReplyDeleteforget it jjejejej i found your other post but thanks! ! !
DeleteYou are welcome!!!
Delete