SAP TCodes · LessonReviewed by Ravi M, SAP Trainer, 10 yrs · Updated · Published · SAP S/4HANA 2023 · all levels
SAP SM59
SM59 is the SAP transaction code for RFC Destinations (Basis/Integration). It maintains RFC destinations, the definitions of how SAP connects to other SAP and external systems for remote calls, and tests those connections.
Quick answer
SM59 maintains RFC destinations, the definitions of how SAP connects to other SAP and external systems for remote calls, and tests those connections.
Key takeaways
- Watch out: connection test and authorisation test are separate, and both have to pass.
Purpose
It maintains RFC destinations, the definitions of how SAP connects to other SAP and external systems for remote calls, and tests those connections.
Key fields and screen
- Destination name and connection type (ABAP, TCP/IP, HTTP).
- Target host/system and connection parameters.
- Logon: service user and credentials (or trusted).
- Connection and authorization test buttons.
Tips
- Use least-privilege service users, not broad dialog users.
- Test the connection (and authorization) after any change.
- After a system copy, correct destinations that point at the source.
Common errors
- Connection failed (host/port/network).
- Logon failed (wrong credentials/user locked).
- Authorization missing in the target system.
Common pitfalls
- Testing the connection and not the authorisation. They are separate tests with separate answers, and a destination that connects can still be unable to do anything.
- Using a dialog user as the service user. It consumes a licence, it locks under the password policy, and the interface stops on a Sunday for a reason nobody associates with it.
- Destinations pointing at production from a copied system. After a system copy the non production system happily calls production until somebody notices.
- Storing a password where a trusted relationship would do. One more credential to rotate, and one more place it can leak.
- Deleting a destination without checking what calls it. The callers do not announce themselves until they fail.