Skip to Content
0
Aug 09, 2016 at 12:31 PM

Reading oData from sapAS java system

63 Views

Hi All,

I,m trying to read data from SAP AS java system.

var formModel = sap.ui.model.odata.ODataModel("proxy/http/XXXXXXXXXXXXX/service", "username", "pwd");

var path = "/mycollection?$expand=abc&$format=json";

formModel.read(path,auth,true, function(oData, oResponse){

console.log(oData);

},function(){

alert("Read Unsuccessful");

});

i tried using above code but its working fine and showing 200 statusCode but the problem is empty object even though i have data.

for more information PFA.

so any suggestions.

Thanks & Regards

Venkat.

Attachments

ra1.PNG (61.3 kB)