Open sombir opened 4 years ago
NW RFC Library cannot be used in the context of SAP CP Cloud Foundry. The respective functionality needed to consume a Cloud Connector tunnel is not offered with NW RFC Library 7.50.
Thanks for the quick response.
Is there any way to consume SAP RFC with nodeJS on SAP CP cloud foundry environment.
Thanks In Advance
Currently, in SAP CP Cloud Foundry environment RFC is supported only with the SAP Java Buildpack using JCo: https://help.sap.com/viewer/cca91383641e40ffbe03bdc78f00f681/Cloud/en-US/fa4adc9bd40e45dbac573fd616695446.html.
@sombir - I had a similar requirement earlier where I need to call RFC from the Cloud Foundry environment (see issue). I achieved this using Docker where the container was pushed to Cloud Foundry (along with Source code of NodeJs). I hope you can also achieve this. Please note from my Cloud Foundry I was able to reach my on-premise servers hence it worked so you need to check this before.
The feature request to enable SAP NWRFC SDK usage on Cloud Foundry, in Connectivity context, can be created for:
Security Services
category of the SAP Cloud Platform – Platform Foundation
Hello *,
I've created the Idea:
Add support for NW RFC in the Cloud Foundry Environment especially Node.JS Buildpack (S-User required).
Best regards Gregor
Cloud connector cannot be used, but when backend is exposed to public internet you can call rfc with workaround: https://github.com/sbarzaghialteaup/demo-node-rfc-cf
@sombir - I had a similar requirement earlier where I need to call RFC from the Cloud Foundry environment (see issue). I achieved this using Docker where the container was pushed to Cloud Foundry (along with Source code of NodeJs). I hope you can also achieve this. Please note from my Cloud Foundry I was able to reach my on-premise servers hence it worked so you need to check this before.
@guptar85 : How you created docker image, can you please share steps to create docker image of node-rfc.
Also I tried to run node-rfc docker image but docker container is getting crash
sudo docker run guptar85/docker-rfc:v1 -v
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "-v": executable file not found in $PATH: unknown.
ERRO[0000] error waiting for container: context canceled
For experimenting and prototyping check: https://blogs.sap.com/2023/10/26/abap-rfc-connectivity-from-btp-node.js-buildpack/
Is there a way to install SAP NW RFC on cloud foundary and use node-rfc npm package