STMS RFC Connection Test Fails: Check the Message Server Host

Getting an RFC connection error in STMS? If the error mentions the message server host, check the destination settings and network path first. There is no need to restart SAP just to investigate this.

Check the RFC destination

  1. Open STMS, go to System Overview and run the connection test for the affected system. Note the full error and the RFC destination name.
  2. Open SM59 and display that destination. Check the Technical Settings tab. For a load-balanced ABAP connection, confirm the message server host, target SID and logon group. For a direct connection, check the application server and instance number instead.
  3. Compare the configuration with the intended TMS communication settings and the actual landscape. Use SMLG on the target system to verify the relevant logon group.
Illustrative SM59 load-balanced ABAP RFC destination with message server field highlighted
SM59 technical settings (simulated example)

Check the connection from the source server

On a Linux application server initiating the RFC, run the following checks. The host and port are examples only; use the actual configured message server service and port.

getent hosts ms.example.com
nc -vz ms.example.com 3601

If name resolution or the TCP test fails, check DNS, routing and firewall rules with the infrastructure team. A successful TCP connection does not prove that RFC logon or load balancing works. Review the full SM59 test output and message server trace if needed.

Correct the TMS configuration

If the TMS communication host is wrong, review the affected system in the transport domain controller and correct the supported communication settings through STMS. Distribute the configuration as required. Avoid manually editing generated TMS destinations as a permanent fix. Record the old settings before changing them, then repeat the connection and authorization checks.

Reference

SAP Note: 3793726

SAP Help: Checking RFC Connections

SAP Help: TMS in SAP Systems with Multiple Application Servers

You May Also Like

Leave a Reply?