This project will show a prototype that connects to the SAP-BAPI / RFCs via Node.js
Node.js
- Example how to call a BAPI from Node.js (link)
- Example how to call the User List BAPI from Node.js (link)
BAPI
- Make sure you installed the SAP NetWeaver RFC SDK
- Install node dependencies
npm install
To run the project locally run
node .
If you recieve the following error, when running this on macOS
ERROR hostname 'YOURCOMPUTERSDNSNAME.local' unknown
DETAIL NiHLGetNodeAddr: hostname cached as unknown
make sure to add an entry with your network IP to your local hosts file
INTERNALIP YOURCOMPUTERSDNSNAME