a month ago - last edited a month ago
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
Request clarification before answering.
@gregorw made a demo repo about this, see the config here: https://github.com/gregorwolf/cap-rfc/blob/21c2a45d82ca5dc6d0fdd45954705b76b4d3d1fd/.npmrc#L2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
54 | |
10 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.