ABAP dynamically assign field content
data: rec type string.
s = lv_index.
"This is how you can populate dynamically using <FS>
loop at t_temp_rec .
loop at t_rec_tst into wa_rec_tst where matnr
=
t_temp_rec-matnr and werks = t_temp_rec-werks.
s = lv_index.
concatenate 'wa_rec-rec' s into recpt.
assign (recpt) to <fs1>.
<fs1> = wa_rec_tst-real_qty.
lv_index = lv_index + 1.
endloop.
wa_rec-matnr = wa_rec_tst-matnr.
wa_rec-werks = wa_rec_tst-werks.
clear: t_temp_rec , wa_rec_tst.
append wa_rec to t_rec.
clear: wa_rec.
lv_index = 1.
endloop.
Serkan AKKAVAK
Computer Engineer
serkurumsal@yandex.com
Social Plugin