Code: Alles auswählen.
field-symbols <f>.
data:
begin of wa_sp,
kschl01 type kschl,
kschl02 type kschl,
...
end of wa_sp.
data counter(2) type n.
data name(50) type c.
clear counter.
loop...
add 1 to counter.
concatenate ’WA_SP-KSCHL’ counter into name.
assign (name) to <f>.
<f> = wa_loop-kschl.
...
endloop.