Skip to Content
0
Nov 23, 2021 at 12:36 PM

How to bind a non-oData destination in SAP BAS for local development?

1399 Views

Hi,

I have the following problem:

I cannot reach a non-oData destination from the sapui5 app developed in SAP BAS.

The requests are not routed to the destination in SAP BAS, but they are routed when the app is deployed in SAP BTP.

I have defined the following non-OData destination in BTP:

destination-definition.png

When I deploy the app to SAP BTP, the AJAX requests to this destination are correctly routed and data is retrieved.

But they are not routed in the SAP BAS when I want to test the app during development.

I tried to bind this destination using Run Configuration:

destination-config-bas.png

I can select this destination using Run Configuration option, then Connect to SAP system...

destination-config-bas-2.png

but when I pick the WeatherAPI, and run the application:

run-module.png

the requests are not routed to the destination. The same app works correctly when deployed in BTP.

error-404.png

How should I correctly bind the destination in SAP BAS?

With best regards,

Krzysztof Bulanowski