STOP :This statement terminates a processing block in an executable program. The statement is only intended for use in the INITIALIZATION, AT SELECTION-SCREEN, START-OF-SELECTION, and GET events. It terminates the current processing block in an executable program and triggers the END-OF-SELECTION event. In all other processing blocks, or when you do not want to trigger the END-OF-SELECTION event, you must use EXIT. EXIT. - Within a loop structure: Terminates loop processing (DO, WHILE, LOOP, SELECT). - Within subroutines and other modularization units (but not in a loop structure): Leaves the subroutine or modularization unit (FORM, MODULE, FUNCTION, TOP-OF-PAGE, END-OF-PAGE). - Outside loop structures and modularization units (report processing): DATA: SAP_COUNT TYPE I, |
Sap Technology > ABAP DEVELOPMENT >