Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

running generated odata in the app

I am using this tutorial to complete an end 2 end implementation...…

but after I created a ui5 project and generated the Odata service I try to call it insidethe app but it doesn’t work. (run it on hana studio server (tomcat or another).

When I call the odata in the browser like this$format=xml

It works. (after logging in)
But using the link like that in the application is not working (authorization error in console).

When I use the method that is documented:

var configData = {

resourceBundle :
serviceConfig : {

var sServiceUrl =

var oModel = new
sap.ui.model.odata.ODataModel(sServiceUrl, {json:
true,loadMetadataAsync: true});


You will get the following error in the console:

GET http://localhost:8672/sap/opu/odata/sap/ZE2E_CUST_INFO_KY_SRV/$metadata 404 (Not Found)

The only way I can get it to work is with the local web ide but that has an outdated ui5library…

So what do i need to do to get it working ?

Maybe some ideas...

- Do I need to deploy it first to the abap server and run it from there to make it work instead of locally ?

- Is there a way to update the local web ide to the latest ide (like the one in the cloud) ?

Former Member
Former Member replied

Hello Shreyas,

at first sight, it appears to me that you want to test your service locally, but your service URL refers to your application server.

Try adding the IP Address and Port of your application server to the service URL.

Or try deploying your application to the abap server and try it out there.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question