How to use the node-rfc.Pool function in node-rfc

To help you get started, we’ve selected a few node-rfc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SAP / node-rfc / examples / js / pool.js View on Github external
'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 => {

node-rfc

nodejs bindings for SAP NW RFC SDK

Apache-2.0
Latest version published 10 months ago

Package Health Score

59 / 100
Full package analysis

Popular node-rfc functions