SAP CONTINUE ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for CONTINUE

CONTINUE

Short Reference
• CONTINUE ABAP Statement


ABAP Syntax CONTINUE.


What does it do? The CONTINUE statement can only be used in loops. If it is used, the current loop pass is ended immediately and the program flow is continued with the next loop pass.



Example ABAP Coding
A loop pass is exited using CONTINUE if the loop
index sy-index is an odd number. DATA remainder TYPE i.
DO 20 TIMES.
remainder = sy-index MOD 2.
IF remainder <(><<)>> 0.
CONTINUE.
ENDIF.
cl_demo_output=>write_text( |{ sy-index }| ).
ENDDO.
cl_demo_output=>display( ).

Return to menu