ABAP Keyword Documentation → ABAP - Quick Reference
RECEIVE - Quick 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
Is sent, 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 ...
Passes output parametersp1
,p2
, ... to actual parametersa1
,a2
, ... -
TABLES t1 = itab1 t2 = itab2 ...
Assigns internal tablesitab1
,itab2
, ... to table parameterst1
,t2
(...and so on). -
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
(handles special exceptions in RFC including inheritance of the first line of the short dump aftersmess
orcmess
)
OTHERS = n_others
(assigns a numbern_others
for the return codesy-subrc
to all exceptions not named explicitly)