Assign dynamic

Question:
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>. (???)
Answer:
Data : lv_data TYPE REF TO DATA.
Create data lv_data like t_tab.
assign lv_data->* to <field_symbol>.
Answer:
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>.
Answer:
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.
Answer:
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!

More Articles:

LSMW RAALTD01?
Billing Document Invoice?
Log on SAP out of office?
Designing an invoice!! help ! urgent!!?
BAPI_SALESORDER_CHANGE ---How to change VBAP-KWMENG ?
Print data before selection screen to put into select optio?