RECEIVE
Reference
Syntax
RECEIVE RESULTS FROM FUNCTION func
[IMPORTING p1 = a1 p2 = a2 ...]
[TABLES t1 = itab1 t2 = itab2 ...]
[EXCEPTIONS [exc1 = n1 exc2 = n2 ...]
[system_failure = ns [MESSAGE smess]]
[communication_failure = nc [MESSAGE cmess]]
[OTHERS = n_others]]
[KEEPING TASK].
Effect
Receives, in a callback routine, the results of an asynchronous RFC.
Additions
-
IMPORTING p1 = a1 p2 = a2 ...
Adopts the output parameters p1,
p2, ... in the current parameters a1, a2, ...
-
TABLES t1 = itab1 t2 = itab2 ...
Assigns internal tables itab1,
itab2, ... to table parameters t1, t2, ...
-
EXCEPTIONS
Enables exceptions that are not class-based to be handled:
exc1 = n1 exc2 = n2 ... - Assigns numbers
n1, n2, ... to the classic exceptions exc1>,
exc2, ... for the return value sy-subrc.
system_failure, communication_failure
- Handling of special exceptions with RFC when the first row of the short dump is adopted after
smess or cmess.
OTHERS = n_others - Assigns a number n_others
to all exceptions that are not explicitly named for the return value sy-subrc.
-
KEEPING TASK
Prevents the RFC connection from being disconnected after results have been adopted.