Skip to Content
0

How to read OData in sapui5 xml view

Jun 13, 2017 at 04:59 AM

184

avatar image
Former Member

Hi

This is the first time for me to develop sapui5 application. I've developed a split app with xml views. Now I'm trying to read the OData service to display a list in the master view.

I've followed this tutorial to set up the data source and model:

https://www.sap.com/developer/tutorials/sapui5-webide-setup-datasource.html

After that I've tried to create the list by following this tutorial:

https://www.sap.com/developer/tutorials/sapui5-webide-add-list.html

But I couldn't make it work. I've read multiple blogs of how to read data but I couldn't understand.

This is the OData I've create in GateWay.

Could anyone please help me to understand?

Thanks

capt.png (8.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Jun 16, 2017 at 06:35 AM
1

Hello,

Did you generate the service successfully in tcode SEGW?

If yes, could you please try tcode /IWFND/GW_CLIENT, and query an entity set with your service?

For example,

/sap/opu/odata/sap/<YOUR_SERVICE_NAME>/BudgetSwapSet

Show 5 Share
10 |10000 characters needed characters left characters exceeded
Former Member

I'm getting this error:

No service found for namespace , name <Service Name>, version 0001

0

Is your OData service registered on the front end gateway system with the correct system alias? Also is the SICF node corresponding to the OData service active in the front end system?

1
Former Member
saurabh vakil

Thank you.

0
Former Member

As suggested by Tri Le and Saurabh.. Please check if your OData service is activated in your front end system. Before you use your OData in your SAPUI5 app, it is a good practice to test it in t-code /IWFND/GW_CLIENT. You can see the error in t-code /IWFND/ERROR_LOG.

Raju.

0
Former Member
Former Member

Thank you.

0
VIPLOVE KHUSHALANI Jun 13, 2017 at 10:13 AM
0

Hi,

Check out this video which uses a existing northwind service to develop master detail (split app)application ..

Might this help you

https://www.youtube.com/watch?v=sXqq7TbkOoI

thanks

Viplove

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank you Viplove but I didn't want to use their template. I've developed the app from scratch.

0
avatar image
Former Member Jun 14, 2017 at 03:23 AM
0

Those are the errors I'm getting


error.png (96.1 kB)
Share
10 |10000 characters needed characters left characters exceeded