---
description: "This tutorial is divided into 4 sections Setup a RFC connection Trusted RFC connection Testing a RFC connection Error Resolution Procedure to setup an RFC connection: Enter Transaction Code SM59"
title: How to Configure &#038; Test RFC Connection in SAP &#8211; SM59
image: https://www.guru99.com/images/sap-sm59-rfc-connection.png
---

[Skip to content](#main)

**⚡ Smart Summary**

RFC, or Remote Function Call, lets one SAP system call functions in another. Transaction SM59 configures RFC destinations, including trusted connections, and provides connection and authorization tests to confirm that two systems communicate correctly.

- 🔌 **RFC Destination:** SM59 creates and manages the RFC destinations that connect SAP systems.
- 🧭 **Connection Types:** Destinations are organized by type in a menu-based option tree.
- 🤝 **Trusted RFC:** A trusted RFC connection allows logon without repeatedly sending a password.
- 🧪 **Connection Test:** The Connection Test checks that the target system is reachable.
- 🔐 **Authorization Test:** The remote logon test confirms user rights on the target system.
- 🛠️ **Troubleshooting:** Error resolution covers host, gateway, and logon problems.
- 🤖 **Automation:** AI monitoring predicts RFC failures and flags broken interfaces early.

Read More

![Configure and Test RFC Connection in SAP using SM59](https://www.guru99.com/images/sap-sm59-rfc-connection.png)

This tutorial is divided into 4 sections

**Step 1:** Setup an RFC connection

**Step 2:** Trusted RFC connection

**Step 3:** Testing an RFC connection

**Step 4:** Error Resolution

## Step 1: Procedure to setup an RFC connection

Enter Transaction Code **SM59**

[![Setup an RFC connection]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC5.png)

In the SM59 screen, you can navigate through already created RFCs connection with the help of option tree, which is a menu-based method to organize all the connections by categories.

[![Setup an RFC connection]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC6.png)

|  | #1 BEST OVERALL [![GoFrugal]()](https://guru99.live/mmus9e) 9.8/10 ★★★★★ [Start Free Trial](https://guru99.live/mmus9e) | [![Xero]()](https://guru99.live/7sgags) 9.5/10 ★★★★★ [Visit Xero](https://guru99.live/7sgags) | [![Paychex]()](https://guru99.live/291q7y) 9.3/10 ★★★★★ [Visit Paychex](https://guru99.live/291q7y) |
| --- | --- | --- | --- |
| Best For | Retail & Distribution ERP | Online Accounting | Payroll & HR |
| Key Feature | *✓*POS, inventory & accounting in one | *✓*Invoicing & bank reconciliation | *✓*Payroll processing & tax filing |
| Also Includes | *✓*Cloud & mobile apps | *✓*1,000+ app integrations | *✓*Benefits administration |
| Free Trial | 30-Day Free Trial | 30-Day Free Trial | Get a Free Quote |
|  | [Start Free Trial](https://guru99.live/mmus9e) | [Visit Xero](https://guru99.live/7sgags) | [Visit Paychex](https://guru99.live/291q7y) |

#1 BEST OVERALL

1 [![GoFrugal]()](https://guru99.live/mmus9e)

9.8/10

★★★★★

Best For

Retail & Distribution ERP

Key Feature

*✓*POS, inventory & accounting in one

Also Includes

*✓*Cloud & mobile apps

Free Trial

30-Day Free Trial

[Start Free Trial](https://guru99.live/mmus9e)

2 [![Xero]()](https://guru99.live/7sgags)

9.5/10

★★★★★

Best For

Online Accounting

Key Feature

*✓*Invoicing & bank reconciliation

Also Includes

*✓*1,000+ app integrations

Free Trial

30-Day Free Trial

[Visit Xero](https://guru99.live/7sgags)

3 [![Paychex]()](https://guru99.live/291q7y)

9.3/10

★★★★★

Best For

Payroll & HR

Key Feature

*✓*Payroll processing & tax filing

Also Includes

*✓*Benefits administration

Free Trial

Get a Free Quote

[Visit Paychex](https://guru99.live/291q7y)

Click the ‘CREATE’ button. In the next screen , Enter –

- **RFC Destination** – Name of Destination (could be Target System ID or anything relevant)
- **Connection Type** – here we choose one of the types (as explained previously) of RFC connections as per requirements.
- **Description** – This is a short informative description, probably to explain the purpose of connection.

[![ Setup an RFC connection]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC10.png)

After you**‘SAVE’**the connection, the system will take you to ‘Technical Settings’ tab, where we provide the following information:

- **Target Host**– Here we provide the complete hostname or IP address of the target system.
- **System Number –** This is the system number of the target SAP system.
- Click Save

[![ Setup an RFC connection]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC11.png)

In the **‘Logon and Security’** Tab, Enter Target System information

- **Language** – As per the target system’s language
- **Client** – In SAP we never logon to a system, there has to be a particular client always, therefore we need to specify client number here for correct execution.
- **User ID and Password** – preferably not to be your own login ID, there should be some generic ID so that the connection should not be affected by constantly changing end-user IDs or passwords. Mostly, a user of type ‘System’ or ‘Communication’ is used here. Please note that this is the User ID for the target system and not the source system where we are creating this connection.

[![ Setup an RFC connection]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC12.png)

Click Save. RFC connection is ready for use

**Note**: By default, a connection is defined as aRFC. To define a connection as tRFC or qRFC go to Menu Bar -> Destination aRFC options / tRFC options ; provide inputs as per requirements. To define qRFC, use the special options tab.

## Step 2: Trusted RFC connection

There is an option to make the RFC connection as **‘Trusted’.** Once selected, the calling (trusted) system doesn’t require a password to connect with target (trusting) system.

[![Trusted RFC connection]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC13.png)

Following are the advantages for using trusted channels:

- Cross-system Single-Sign-On facility
- Password does not need to be sent across the network
- Timeout mechanism for the logon data prevents misuse.
- Prevents the mishandling of logon data because of the time-out mechanism.
- User-specific logon details of the calling/trusted system is checked.

**Don't Miss:**

- [SAP R/3 Architecture](https://www.guru99.com/learning-sap-architecture.html)
- [How to Delete a Client in SAP SM50](https://www.guru99.com/how-to-delete-a-client.html)
- [SAP Background Job Processing SM36](https://www.guru99.com/background-job-processing.html)
- [Remote Function Call (RFC) in SAP ABAP Tutorial](https://www.guru99.com/rfc-remote-function-call.html)

The RFC users must have the required authorizations in the trusting system (authorization object **S\_RFCACL**).Trusted connections are mostly used to connect [SAP Solution Manager Systems](https://www.guru99.com/overview-of-sap-solution-manager.html) with other SAP systems (satellites)

## Step 3: Testing the RFC Connection

After the RFCs are created (or sometimes in the case of already existing RFCs) we need to test, whether the connection is established successfully or not.

[![Testing the RFC Connection]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC14.png)

As shown above we go to SM59 to choose the RFC connection to be tested and then we expand drop down menu – “**Utilities->Test->…**“. We have three options:

**Connection test ->** This attempts to make a connection with the remote system and hence validates IP address / Hostname and other connection details. If both systems are not able to connect, it throws an error. On success, it displays the table with response times. This test is just to check if the calling system can reach the remote system.

[![Testing the RFC Connection]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC15.png)

**Authorization Test ->** It is used to validate the User ID and Password (provided under ‘logon and security’ tab for the target system) and also the authorizations that are provided. If a test is successful, then the same screen will appear as shown above for the connection test.

**Unicode Test ->** It is to check if the Target system is a Unicode or not.

[![Testing the RFC Connection]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC16.png)

**Remote Logon –>**This is also a kind of connection test, in which a new session of the target system is opened, and we need to specify a login ID and Password (if not already mentioned under ‘Logon and Security’ tab). If the user is of type ‘Dialog’ then a dialog session is created. To justify the successful connection test, output will be the response times for the communication packets, else error message will appear.

[![Testing the RFC Connection]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC17.png)

[![Testing the RFC Connection]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC18.png)

## Step 4: What went wrong?

If somehow the [RFC](https://www.guru99.com/rfc-remote-function-call.html) connection is not established successfully, we can check the logs (to analyze the issue) at OS level in the ‘WORK’ director. There we can find the log files with the naming convention as “dev\_rfc\<sequence no.>” and the error description can be read from such files.

[![What went wrong]()](https://www.guru99.com/images/sap/2013/04/041213_0632_RFC19.png)

## FAQs

🔌 What is the transaction code to configure RFC?

The transaction code is SM59. It is used to create, display, and test RFC destinations that connect an SAP system to other SAP or external systems.

🤝 What is a trusted RFC connection?

A trusted RFC connection establishes a trust relationship between two SAP systems, so users can log on to the target without sending a password again. It relies on trust configuration and proper authorizations.

🧭 What are common RFC connection types?

Common types are type 3 for ABAP-to-ABAP connections, type T for external TCP/IP programs, and type H for HTTP or web-service connections. SM59 organizes them in the connection tree.

🤖 Can AI monitor RFC connections in SAP?

Yes. AI-based operations tools watch RFC traffic, predict failures, and alert teams to broken or slow interfaces before they disrupt business processes, complementing manual SM59 testing.

🧠 How does AI help integrate SAP systems?

[artificial intelligence](https://www.guru99.com/artificial-intelligence-tutorial.html) in integration platforms maps interfaces, detects anomalies in message flows, and recommends fixes, making connections such as RFC and IDoc more reliable across the landscape.

#### Summarize this post with:

ChatGPTPerplexityGrokGoogle AI

**Stay Updated on AI** **Get Weekly AI Skills, Trends, Actionable Advice.**

##### Sign up for the newsletter

Subscribe for Free

You have successfully subscribed.  
Please check your inbox.

![AI-Newsletter]() Chosen by over **350,000+** professionals

[Scroll to top](#wrapper)

×

Search for:

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.guru99.com/#organization","name":"Guru99","sameAs":["https://www.facebook.com/Guru99Official","https://twitter.com/guru99com"],"logo":{"@type":"ImageObject","@id":"https://www.guru99.com/#logo","url":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","contentUrl":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","caption":"Guru99","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.guru99.com/#website","url":"https://www.guru99.com","name":"Guru99","publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.guru99.com/images/sap-sm59-rfc-connection.png","url":"https://www.guru99.com/images/sap-sm59-rfc-connection.png","width":"700","height":"250","caption":"SAP SM59: RFC Connection","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://www.guru99.com/how-to-configure-and-test-rfc.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://www.guru99.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://www.guru99.com/sap-basis","name":"SAP - Basis"}},{"@type":"ListItem","position":"3","item":{"@id":"https://www.guru99.com/how-to-configure-and-test-rfc.html","name":"How to Configure &#038; Test RFC Connection in SAP &#8211; SM59"}}]},{"@type":"WebPage","@id":"https://www.guru99.com/how-to-configure-and-test-rfc.html#webpage","url":"https://www.guru99.com/how-to-configure-and-test-rfc.html","name":"How to Configure &#038; Test RFC Connection in SAP &#8211; SM59","dateModified":"2026-10-09T12:14:12+05:30","isPartOf":{"@id":"https://www.guru99.com/#website"},"primaryImageOfPage":{"@id":"https://www.guru99.com/images/sap-sm59-rfc-connection.png"},"inLanguage":"en-US","breadcrumb":{"@id":"https://www.guru99.com/how-to-configure-and-test-rfc.html#breadcrumb"}},{"@type":"Person","@id":"https://www.guru99.com/author/editorial","name":"Editorial Team","url":"https://www.guru99.com/author/editorial","image":{"@type":"ImageObject","@id":"https://www.guru99.com/images/favicon-new-logo.png","url":"https://www.guru99.com/images/favicon-new-logo.png","caption":"Editorial Team","inLanguage":"en-US"},"sameAs":["https://www.guru99.com/editorial-team"],"worksFor":{"@id":"https://www.guru99.com/#organization"}},{"articleSection":"SAP - Basis","headline":"How to Configure &#038; Test RFC Connection in SAP &#8211; SM59","description":"This tutorial is divided into 4 sections Setup a RFC connection Trusted RFC connection Testing a RFC connection Error Resolution Procedure to setup an RFC connection: Enter Transaction Code SM59","keywords":"sap-basis, sap","speakable":{"@type":"SpeakableSpecification","cssSelector":[".entry-title",".summary"]},"@type":"Article","author":{"@id":"https://www.guru99.com/author/editorial","name":"Editorial Team"},"dateModified":"2026-10-09T12:14:12+05:30","image":{"@id":"https://www.guru99.com/images/sap-sm59-rfc-connection.png"},"copyrightYear":"2026","name":"How to Configure &#038; Test RFC Connection in SAP &#8211; SM59","subjectOf":[{"@type":"HowTo","name":"How to Configure &amp; Test RFC Connection in SAP - SM59","description":"This tutorial is divided into 4 sections","step":[{"@type":"HowToStep","name":"Step 1) Procedure to setup an RFC connection:","text":"Enter Transaction Code SM59","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/sap/2013/04/041213_0632_RFC5.png"},"url":"https://www.guru99.com/how-to-configure-and-test-rfc.html#step1"},{"@type":"HowToStep","name":"Step 2) Trusted RFC connection","text":"There is an option to make the RFC connection as 'Trusted'.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/sap/2013/04/041213_0632_RFC13.png"},"url":"https://www.guru99.com/how-to-configure-and-test-rfc.html#step2"},{"@type":"HowToStep","name":"Step 3) Testing the RFC Connection","text":"After the RFCs are created (or sometimes in the case of already existing RFCs) we need to test,","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/sap/2013/04/041213_0632_RFC14.png"},"url":"https://www.guru99.com/how-to-configure-and-test-rfc.html#step3"},{"@type":"HowToStep","name":"Step 4) What went wrong?","text":"If somehow the RFC connection is not established successfully, we can check the logs (to analyze the issue) at OS level in the 'WORK' director.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/sap/2013/04/041213_0632_RFC19.png"},"url":"https://www.guru99.com/how-to-configure-and-test-rfc.html#step4"}]},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is the transaction code to configure RFC?","acceptedAnswer":{"@type":"Answer","text":"The transaction code is SM59. It is used to create, display, and test RFC destinations that connect an SAP system to other SAP or external systems."}},{"@type":"Question","name":"What is a trusted RFC connection?","acceptedAnswer":{"@type":"Answer","text":"A trusted RFC connection establishes a trust relationship between two SAP systems, so users can log on to the target without sending a password again. It relies on trust configuration and proper authorizations."}},{"@type":"Question","name":"What are common RFC connection types?","acceptedAnswer":{"@type":"Answer","text":"Common types are type 3 for ABAP-to-ABAP connections, type T for external TCP/IP programs, and type H for HTTP or web-service connections. SM59 organizes them in the connection tree."}},{"@type":"Question","name":"Can AI monitor RFC connections in SAP?","acceptedAnswer":{"@type":"Answer","text":"Yes. AI-based operations tools watch RFC traffic, predict failures, and alert teams to broken or slow interfaces before they disrupt business processes, complementing manual SM59 testing."}},{"@type":"Question","name":"How does AI help integrate SAP systems?","acceptedAnswer":{"@type":"Answer","text":"artificial intelligence in integration platforms maps interfaces, detects anomalies in message flows, and recommends fixes, making connections such as RFC and IDoc more reliable across the landscape."}}]}],"@id":"https://www.guru99.com/how-to-configure-and-test-rfc.html#schema-27238","isPartOf":{"@id":"https://www.guru99.com/how-to-configure-and-test-rfc.html#webpage"},"publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.guru99.com/how-to-configure-and-test-rfc.html#webpage"}}]}
```
