Show TOC Start of Content Area

Background documentation Synchronous RFC (CALL FUNCTION-DESTINATION)   Locate the document in its SAP Library structure

Syntax

CALL FUNCTION func DESTINATION dest parameter list.

Effect

Synchronous call of a remote-capable function module specified in func using the RFC interface. With the addition DESTINATION, the destination is specified in dest. Character-type data objects are expected for func and dest. If the remotely called function is terminated, the calling program is continued using the CALL FUNCTION statement.

Note

Execution of a function module called using synchronous RFC does not lead to a database commit in an update function.

For more information about updating data in the SAP system, see Updates in the SAP System (BC-CST-UP)

 

CALL FUNCTION - DESTINATION parameter list

Syntax

... [EXPORTING  p1 = a1 ... pn = an]
    [IMPORTING  p1 = a1 p2 = a2 ...]

[CHANGING   p1 = a1 p2 = a2 ...]
[TABLES     t1 = itab1 t2 = itab2 ...]
    [EXCEPTIONS exc1 = n1 exc2 = n2 ...  [MESSAGE mess]
               [OTHERS = n_others]].

Effect

These additions are used to assign actual parameters to the formal parameters of the function module, and return values to exceptions that are not class-based. The additions have the same meanings as for the general function module call, the only differences being that, with the addition TABLES, only tables with flat character types can be transferred, and that if a header line exists, it is not transferred. The additions EXPORTING, IMPORTING, and CHANGING allow you to transfer tables that have deep character types, deep structures, and strings.

For EXCEPTIONS, you can also specify an optional addition MESSAGE for the special exceptions SYSTEM_FAILURE and COMMUNICATION_FAILURE. If one of these exceptions occurs, the first line of the corresponding short dump is entered in the field mess, which must be flat and of character-type.

This graphic is explained in the accompanying textTransferring tables using addition TABLES is considerably faster than using the other additions, as a binary format is used internally instead of an XML format.

 

Using Pre-Defined Exceptions for RFCs

 

 

End of Content Area