Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

pass data from normal internal table to dynamic internal table

Former Member
0 Likes
534

Hi,

my Internal table itab contains some data.

i created another dynamic internaltable itab1.

how can i pass itab data to itab1(dynamic internal table).

Regards,

Suresh

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
496

Or to access specific components, read the help of ASSIGN COMPONENT blah OF STRUCTURE wurr TO <fs>.

3 REPLIES 3
Read only

Former Member
0 Likes
496

Hi,

I assume you are using something like

* Create a new Table
  CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
      it_fieldcatalog = IT_LVC_CAT
    IMPORTING
      ep_table        = new_table.

* Create a new Line with the same structure of the table.
  ASSIGN new_table->* TO <l_table>.
  CREATE DATA new_line LIKE LINE OF <l_table>.
  ASSIGN new_line->* TO <l_line>.

If so loop at your internal table and move-corresponding to the field symbol <l_line> and then append it to <l_table>.

Regards,

Darren

Read only

matt
Active Contributor
0 Likes
497

Or to access specific components, read the help of ASSIGN COMPONENT blah OF STRUCTURE wurr TO <fs>.

Read only

Former Member
0 Likes
496

Hi,

Thanks for replies.

Regards,

Suresh.