Skip to Content

Data not fetching when Excute in Bsp Application

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 21, 2017 at 12:26 PM

    yes, big issue.

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 21, 2017 at 06:50 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded