Code: Alles auswählen.
types: t_itab type table of i with non-UNIQUE key TABLE_LINE.
data: tab_ref type ref to t_itab,
i_ref type ref to i.
do 10 times.
if tab_ref is INITIAL.
create data tab_ref.
endif.
append sy-index to tab_ref->*.
enddo.
if tab_ref is not INITIAL.
if i_ref is INITIAL.
create data i_ref.
endif.
loop at tab_ref->* into i_ref->*.
write: / I_ref->*.
endloop.
endif.
clear: tab_ref, i_ref.