Skip to Content
Jun 15, 2021 at 05:48 AM

Unable to connect to OData Service on Cloud Foundry Using SAP Cloud SDK


I follow tutorials, in my case the backend s/4hana system is OP, I installed cloud connector and in cloud connector Cloud To On-Premise, configured HTTPS protocol to s4hana op system, then configure HTTP destination in BTP and check connection works(and use this HTTP destination to do another testing such as call s4hana Odata from postman, it works).But i follow the blog, after deployment to BTP, the hello world servlet can be called, but cannot call BusinessPartnerServlet just threw error "Internal Server Error". Then I followed the local deployment steps(which did in sap business application studio), and also run this command set destinations=[{name: "MyErpSystem", url: "https://URL"}], after run locally in BAS, I got the below error mentioned environment variable 'VCAP_SERVICES' is not defined. I checked all the steps in the tutorials, have no idea what is missed.



err.jpg (337.5 kB)