cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to access destination from BAS which created using python app deployed in Cloud Foundry Space

ipravir
Active Contributor
0 Likes
1,222

Hello Experts,

Basic details of my requirement with all followed steps:

I have deployed a basic Python API into Cloud Foundry space and able to access the same using direct call.

ipravir_1-1707216013133.png

No, created a destination using same API under connectivity:

ipravir_2-1707216121309.png

I want to use the same service into SAPUI5 application using Data Source and Service Selection, however I am getting "Service in unavailable" for selected destination as below:

ipravir_3-1707216471657.png

Then I created the project without using data source, but selected "add deployment configuration" option from "project attribute" section and then selected the maintained destination under Cloud Foundry as below screen:

ipravir_4-1707216743379.png

Then modified the mta.yaml and xs-app.json by including below details respectively:

ipravir_5-1707217483017.png

ipravir_6-1707217495417.png

Added below code to use destination inside SAPUI5 app:

ipravir_7-1707217585179.png

but getting below error:

ipravir_8-1707217652244.png

Please help me on this, how can a python API can be used inside SAPUI5 application or any additional steps need to be followed.

Note: the maintained destination is working fine on BAS. Please find curl details from terminal:

ipravir_9-1707217814273.png

 

Followed link: 

https://blog.sap-press.com/how-to-integrate-a-python-app-with-sap-business-application-studio-for-an...

https://community.sap.com/t5/technology-blogs-by-members/developing-flask-application-in-bas-and-con...

Regards,

Praveer.

 

 

 

 

 

 

Accepted Solutions (0)

Answers (0)