-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm not able to use Load balancer port numbers in the PyRFC config. #202
Comments
I think you misunderstood the meaning of the parameter -E: it is used for setting the input parameters of the function module EDI_DATA_INCOMING/EDI_STATUS_INCOMING. These function modules have two parameters PATH and PORT, but this PORT is an ALE/EDI port and not a network port… Try one of the following:
However: are you really sure that 3601 is the correct RFC port for your SAP system?? Usually the 36XX ports are not gateway ports (used for RFC protocol), but dispatcher ports (used for DIAG protocol, e.g. for SAPGui connections). Best Regards, Ulrich |
Ah, wait a moment, 36XX is the message server port, not the dispatcher... My bad... So it looks like you are trying group logon? Alternatively, if you can't modify /etc/services, you can replace the parameter "sysid" with "msserv" and pass 3601 directly. A third alternative: I just looked at the code of startrfc and noticed, that it supports the parameter -D, which allows referencing an entry in the sapnwrfc.ini file. So the following would work without any code modifications:
However, all this has nothing to do with PyRFC. I am not familiar, but I am pretty sure PyRFC also has parameters that allow group logon. (Check the docs of PyRFC for how these look like.) Best Regards, Ulrich |
I'm sorry for the late response. I'm looking into the replies now. I comeback to you soon. |
Hi Ulrich I tried your 3rd option. I got below error message. I tried to check the connection with startrfc -u username -p pwd -D configfile -i I'm going to try other options. |
Hi Gopinath, this is wrong: |
I think PyRFC accepted the parameters. I'm able to test the connection. Cheers |
I tried to connect SAP server using below config. The connection fails with error "partner not reached"
As port is not open for 3300, Connection fails. Thats ok.
I understand that PyRFC tries to connect with sysnr suffix based port number. The question and the issue is Why config -E is not used?
/usr/local/sap/nwrfcsdk/bin/startrfc -h servername.com -s 00 -u data_usr -p pwd -c 100 -i -E 3601
Error:
ERROR partner 'servername.com:3300' not reached
TIME Fri Oct 16 11:55:43 2020
RELEASE 753
COMPONENT NI (network interface)
VERSION 40
RC -10
MODULE /bas/753_REL/src/base/ni/nibuf.cpp
LINE 4568
DETAIL NiBufIConnect: connection pending after 60000ms
SYSTEM CALL connect
ERRNO 115
ERRNO TEXT Operation now in progress
COUNTER 2
The text was updated successfully, but these errors were encountered: