Hello all,
I am trying to create an internal table from a field symbol( generated dynamically).
I want to assign this field symbol to a table type of any as I have to use this table in an ALV.
Here is what I am trying.
lo_str_refer = cl_abap_structdescr=>get(
p_components = lt_table_comps "all the fields for which Structure needs to be generated.
).
lo_tab_refer = cl_abap_tabledescr=>get(
p_line_type = lo_str_refer
).
CREATE DATA : gv_itab TYPE HANDLE lo_tab_refer,
gv_itab_line TYPE HANDLE lo_str_refer .
ASSIGN : gv_itab->* TO <fs_table>.
ASSIGN gv_itab_line->* TO <fs_struct>.
DATA : gt_fields_table TYPE
Now, I have <fs_table> as the field symbol internal table with all the fields, I want to assign it to an internal table.
Could anyone please provide any solution. ??
Regards,
Nandan