Skip to content

ABAP Keyword Documentation →  ABAP − Short Reference 

RECEIVE - Short Reference

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 parameters p1, p2, ... in actual parameters a1, a2, ...
  • TABLES t1 = itab1 t2 = itab2 ...
    Assigns internal tables itab1, itab2, ... to table parameters t1, t2, ...
  • EXCEPTIONS
    Enables the handling of non-class-based exceptions:

    exc1 = n1 exc2 = n2 ... - Assigns numbers n1, n2, ... to the classic exceptions exc1, exc2, ... for the return code sy-subrc.

    system_failure, communication_failure - Handling of special exceptions in RFC including inheritance of the first line of the short dump after smess or cmess.

    OTHERS = n_others - Assigns a number n_others for the return value sy-subrc to all exceptions not named explicitly.