Skip to content

ABAP Keyword Documentation →  ABAP - Quick Reference 

RECEIVE - Quick 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

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 parameters p1, p2, ... to actual parameters a1, a2, ...
  • TABLES t1 = itab1 t2 = itab2 ...
    Assigns internal tables itab1, itab2, ... to table parameters t1, t2 (...and so on).
  • 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 (handles 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 code sy-subrc to all exceptions not named explicitly)