gkralik / php7-sapnwrfc

SAP NW RFC SDK extension for PHP 7.3+ & PHP 8
https://gkralik.github.io/php7-sapnwrfc
MIT License
89 stars 35 forks source link

Port configuration #64

Closed MarcioRM78 closed 5 years ago

MarcioRM78 commented 5 years ago

Hi

Is there a way to configure the port connection on host?

Like...

$parameters = [ 'ashost' => 'sap.company.net', 'port' => '3302', 'sysnr' => '01', 'client' => '500', 'user' => 'XXXXXXXX', 'passwd' => 'XXXXXXXX' ];

I couldn't found something about it on documentation. Default port is 3301 (as my colleague from SAP team told me), right?

Thank you in advance.

gkralik commented 5 years ago

I am not aware of a port setting in the NW RFC. IIRC the port number used by the connection is 33+sysnr.

MarcioRM78 commented 5 years ago

Hi, you are absolutely correct, I changed the sysnr to 02 and it worked. My lack of knowledge in how SAP works. Thanks for your quickly response and congratulations for your job, it's really useful.