cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CAP, BTP and node-rfc example?

Srdjan
Product and Topic Expert
Product and Topic Expert
0 Likes
2,098

Hello CAP Community,

node-rfc user is looking for an example of CAP on BTP using node-rfc and Cloud Connector, to exchange data with ABAP on-prem system: https://github.com/SAP/node-rfc/discussions/298

Does anyone have a working example to share?

Thanks,

Srdjan

Accepted Solutions (1)

Accepted Solutions (1)

Srdjan
Product and Topic Expert
Product and Topic Expert

martin.stenzig3 here one working example of RFC connectivity from standard BTP Node.JS buildpack: https://blogs.sap.com/2023/10/26/abap-rfc-connectivity-from-btp-node.js-buildpack/

Answers (2)

Answers (2)

Srdjan
Product and Topic Expert
Product and Topic Expert

> I think the biggest question will be, did anybody successfully deploy the SAP NetWeaver Remote Function Call (RFC) Software Development Kit (SDK) as part of a Node.JS buildpack deployment in the BTP?

Using custom buildpacks pre-built binaries can be added, so the SAP NW RFC SDK binaries: https://docs.cloudfoundry.org/buildpacks/custom.html

The question is how to continue from there because RFC cloud connectivity is currently supported via Cloud Connector for Java runtime only.

Dinu
Active Contributor
0 Likes

Dear Srdjan,

Here is an example of successful deployment of NW RFC on Cloud Foundry.

It uses a custom nodeJS buildpack. Only 2 environment variables need to be set.

All that needs to be done is to copy all the libraries to a folder (named sap/nwrfcsdk/lib in the sample) and included in the app that is pushed (gen/srv for cap).

But the libraries need to be built and be compatible with the stack. Current stack is cflinux4 (based on Ubuntu 22.04). So build the libraries on this stack.

Is cflinux4 supported for build now? All the samples and examples refer to cflinux3. This stack is deprecated now. It is best to build for cflinux4 now rather than use cflinux3.

Regards,

Dinu

PS: I don't know of if PAM or license for NW RFC supports this.