Skip to Content
0
Former Member
Sep 09, 2009 at 05:11 PM

How to assign value from an internal table to a dynamic internal table ?

736 Views

Hi all,

I have created a dynamic internal table, because I wanted to created my structure TYPE at runtime :

assign new_table->* to <dyn_table>.

* Create dynamic work area and assign to FS
  create data new_line like line of <dyn_table>.
  assign new_line->* to <dyn_wa>.

So now I have an dynamic internal table : <dyn_table>

and a dynamic workare or linetype : <dyn_wa>

This dynamic table has the same fields as my itab_normal, which has components :

itab_normal-week
itab_normal-begindate
itab_normal_enddate

How can I assign these values to my dynamic table <dyn_table> ?

This does not work :

<dyn_table>-week = itab_normal-week
<dyn_table>-begindate = itab_normal-begindate
<dyn_table>-enddate = itab_normal-enddate