Reads a CSV file and create Sales Orders in S/4 Hana Cloud
-
CSV file in the format:
item1,item2,item3...itemN,yyyy-mm-dd
- Sales order API running. Check the official docs
/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder
- Clone/Download it
- Install the dependencies
npm install
- run it with this format
node app.js <csv file path> <s4 tenant URL> <base64 encoded user:password>
Example
node app.js myfile.csv https://my666666.s4hana.ondemand.com SWFtS2luZE9mOkFIYWNrZXJNeXNlbGZUb28=
use base64 encode to get the value