Code: Alles auswählen.
FIELD-SYMBOLS: <ft_tab> TYPE ANY TABLE,
<ft_out> TYPE STANDARD TABLE,
<fs_line> TYPE any.
LOOP AT <ft_tab> ASSIGNING <fs_line>.
" Alles was in <fs_line> steht, möchte ich in eine interne Tabelle speichern(Auch ein "Feldsymbol)
"mit APPEND <fs_line> TO <ft_out> funktioniert es nicht
ENDLOOP.
Code: Alles auswählen.
APPEND INITIAL LINE TO <ft_out> ASSIGNING FIELD-SYMBOL(<fs_out>).
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE <fs_line> TO FIELD-SYMBOL(<fs_comp>).
IF <fs_comp> IS ASSIGNED.
ASSIGN COMPONENT sy-index OF STRUCTURE <fs_out> TO FIELD-SYMBOL(<fs_comp_out>).
IF <fs_comp_out> IS ASSIGNED.
<fs_comp_out> = <fs_comp>.
ENDIF.
UNASSIGN <fs_comp>.
ELSE.
EXIT.
ENDIF.
ENDDO.
Code: Alles auswählen.
field-symbols: <anyT> type any table,
<stdT> type standard table.
select * from T000 into table @data(clients).
assign clients to <anyT>. " standard table > any table
assign <anyT> to <stdT>. " any table > standard table
cl_demo_output=>display( <stdT> ).