ABAP Keyword Documentation →  ABAP − Reference →  Data Interfaces and Communication Interfaces →  RFC - Remote Function Call →  CALL FUNCTION - RFC →  CALL FUNCTION - STARTING NEW TASK → 

RECEIVE  Syntax Diagram

Short Reference

Syntax

RECEIVE RESULTS FROM FUNCTION func
                [KEEPING TASK]
               parameter_list.

Addition:

... KEEPING TASK

Effect

This statement can be used in a callback routine specified in an asynchronous RFC to receive output parameters of an asynchronously called function func in the parameter list parameter_list and to handle exceptions.

Notes

Addition

... KEEPING TASK

Effect

The addition KEEPING TASK retains the asynchronous RFC connection, and therefore also the context of the called function module. When a new call is made with the same task ID, the same global data of the function group is addressed. A destination specified directly using DESTINATION can be specified again, but does not have to be. DESTINATION IN GROUP cannot be used to specify a group if a new call is performed. Without the addition KEEPING TASK, an asynchronous RFC connection is finished after the remote function is executed or the results are copied.

Note

The addition KEEPING TASK can be used only if the context of the called function module is required for other function calls.




Continue
RECEIVE - parameter_list