SAP ABAP - Continue Statement


Advertisements

CONTINUE statement is used in a statement block of the loop to terminate a single loop pass immediately and unconditionally. As soon as the CONTINUE statement is executed, the execution of the remaining statements in the current processing block is stopped and the next loop pass is processed.

The syntax for continue statement is −

CONTINUE.

Block Diagram

Continue Statement

Example

Report YH_SEP_15.  
DO 5 TIMES.  
IF SY-INDEX = 3.
  
CONTINUE.
  
ENDIF.
Write / SY-INDEX.  
ENDDO.

The above code produces the following output −

1 
2 
4 
5 

The CONTINUE statement ignores all the statements in the current statement block and proceeds with the next loop pass.

sap_abap_loop_control.htm

Useful Video Courses


Video

SAPUI5 Online Training

25 Lectures 6 hours

Sanjo Thomas

Video

SAP Webi Online Training

Most Popular

26 Lectures 2 hours

Neha Gupta

Video

SAP Basis Online Training

30 Lectures 2.5 hours

Sumit Agarwal

Video

SAP C4C Online Training

30 Lectures 4 hours

Sumit Agarwal

Video

SAP MM Online Training

14 Lectures 1.5 hours

Neha Malik

Video

SAP WM Online Training

13 Lectures 1.5 hours

Neha Malik

Advertisements