Code: Alles auswählen.
TYPES: BEGIN OF satz,
wert1 TYPE c,
wert2 TYPE c,
wert3 TYPE c,
wert4 TYPE c,
wert5 TYPE c,
wert6 TYPE c,
END OF satz.
Code: Alles auswählen.
WHILE lv_i <= 6.
gv_sum = gv_sum + gv_wa-wert+lv_i.
ENDWHILE.
Code: Alles auswählen.
field-symbols: <fs> type any.
WHILE lv_i <= 6.
assign component lv_i of structure gv_wa to <fs>.
check sy-subrc = 0.
* gv_sum = gv_sum + gv_wa-wert+lv_i.
gv_sum = gv_sum + <fs>.
ENDWHILE.
Code: Alles auswählen.
data:
begin of a,
a1 type c value 'a',
a2 type c value 'b',
a3 type c value 'c',
end of a,
b type c.
do 3 times
varying b
from a-a1
next a-a2.
write:/ b.
enddo.