Get Example source ABAP code based on a different SAP table
• 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
What does it do? These additions are used to pass the specified formal parameters of the function module func> specified after RECEIVE >> to the actual parameter of the callback routine in the calling program. The meaning of the additions is the same as for synchronous RFC>. However, values are only applied by actual parameters specified using CHANGING> or TABLES> and are not passed. EXCEPTIONS> is used to perform non-class-based exception handling. Return codes are assigned to the non-class-based exceptions. The same exceptions can be raised as in synchronous RFC>, that is, exceptions that are defined in the interface of the function module and the predefined exceptions of the RFC interface. If no exceptions are raised, RECEIVE> sets the content of sy-subrc> to 0.
Latest notes: CALL FUNCTION> and RECEIVE> are currently decoupled with regard to the addition EXCEPTIONS>. This changes when class-based exceptions are introduced. For this reason, it is advisable to use the addition EXCEPTIONS> in the same way for CALL FUNCTION> and RECEIVE>. ABAP_HINT_END