Skip to Content
0

Data not fetching when Excute in Bsp Application

Mar 21, 2017 at 07:54 AM

30

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jun Wu Mar 21, 2017 at 12:26 PM
1

yes, big issue.

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

Share
10 |10000 characters needed characters left characters exceeded
Sudheer Kumar Akkalapotu Mar 21, 2017 at 06:50 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded