sapdev logo background
sapdev logo sapdev logo
Comments

ABAP CONTINUE Statement syntax, information and example SAP source code



Return to Statement index



CONTINUE

Short Reference

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( ).
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




CONTEXTS
CONTROLS




comments powered by Disqus