SAP Tutorials Blog


 


FOR Loop: The FOR loop is used for iterating over a range of values.

DATA lv_total TYPE i VALUE 0.

DO 5 TIMES.

  lv_total = lv_total + sy-index.

ENDDO.

WRITE lv_total.


Serkan AKKAVAK

Computer Engineer BSc

Head of SAP & Software Department

Contact : serkurumsal@yandex.com