Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const Pool = require('node-rfc').Pool;
const abapSystem = require('./abapSystem').DSP;
const pool = new Pool(abapSystem);
pool.acquire()
.then(client => {
client
.call('STFC_CONNECTION', { REQUTEXT: 'H€llö SAP!' })
.then(res => {
console.log('STFC_CONNECTION call result:', res.ECHOTEXT);
console.log(pool.status);
pool.release(client);
console.log(pool.status);
})
.catch(err => {
console.error('Error invoking STFC_CONNECTION:', err);
});
})
.catch(err => {