Assign dynamic
How can I assign the body of an internal table to a field symbol ?
Not Dynamic: ASSIGN T_TAB[] to <fs>.
Dynamic: ASSIGN (fieldname) .... to <fs>. (???)
Data : lv_data TYPE REF TO DATA.
Create data lv_data like t_tab.
assign lv_data->* to <field_symbol>.
Thanks, but this doesn't work, because t_tab is filled at runtime.
Create data lv_data like (tabname). -> Syntax Error
I need something like:
ASSIGN (tabname)[] to <fs>.
data: itab type ref to data,
wa_itab type ref to data.
field-symbols: <fs_data_table> type table,
<fs_header> type any.
create data itab type table of (some type or srtucture).
assign itab->* to <fs_data_table>.
create data wa_itab type (same structure or type as of table)
assign wa_itab->* to <fs_header>.
now u have created a dynamiv internal table and also a work area u can loop at the field symbol table into the field symbol header.
Thanks, but this doesn't work, because t_tab is filled at runtime.
Create data lv_data like (tabname). -> Syntax Error
I need something like:
ASSIGN (tabname)[] to <fs>.
Press F1 on ASSIGN or serch the ******* forum!