I goes along the tutorial at https://developers.sap.com/tutorials/s4sdk-odata-service-cloud-foundry.html. I set destinations as described to a running Mockserver on the Internet with no user and password. I'm using the latest version of the 3.xx SDK.
set destinations=[{name: "dest", url: "https://businesspartner-odata-mock-server-timely-lynx.cfapps.eu10.hana.ondemand.com"}]
I have verified the destinations variable and it's look fine. I add the businessServlet as described.
private final ErpHttpDestination destination = DestinationAccessor.getDestination("dest").asHttp().decorate(DefaultErpHttpDestination::new);
I run it local along the tutorial and use a debugger. The error is:
com.sap.cloud.sdk.cloudplatform.exception.CloudPlatformException: Environment variable 'VCAP_SERVICES' is not defined.
I seems the destination Environment Variable is not used. I have two questions:
- How can I fix this problem to run the app local against an mockserver with business data? I read the troubleshooting area and try a lot of chances.
- It is possible to set this Environment Variable in the application.properties or in another way?
Thanks a lot Peter