CALL FUNCTION - RFC

INDEX @@CALL FUNCTION - RFC@@ABAP Statement@@

Syntax Forms


Synchronous RFC

1. CALL FUNCTION func DESTINATION dest
                     parameter_list.

Asynchronous RFC

2. CALL FUNCTION func STARTING NEW TASK task
                [DESTINATION {dest|{IN GROUP {group|DEFAULT}}}]
                parameter_list
                [{PERFORMING subr}|{CALLING meth} ON END OF TASK].

Transactional RFC

3. CALL FUNCTION func IN BACKGROUND TASK
                     [DESTINATION dest]
                     parameter_list
                     [AS SEPARATE UNIT].

4. CALL FUNCTION func IN BACKGROUND UNIT
                     parameter_list.

Effect

A function module or a function is called using the RFC interface.

Exceptions

Non-Catchable Exceptions

Runtime Error: CALL_FUNCTION_TABINFO

Cause: Only applies to asynchronous RFC: Task name is already being used
Runtime Error: CALL_FUNCTION_TASK_IN_USE

Cause: Only applies to asynchronous RFC: The specified task is already open
Runtime Error: CALL_FUNCTION_TASK_YET_OPEN