cancel
Showing results for 
Search instead for 
Did you mean: 

Data not fetching when Excute in Bsp Application

S0024873964
Explorer
0 Kudos

Dear,

I developed a custom fiori application in Eclipse IDE. That is working fine in that but when I deploy that into ABAP server, it was deployed fine.

But when I test the BSP application, the data is not getting fetched for my query.

var serviceUrl = "proxy/sap/opu/odata/sap/XXXXXXXXXXXXX_SRV"

var user = "XXXX";

var password = "XXXXX";

this.oDataModel = new sap.ui.model.odata.ODataModel(serviceUrl, true,user,password);

I passed the URL in the above format.

Is there any issue in passing the URL or what?

Please let me know.

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor

yes, big issue.

in bsp, there is no proxy to do the job for u.

0 Kudos

Hi Lakshmareddy,

As mentioned by "Jun Wu" you should remove the "proxy" in url if you want to run your application in bsp.

But you need to change the url always if you switch between local and bsp.

So it is better to use a method "getServiceUrl" which will return the url dynamically.

Please check the link for your reference.