RETURN

Basic form

RETURN.

Effect

Unconditionally exits a processing block, that is, an event block, a dialog module or a procedure (function module, method, subroutine).

During report processing, that is, during the event blocks START-OF-SELECTION, GET, and END-OF-SELECTION, the system automatically goes to the basic list display.

Note

Unlike CHECK and EXIT, RETURN is context-independent. This means that the current processing block is exited, irrespective of whether RETURN occurs within or outside loops. If you want to leave a processing block, you should therefore always use RETURN instead of CHECK or EXIT.

Related

CHECK, EXIT