SAP Tutorials Blog


DATA str_d TYPE string.

DO 15 TIMES.

  "Terminating the loop pass and continuing with the next loop pass if the condition is

  "true (if the number is odd)

  CHECK sy-index MOD 2 = 0.

  str_d = |{ str_d }{ COND #( WHEN str_d IS NOT INITIAL THEN `, ` ) }{ sy-index }|.

ENDDO.

"str_d: 2, 4, 6, 8, 10, 12, 14


Serkan AKKAVAK

Computer Engineer BSc

SAP Department Manager

Contact : serkurumsal@yandex.com