Code: Alles auswählen.
loop at it_kond into wa_kond.
wa_sp-kschl =wa_kond-kschl. wa_sp-kbetr =wa_kond-kbetr.
* ... weitere Schritte
endloop.Code: Alles auswählen.
wa_sp-kschl2 = wa_kond-kschl.
wa_sp-kbetr2 =wa_kond-kbetr.Code: Alles auswählen.
field-symbols <f>.
data:
begin of wa_sp,
kschl[b]01[/b] type kschl,
kschl[b]02[/b] 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.
Code: Alles auswählen.
DO... VARYING f FROM f1 NEXT f2Code: 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.