ERPClimb logoERPClimb
SAP technical topicObjectSAP RFC Destinations and SM59 Connection TypesModuleBTP_INTEGRATION

SAP RFC Destinations and SM59 Connection Types

SM59 stores RFC destination definitions that tell SAP where and how to call a remote system or program. Destination types cover ABAP connections, TCP/IP external programs, HTTP connections and other specialized protocols depending on release. Connection test, authorization test and remote logon prove different layers; a green connection test does not prove the RFC user can execute the required business function.

High-value SAP technical guide to SAP RFC Destinations and SM59 Connection Types: architecture, troubleshooting position, a concrete scenario, decision rules, common production failures, S/4HANA direction, ownership and related evidence.

Reviewed by an ERPClimb SAP consultant on 20 Sept 2026· 784 words

What it is

An RFC destination contains technical endpoint, connection type, logon/authentication, gateway/router, language/client and performance/security options appropriate to the protocol. Type 3 ABAP connections are common for SAP-to-SAP RFC; Type T TCP/IP destinations connect registered/started external RFC programs; HTTP destination types cover web endpoints. Destinations are reusable infrastructure references consumed by CALL FUNCTION DESTINATION, IDoc ports, qRFC/bgRFC, trusted RFC and other frameworks. Password-based technical users, trusted systems and SNC/security options each create different risk and operational behavior.

When to use it

Use SM59 when a supported SAP interface requires RFC/HTTP destination-based connectivity. Test the network/logon separately from the business call: connection test proves reachability at one level, authorization test/logon proves credentials/permissions, and the actual function call proves application authorization/data. Avoid storing broad high-privilege technical users because 'it fixes the connection'. For BTP/cloud scenarios, SAP BTP Destinations and Cloud Connector may replace or complement SM59.

How it fits the stack

RFC destinations sit under BAPI/RFC calls, IDoc tRFC ports, qRFC queues and some workflow/application integrations. WE21 can reference an RFC destination through a port. SM58 may show tRFC failures that ultimately use SM59 connectivity. Trusted RFC and principal propagation change identity flow; SNC/TLS/router settings change transport security. Monitoring requires identifying whether the incident is name resolution/network, gateway, authentication, authorization, or remote application logic.

A worked example

An IDoc tRFC destination passes SM59 Connection Test but outbound calls fail with RFC_NO_AUTHORITY. Network and logon are working; the technical user lacks permission for the called function/application. Increasing timeouts or changing host would not help. The Security team adjusts the least-privilege role, then a function-level test succeeds. In a different incident, 'program not registered' on a Type T destination points to external RFC server registration/gateway, not ABAP authorization.

How to choose

  • Identify connection type/protocol before interpreting the error.
  • Use least-privilege authentication appropriate to the interface.
  • Separate network/connection, logon, authorization and application tests.
  • For cloud/on-premise connectivity, decide whether SM59, BTP Destination and Cloud Connector each have a role.
  • Document ownership and certificate/password rotation for every productive destination.

Common pitfalls

  • Treating successful Connection Test as proof that every BAPI/RFC call is authorized.
  • Using SAP_ALL technical users to hide missing authorization design.
  • Confusing Type 3 ABAP destination issues with Type T registered-server issues.
  • Copying destinations after a system refresh without adapting hosts/logical-system/security credentials.
  • Embedding destination-specific assumptions in business code instead of configuration.

ECC, S/4HANA and clean core

SM59 remains fundamental in S/4HANA on-premise/private cloud for RFC-based integration. BTP side-by-side designs increasingly use Destination service/Cloud Connector and released HTTP APIs instead. Clean-core principles affect which remote functions should be called, not merely whether the RFC route can reach them.

Whose problem this is

Basis owns destination/network/gateway configuration; Security owns users/trust/SNC/auth; integration teams own interface mapping and endpoint lifecycle; application teams own business-call errors after connectivity is proven.

Related SAP objects

Reviewed pages this object connects to in the ERPClimb knowledge graph.

Source: ERPClimb — https://erpclimb.com/sap-technical-topics/sap-rfc-destinations-sm59-connection-typesERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.