Code: Alles auswählen.
LOOP AT itab.
create data dyn_tab type standard table of
(itab-tabn)."error by 4.6 / only 6.2
assign dyn_tab->* to <toa00>.
SELECT * FROM (itab-TABN) INTO table <toa00>.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filetype = 'ASC'
filename = filename
TABLES
data_tab = <toa00>.
endloop.
Code: Alles auswählen.
DATA it_fieldcatalog TYPE lvc_t_fcat.
DATA ep_table TYPE REF TO data.
FIELD-SYMBOLS: <my_table> TYPE ANY TABLE.
Hier kommt die Routine zum Füllen IT_FIELDCATALOG
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fieldcatalog
IMPORTING
ep_table = ep_table
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2.
ASSIGN ep_table->* TO <my_table>.