Atlas Diagnostic

SAP RFC destination diagnostics

A first-pass structure for finding why an RFC destination fails, why tRFC or qRFC queues are stuck, or why cross-system calls return errors.

Reviewed

Core idea

RFC destinations in SAP define how one system calls another. When an RFC fails, the impact can be stuck IDocs, failed master data replication, missing transactional data, or batch job cancellations. The diagnostic task is to isolate whether the failure is in the network layer, the destination configuration, the target system availability, the user credentials, or the called function module.

The SM59 connection test and authorization test separate network or credential failures from application failures in the target system. Run both before opening a Basis or security ticket.

Common symptoms

  • RFC destination test in SM59 returns "Connection refused," "Name or password incorrect," or "Program not registered."
  • tRFC or qRFC queue in SM58 or SMQ1/SMQ2 shows repeated errors for a specific destination.
  • IDoc is stuck in status 03 (data passed to port) but never arrives at the target system.
  • Master data replication shows success in the source but the object is missing in the target.
  • Background job fails with RFC-related short dump (CALL_FUNCTION_REMOTE_ERROR).
  • Cross-system transaction fails with COMMIT_FAILURE or ROLLBACK_FAILURE.
  • RFC performance is slow, causing timeouts in calling programs.

Likely causes

  • Network or firewall: the target system is unreachable due to network changes, firewall rules, or DNS resolution failure.
  • Target system down: the target application server, message server, or gateway is not running.
  • User credentials: the user in the RFC destination is locked, expired, or has incorrect password.
  • Program not registered: for TCP/IP RFC destinations (e.g., PI/PO, external programs), the registered program is not running.
  • Gateway or message server issue: the SAP gateway (sapgwXX) or message server is not responding.
  • Load balancing misconfiguration: the logon group or message server parameters are incorrect.
  • Function module error: the RFC reaches the target system but the called function module fails due to data or authorization issues.

Where to check in SAP

  • SM59 — RFC destination administration; test connection, Unicode test, and authorization test.
  • SM58 — tRFC error log; check failed RFC calls and error texts.
  • SMQ1 / SMQ2 — qRFC queue monitor; check outbound and inbound queues.
  • SMGW — gateway monitor; check registered programs and active connections.
  • SMLG — logon group load balancing; check group assignment and server availability.
  • SM21 — system log; check for gateway or work process errors.
  • ST22 — short dump analysis; check for RFC-related dumps in the calling or target system.
  • AL11 — directory listing; check gateway trace files (dev_rd) if needed.

Key tables / transactions / objects

  • RFCDES / RFCDOC — RFC destination definitions.
  • ARFCSDATA / ARFCSSTATE — tRFC execution data and status.
  • TRFCQOUT / TRFCQIN — tRFC queue tables.
  • SMQ1 / SMQ2 — qRFC queue monitor transactions.
  • GWY_CONN — gateway connection table (via SMGW).
  • USR02 — user master; check if the RFC user is locked or expired.

Diagnostic workflow

  1. Identify the RFC destination name and the exact error message from SM59, SM58, or the application log.
  2. Test the connection in SM59: connection test, Unicode test, and authorization test.
  3. If the connection test fails, check network connectivity (ping, telnet to gateway port) from the Basis team.
  4. If the authorization test fails, check the user in USR02 for lock status, password expiry, or missing authorizations.
  5. Check SMGW for registered programs if the destination uses a registered RFC server program.
  6. Check SM58 for tRFC errors: note the transaction ID, error text, and retry count.
  7. Check SMQ1/SMQ2 for qRFC queue status if the destination uses queued RFC.
  8. Check ST22 in both source and target systems for RFC-related short dumps.
  9. If the connection succeeds but the function fails, check the target system application log (SLG1) for function module errors.

Typical fixes or next actions

  • Correct the RFC destination host name, IP address, or gateway service if network details changed.
  • Unlock or reset the password for the RFC user in SU01.
  • Restart the registered RFC program or server if it is not running.
  • Restart the SAP gateway service (sapgwXX) if it is not responding.
  • Reprocess tRFC errors in SM58 after fixing the underlying issue.
  • Clear or restart qRFC queues in SMQ1/SMQ2 if they are stuck.
  • Adjust the RFC timeout or retry settings if the issue is intermittent network latency.
  • Escalate to the network or Basis team if the issue is infrastructure-related.

What to capture first

RFC destination failures are usually network, configuration, or credential issues. Capture: RFC destination name, source system, target system, exact error message, SM59 test results, and whether the issue is isolated to one destination or affects multiple.

Boundaries and non-goals

This page is a diagnostic frame, not an RFC configuration guide. It does not cover RFC destination creation, SNC/SSL setup, or PI/PO adapter configuration. It does not replace SAP's RFC and integration documentation.

This is not official SAP documentation and not a replacement for system-specific analysis.