Start of Content Area

 Introduction  Locate the document in its SAP Library structure

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: Tools Administration Administration Network RFC Destinations.

Programming guidelines are available in the following topics:

Parameter Handling in Remote Calls

Characteristics Using Unicode

Calling Remote Functions Locally

Calling Remote Functions

CALL FUNCTION - RFC (RFC Variants)

 

 

End of Content Area