cancel
Showing results for 
Search instead for 
Did you mean: 

Sap netwever gatway With SAP Ui5 Framework

Former Member
0 Kudos

Hello,

I am creating one SAP UI5 Application where i am calling one SAP netwever gatway webservice ,When i am calling this webservice from ddesktop browser it is running correctly and giving correct response data , but for that i have to append proxy at start of url, but when i am runnnig same application in tablet browser or other pcs browser in lan network then it is giving http request failed with status code 0

below is my code

var oTable =  this.getView().byId("idSalesTable");

  var oDataModel =  new sap.ui.model.odata.ODataModel("proxy/http/p142.coil.sap.com:8080/sap/opu/odata/sap/ZRTPDOWNLOAD_SRV", true);

  oDataModel.setCountSupported( false);

  oDataModel.setDefaultBindingMode(sap.ui.model.BindingMode.TwoWay);

  oDataModel.read("/ES_ORDER_HDR?$filter=ITourid%20eq%20%27S0000001429%27&$expand=ORDER_HDR2ITM,ORDER_HDR2COND&$format=json", null,null, true, function(oData, oResponse){

  myBusyDialog.close();

  var demoJSONModel = new sap.ui.model.json.JSONModel();

  demoJSONModel.setData(oData);

  alert(JSON.stringify(oData));

  oTable.setModel(demoJSONModel);

  oTable.bindRows("/results");

   }, function(response){

   myBusyDialog.close();

  

        alert("Read failed"+JSON.stringify(response));

   }

  );

I have also attached screenshots when i am running in localhost webview and apache tomcat local server

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Bindal,

Have enabled the Role for the application on the front end server. eg: Desktop & Mobile options.

Did you check your a URI with the any plugins in the browser.

Thanks,

SK

Former Member
0 Kudos

Hi

Thanks for your reply

I am just using sapnetwever gatway service, actually i dont have any idea about server settings , is there any setting that i have to do on server to make it working

Former Member
0 Kudos

Hello Bindal,

Refer to the below link for installation & configuration document.

Thanks,

SK

Former Member
0 Kudos

Hello Bindal,

Refer to the below path in SPRO,

Thanks,

SK