Open IT-HONGREAT opened 5 months ago
Setting DYLD_LIBRARY_PATH has no effect for PyRFC on MacOS because of System Integrity Runtime Protections. No need to use it. SAPNWRFC_HOME also has no effect on runtime.
The error message is about network issue, which means the RFC SDK libraries are loaded and PyRFC could not reach the ABAP system. The cause are usually wrong connection parameters or network connectivity issues.
Could you please check connection parameters and sapnwrfc.ini
file location?
sapnwrfc.ini
default location is current working directory. The full path to sapnwrfc.ini
(including file name) can be configured using RFC_INI
env variable (not SAPNWRFC_INI_FILE). Alternatively, sapnwrfc.ini directory (without file name) can be set using PyRFC function set_ini_file_directory
. More info are in this comment https://github.com/SAP/PyRFC/issues/275#issuecomment-1104912776
If the issue still persist, you set the global RFC trace level and remove it from destination connection parameters, like this
DEFAULT
RFC_TRACE=3 # 'global' trace level
Then run the test and send the trace. If the trace contains sensitive info, you can create SAP customer incident for BC-MID-RFC-SDK component and post the trace there, with reference to this issue.
I met key=RFC_COMMUNICATION_FAILURE error, and study documents&git issues. But i didn't solve this error. I ask for your help.
Environment
I installed sapnwrfc pkg. and export envs.
envs
This is my sapnwrfc.ini file.
This is my connection code from some examples.
And comes this error.
Thanks