‎2009 Jan 28 2:18 AM
Hi Experts,
DATA: BEGIN OF it_tables OCCURS 0,
file(30),
tabname TYPE tabname,
END OF it_tables.
DATA: ldo_data TYPE REF TO data,
ld_tabnam TYPE tabname.
FIELD-SYMBOLS: <lt_itab> TYPE table.
ld_tabnam = it_tables-tabname.
CREATE DATA ldo_data TYPE STANDARD TABLE OF (ld_tabnam).
ASSIGN ldo_data->* TO <lt_itab>.
ld_tabnam = it_tables-file.
In the above code it_tables-tabname contains the structure name by which <lt_itab> structure is declared. it_tables-file contains the internal table name.
Now the next step is, i want to populate data from the internal table using ld_tabnam into <lt_itab>.
Is this possible?
Thanks & Ragards
Akshay
‎2009 Jan 28 2:27 AM
‎2009 Jan 28 2:48 AM
Hi,
my problem is that my internal table name is there in the variable. And i want to populate the table in dynamically created table using the variable as the internal table name is changing.
Regards
Akshay
‎2009 Jan 28 4:15 AM
Hi Akshay,
check my wiki in https://wiki.sdn.sap.com/wiki/x/_oCtAg .
Hope it supports your requirment.
Regards,
Anirban
‎2009 Jan 28 4:29 AM
Hi Anirban,
In your wiki you have populated the dynamic internal table by using p_tab in which you are entering the standard SAP table name. But in my case i want to populate dynamic table by using the internal table whose name is in the field ld_tabnam.
Regards
Akshay
‎2009 Feb 06 3:23 AM
Hi Experts,
Can any one please help me on the issue above?
Thanks & Regards
Akshay