RECEIVE

Short Reference

Syntax

RECEIVE RESULTS FROM FUNCTION func
                parameter_list
                [KEEPING TASK].

Addition:

... KEEPING TASK

Effect

You can use this statement in a callback routine specified in an asynchronous RFC to receive output parameters of an asynchronously called function func and to assign return values to exceptions in the parameter list parameter_list.

Notes

Addition

... KEEPING TASK

Effect

Use addition KEEPING TASK to keep the asynchronous RFC connection and thus the context of the called function module. At a new call with the same task identifier, the same global data of the function group is addressed. A destination specified directly via DESTINATION can, but must not be specified again. You are not allowed to specify a group via DESTINATION IN GROUP if you call again. Without the KEEPING TASK addition, an asynchronous RFC connection is closed after execution of the remote function or after receiving the results.

Note

You should use addition KEEPING TASK only if you need the context of the called function module for other function calls.