SAP / node-rfc

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

SAP RFC destination port #76

Closed kunhuanglexicon closed 5 years ago

kunhuanglexicon commented 5 years ago

I'm use node-rfc to connect SAP. It looks like the rfc client use port 3300 as SAP service port, in my env, the SAP is using port 3350, can we change the default port when creating the rfc client?

var client = new rfc.Client({ 'user': 'user', 'passwd': 'password', 'ashost': '11.22.33.44', 'sysnr': 'ee', 'client': '100', 'lang': 'EN' });

User above code as example, has the field like 'port' or 'serviceport'

Thanks!

bsrdjan commented 5 years ago

The sysnr: '50' in connection parameters should be enough to connect to 3350 port.

Please see SAP/PyRFC/#79.