SAP / node-rfc

Asynchronous, non-blocking SAP NW RFC SDK bindings for Node.js
Apache License 2.0
252 stars 73 forks source link

Is it possible to run node-rfc in fiori app ? #262

Closed siasty closed 2 years ago

siasty commented 2 years ago

As the topic. Is it possible to run node-rfc in fiori controller? i install module in node_modules but i don't know how to attach it

bsrdjan commented 2 years ago

Which controller exactly do you mean? Where is it running, in browser ?

siasty commented 2 years ago

Yes i tried to use in browser image

bsrdjan commented 2 years ago

The node-rfc is not supported in web browsers, only on servers, where the nodejs is running. The reason is native node-rfc dependency SAP NWRFC SDK (pre-compiled SAP C++ binaries implementing RFC protocol), which is running on server platforms only: https://launchpad.support.sap.com/#/notes/2573790

bsrdjan commented 2 years ago

Why not run node-rfc on server and consume from Fiori controller?

siasty commented 2 years ago

thx. I understand. I wanted to try if there is such a possibility