Skip to Content
1
Former Member
Jul 26, 2007 at 09:36 AM

Copying data from structure to internal table

1164 Views

Hi Everybody,

I have a structure stab_sunit and an internal table itab_sunit.The structure has multiple records. Is there a way to copy the structure contents to the internal table?

Following is the code :

data : begin of stab_sunit occurs 0,

salenit type zrit_salesunit-zsunit,

prodh type zrit_salesunit-zprodh.

data : end of stab_sunit.

types : begin of t_tab_sunit,

salesunit type zrit_salesunit-zsunit,

hierarchy type zrit_salesunit-zprodh,

data : end of t_tab_sunit.

data : itab_sunit type table of t_tab_sunit.

Regards,

Varadharajan.S