ABAP Keyword Documentation → ABAP − Short Reference
RECEIVE - Short Reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
RECEIVE RESULTS FROM FUNCTION func
[KEEPING TASK]
[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]].
Effect
Receives, in a callback routine, the results of an asynchronous RFC.
Additions
-
KEEPING TASK
Prevents the RFC connection from being disconnected after results have been inherited. -
IMPORTING p1 = a1 p2 = a2 ...
Inherits output parametersp1,p2, ... in actual parametersa1,a2, ... -
TABLES t1 = itab1 t2 = itab2 ...
Assigns internal tablesitab1,itab2, ... to table parameterst1,t2, ... -
EXCEPTIONS
Enables the handling of non-class-based exceptions:
exc1 = n1 exc2 = n2 ...- Assigns numbersn1,n2, ... to the classic exceptionsexc1,exc2, ... for the return codesy-subrc.
system_failure,communication_failure- Handling of special exceptions in RFC including inheritance of the first line of the short dump aftersmessorcmess.
OTHERS = n_others- Assigns a numbern_othersfor the return valuesy-subrcto all exceptions not named explicitly.