Get Example source ABAP code based on a different SAP table
ID EXIT • EXIT - processing block ABAP Statement
EXIT>, processing_block> Short Reference >
ABAP_SYNTAX EXIT.>
What does it do? If the statement EXIT> is outside a loop>, it immediately terminates the current processing block>. After the processing block is exited, the runtime framework behaves in the same way as when the processing block is exited in a regular way> BEGIN_SECTION VERSION 5 OUT , with the exception of the event block LOAD-OF-PROGRAM>> and the reporting event blocks> START-OF-SELECTION> and GET> END_SECTION VERSION 5 OUT . In particular, the output parameters of procedures are passed on to the bound actual parameters. BEGIN_SECTION VERSION 5 OUT
The event block LOAD-OF-PROGRAM> cannot be exited using EXIT >.
After the reporting event blocks START-OF-SELECTION> and GET > have been terminated using EXIT>, the runtime framework does not raise any more reporting events and instead calls the list processor directly to display the basic list. END_SECTION VERSION 5 OUT
ABAP_PGL Only use RETURN> to exit procedures > ABAP_PGL_END
ABAP_EXAMPLE_VX5 The method meth> contains two EXIT> statements. Whereas the first statement exits the LOOP> loop, the second statement exits the entire method. Therefore, the RETURN> statement should be used instead of the second EXIT> statement. ABEXA 00249 ABAP_EXAMPLE_END