Skip to Content

Unable to get data from odata service in sap ui5 in Orion Personal webide

Nov 16, 2017 at 01:29 PM


avatar image

Dear All,

I am working on Orion Personal webide and connected onPremise system by saving credentials in file at C:\SAPWebIDE\eclipse\config_master\service.destinations\destinations

I am getting this error when sap ui5 application is calling gateway URL to access the data.

Please let me know with suggestion.

Thanks & Regards,


My issue is very much similar to this issue.

I am using below code -

var sURI = "";
var oDataModel = new sap.ui.model.odata.ODataModel(sURI);
//var oDataModel = new sap.ui.model.odata.ODataModel(sURI,true,'username','password');
capture.jpg (19.7 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Nick van Heertum Nov 24, 2017 at 01:21 PM

What i did to solve a similar issue is adding this to the code, its not with gateway but with HANA XS.

"Access-Control-Allow-Origin": "*"
Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Nick,

I have tried this option but it didn't worked.

Ideally when we are calling oData URL then application should ask for username and password but it is neither asking for it nor it is going through when I am passing credential in oData model.

Please suggest.




Have you tried doing it by creating a cloud connector to your ECC and then adding a destionation in the CP?

This is how we do it (best practice) and don't have this issue

Edit: you're using personal webide so this should be followed,