‎2023 Feb 01 11:21 PM
https://www.npmjs.com/package/@sap/xsenv
xsuaa

destination instance

destination binding

connectivity proxy binding

connectivity proxy binding

deployment

call destination

get token

test
curl --location --request GET 'https://conexao-cloud-conector-s4.c-71b475b.kyma.ondemand.com/' \ --header 'Authorization: Bearer <access_token>'
error:

‎2023 Feb 02 11:04 AM
Hello,
As a 1st step you might want to try out the code snippet from this blog in a kyma function as a way to validate your setup and connectivity. You will need your bearer token as an argument to the function call;
also please make sure your destination definition looks similar to this one
I hope that helps; kind regards; Piotr
ps. Also looking at the screenshots you have provided. The connectivity proxy secret must not be used by the business application. The on-premise destination must work; that's for sure; however all the business logic wants is the connectivity proxy endpoint as described here
‎2023 Feb 02 9:25 PM
https://gist.github.com/ptesny/203fed6c3b059f5880595d92113669af#file-task1-md
Do I have to assemble this information by hand? Is this not compatible with any SAP package used to connect from BTP to S4 via cloud connector, for example sap-cloud-sdk?
‎2023 Feb 02 10:33 PM
hello, this is what you can read in the cloud-sdk documentation: https://sap.github.io/cloud-sdk/docs/js/guides/kubernetes#on-premise-connectivity
I hope that helps; kind regards; Piotr