Code: Alles auswählen.
Concatenate ls_output-minus sy-index INTO fieldname
Code: Alles auswählen.
types: begin of lt_test,
nummer1 type n,
nummer2 type n,
nummer3 type n,
end of lt_test.
data: fieldname type c length 20,
ls_test type lt_test,
count type n.
field-symbols <fs> type any.
count = 0.
do 3 times.
count = count + 1.
concatenate 'ls_test-nummer' count INTO fieldname.
assign (fieldname) to <fs>.
<fs> = sy-index * 2.
clear fieldname.
enddo.
write: ls_test-nummer1, ls_test-nummer2, ls_test-nummer3.