SAP RECEIVE PARA ABAP Statements

Get Example source ABAP code based on a different SAP table
  



RECEIVE - parameter_list

Short Reference
• IMPORTING RECEIVE RESULTS FROM FUNCTION
• TABLES RECEIVE RESULTS FROM FUNCTION
• EXCEPTIONS RECEIVE RESULTS FROM FUNCTION
• MESSAGE RECEIVE RESULTS FROM FUNCTION
• OTHERS RECEIVE RESULTS FROM FUNCTION
• communication_failure RECEIVE RESULTS FROM FUNCTION
• system_failure RECEIVE RESULTS FROM FUNCTION


ABAP Syntax ... [IMPORTING p1 = a1 p2 = a2 ...]

[TABLES t1 = itab1 t2 = itab2 ...]
[CHANGING p1 = a1 p2 = a2 ...]
[EXCEPTIONS [exc1 = n1 exc2 = n2 ...]
[system_failure = ns [MESSAGE smess]]
[communication_failure = nc [MESSAGE cmess]]
[OTHERS = n_others]].

What does it do? These additions are used to pass the specified formal parameters of the function module specified in func to the actual parameter of the callback routine in the calling program. The meaning of the additions is the same as in synchronous RFC. However, values are only adopted by actual parameters, specified using CHANGING. The values are not passed by the actual parameters.

If EXCEPTIONS is specified, class-based exception handling is used. Return codes are assigned to the non-class-based exceptions. The same exceptions can occur as in synchronous RFC. This means exceptions that are defined in the interface of the function module and the predefined exceptions of the RFC interface. If no exceptions occur, RECEIVE sets the contents of sy-subrc to 0.



Latest notes:CALL FUNCTION and RECEIVE are currently
independent of each other as far as the addition EXCEPTIONS is concerned. This changes when class-based exceptions are introduced. For this reason, we recommend that you use the addition EXCEPTIONS in the same way for CALL FUNCTION and RECEIVE.

Return to menu