Looping constructs enable you to repeat a block of code multiple times. ABAP offers several looping structures:
DO Loop: The DO loop is a basic loop structure that repeatedly executes a block of code as long as a specified condition is true.
DATA lv_counter TYPE i VALUE 1.
DO 5 TIMES.
WRITE lv_counter.
ADD 1 TO lv_counter.
ENDDO.
Serkan AKKAVAK
Computer Engineer BSc
Head of SAP & Software Department
Contact : serkurumsal@yandex.com

0 Comments