Skip to Content
Feb 21, 2017 at 07:24 AM

Empty OData in odata service url



I was trying to get data from the odata service url. I am able to run the service in browser after logging in and able to see the data in xml format. But when I do the same in controller,its showing empty odata. Please assist me.

var oDataModel = new sap.ui.model.odata.ODataModel("http://XXXX:12345/sap/opu/odata/SAP/ZJOB_MONITOR_SRV/EtStatusSet",true,"xxxxx", "YYYY");

I have passed the log on paramaters. Still I am unable to read the data. Please find the screen shot.

Thanks and regards,

Karthik S