node-rfc icon indicating copy to clipboard operation
node-rfc copied to clipboard

How to use node-rfc npm package on SAP cloud foundary environment?

Open sombir opened this issue 5 years ago • 13 comments

Is there a way to install SAP NW RFC on cloud foundary and use node-rfc npm package

sombir avatar May 15 '20 03:05 sombir

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.

mtolksdorf avatar May 19 '20 12:05 mtolksdorf

Thanks for the quick response.

Is there any way to consume SAP RFC with nodeJS on SAP CP cloud foundry environment.

Thanks In Advance

sombir avatar May 19 '20 12:05 sombir

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.

mtolksdorf avatar May 19 '20 12:05 mtolksdorf

@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 avatar May 20 '20 12:05 guptar85

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

bsrdjan avatar Nov 03 '20 12:11 bsrdjan

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

gregorwolf avatar Feb 18 '21 09:02 gregorwolf

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

sbarzaghialteaup avatar Feb 19 '21 09:02 sbarzaghialteaup

@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

bhadana-rajesh avatar Sep 02 '21 16:09 bhadana-rajesh

For experimenting and prototyping check: https://blogs.sap.com/2023/10/26/abap-rfc-connectivity-from-btp-node.js-buildpack/

bsrdjan avatar Oct 26 '23 14:10 bsrdjan