RFC Communication Error
Symptom
When you run a Process file and try to sign in to the SAP system, error messages similar to one of the following are displayed:
SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM GWHOST=pisadev, GWSERV=sapgw00, SYSNR=00
CMALLC : rc=27 > Connect to SAP gateway to RFC server failed
Connect_PM GWHOST=196.38.209.141, GWSERV=sapgw03, SYSNR=03
Cause
This problem occurs when the SAP Gateway host is deactivated or the TCP/IP port 33xx (where xx is the system number) is not open.
Solution
- Ensure that the Telnet client is enabled in your computer. For information about how to enable Telnet, see Microsoft documentation.
- Ensure that the network ports used to communicate with SAP are open.
- Check if the SAP system that you are using is running.
The network ports that Process Runner uses to communicate with SAP are as follows:
- If you are using Custom Application Server connection type, check for the ports 32 and 33.
- If you are using Group/Server Selection connection type, check for the port 36.
- If you are using SNC SAP system, check for the port 48.
To check the status of the SAP system,
- Open SAP Logon, select the SAP system, right-click, and select Properties. The System Entry Properties window appears.
- If you are using the Custom Application Server connection type, copy the IP address displayed in the Application Server box and use it in the command that you run in step 2.
- If you are using the Group/Server Selection connection type, copy the IP address displayed in the Message Server box and use it in the command that you run in step 2.
- Open the Command Prompt window and run the following command.
Telnet <IPAddress><TCP/IP PortNumber><InstanceNumber>
If the SAP system is running, a blank screen is displayed with blinking cursor. If the connection fails, then a message similar to the following is displayed.
Connecting To 192.168.x.xxx…Could not open connection to the host, on the port 3200: Connect failed
If the connection fails, then contact your network administrator and ask them to open the required ports.