Show TOC

IntroductionLocate this document in the navigation structure

Use

You can use the CALL FUNCTION statement to call remote functions, just as you would call local function modules. However, you must include an additional DESTINATION clause to define where the function should run:

CALL FUNCTION Remotefunction

DESTINATION Dest

EXPORTING

F1 = a1

F2 = a2

IMPORTING

F3 = a3

CHANGING

F4 = a4

TABLES

t1 = ITAB

EXCEPTIONS

...

The Remotefunction field can either be a literal or a variable. The field Dest can be either a literal or a variable: its value is a logical destination (for example, "hw1071_53") known to the local SAP System. You can define logical destinations in table RFCDES using transaction SM59, or using the following menu path: Start of the navigation path Tools Next navigation step Administration, Administration Next navigation step Network Next navigation step RFC Destinations End of the navigation path.

Programming guidelines are available in the following topics: