Calling an RFC function module from one system to another

By Gaurab Banerji

Following are the participant system for our demo purpose:

D05 – System where RFC function module exists

DS3 – Calling system (an RFC call is made from this system to D05)  


We would develop a small RFC function module in D05 system, which would add two variables. We would pass two variables from DS3 to D05 and get back the sum of those two variables back to DS3.  

Activities to be performed in the system D05 

Go to SE37.

Under Utilities > Create Function Group (say ZGB_FUNC), if doesn’t exists

Now create a New Function Module ZGB_FUNC01  


Under IMPORT Tab, define the following variables

Under EXPORT Tab  


In the Source Code

Now set the function module as “Remote-enabled module” in the attributes tab.  


Activities to be performed in the System DS3 

Create an RFC destination from DS3 to D05.

Go to SM59, Press Create.

Enter the RFC Destination name: D05-205-TEST

Connection Type: 3

In Description: Test Connection to D05  

In The Technical Settings Tab, enter the system details

In The Logon/Security Tab, enter the logon details.

Click on Save. A Popup will imply that connection has been created  

Now Press the TEST CONNECTION to check the connection.  

This means the connection to the remote system was successful.

If the connection fails we get an error like this


Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image