cancel
Showing results for 
Search instead for 
Did you mean: 

How Can I Use the @sap/cds-rfc Plugin?

alejandro15
Explorer
0 Kudos
203

In June 2024, the node-rfc npm package was archived because SAP was unable to properly transfer ownership to new maintainers, according to the last message found on GitHub. However, in November 2024, the CAP team released a plugin called ABAP RFC. According to the documentation on their website, the cds-rfc plugin allows you to import the API of RFC-enabled function modules from ABAP systems and call these functions in your custom code.

So, my question is, how can I do that? The npmjs repository does not have much documentation, and I wonder if this can be a suitable replacement for the node-rfc. I am still trying to use it, but I haven't succeeded yet. According to the documentation, I need to get a token from https://ui.repositories.cloud.sap/, and after that, I need to create a .npmrc file in the root of my CAP project and include the token I generated previously. Unfortunately, I still can't download the @ SAP-rfc/node-rfc-library package that cds-rfc needs.

 

//...repositories.cloud.sap/:_authToken=...
@sap-rfc:registry=https://...repositories.cloud.sap

 

 

Accepted Solutions (1)

Accepted Solutions (1)

WouterLemaire
Active Contributor

Answers (0)