Create and send an RFC in SAP
Lists high-level tasks to complete on the SAP system to create an RFC. Each task may involve very detailed procedures. As a result, we recommend contacting your SAP administrator to complete these tasks, or refer to the SAP guidance.
Create an RFC
Start the SAP GUI.
Go to Transaction SE37 (Function Builder), enter the RFC name, and click Create.
Enter an existing function group under which the RFC will be created, a short description for the RFC, and click Save.
In the Attributes tab, select the Remote-Enabled Module radio button.
In the Import tab, enter the import parameters. These parameters are used for passing the external data to the function module.
In the Export tab, enter the export parameters.
In the Changing tab, enter the changing parameters.
In the Tables tab, enter the table names.
In the Exceptions tab, enter the exceptions to handle errors.
In the Source Code tab, enter the source code (logic) for the RFC.
Click the Activate icon on the toolbar to activate the function module.
Create an RFC destination
Start the SAP GUI.
Go to Transaction SM59 (Display and Maintain RFC Destinations).
From the menu bar, click Create.
Enter the RFC destination, connection type, description, and then press Enter.
Select the Registered Server Program radio-button, enter the program ID, gateway host, and gateway service.
Save the RFC destination.
Send an RFC from an SAP system
Start the SAP GUI.
Create a logical system using BD54 transaction.
Create an RFC destination in TCP/IP connections using SM59 transaction.
Create a port using WE21 transaction and attach it to the RFC destination created in the last step.
Trigger an RFC by using SE37. This RFC must contain the logic to make an RFC call to an external application and then receive a response from that application.
See Also
Performing Tasks Using the SAP GUI for Specific SAP Adapter Scenarios