Configure and use an RFC destination in SAP to call an external system from ABAP

domain: sap-s4hana · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create the RFC destination in transaction SM59, choosing the appropriate connection type (e.g. type G for HTTP, type 3 for ABAP-to-ABAP)
  2. Enter the target host, port, path prefix, and logon credentials; use the 'Test Connection' and 'Remote Logon' buttons to validate before saving
  3. In ABAP, call the destination using CALL FUNCTION ... DESTINATION <dest_name> and handle the exceptions COMMUNICATION_FAILURE and SYSTEM_FAILURE
  4. For load balancing or failover, use a logon group-based destination (type L) rather than hard-coding a single host
  5. Monitor active and queued RFC calls in transactions SM58 (tRFC/qRFC outbound) and SM66 (work process overview)

Known gotchas

Related routes

Call an on-premise SAP RFC/BAPI from a BTP application using the SAP BTP Destination service and Cloud Connector
help.sap.com · 6 steps · unrated
Resolve and call an on-premise SAP system through the SAP BTP Destination service using client credentials
sap-btp · 5 steps · unrated
Call a custom Salesforce Apex REST endpoint from an external system
salesforce.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans