I have the fieldcatalog and from this I have creted a dynamic internal table like this :
* Create Dynamic Table CALL METHOD cl_alv_table_create=>create_dynamic_table EXPORTING it_fieldcatalog = lt_fcat IMPORTING ep_table = dy_table. ASSIGN dy_table->* TO <dyn_table>. * Create Dynamic Work Area and Assign to FS CREATE DATA dy_line LIKE LINE OF <dyn_table>. ASSIGN dy_line->* TO <dyn_wa>.
I have my data in one of the internal table (ITAB).
Now I want to populate the dynamic internal table <fs_tab> with that data in the other internal table (itab) .
For this I guess I need to use ASSIGN COMPONENT Statement.
But I'm not able to decide upon how to do that.
For eg. :-
1. Say my internal table (ITAB) has 5 fields f1,f2,f3,f4,f5.
2. My Dynamic INternal table <fs_tab> has 3 fields f1,f3,f5 (from the above code).
3. Now I want to populate this dynamic table with the data from the Internal table ITAB for those particular 3 fields (f1,f3,f5).
How to pass the data to the dyntab ?
Request you all to clarify.
PS: PLease don't send me any links as I already read them but cudn't get thru it!