Skip to Content
0
Former Member
Apr 13, 2006 at 03:20 AM

To populate data in a dynamic internal table

169 Views

Hi,

I have an internal table <FS_1> which I have created dynamically. Now i need to populate the columns (7th column onwards) in the internal table with my data in GT_REQMT which is an internal table.

Data: L_IDX type I.

L_IDX = 6.

Loop at <FS_1> assigning <FS_2>.

If sy-tabix = 1.

Loop at GT_REQMT.

Add 1 to L_IDX.

*****I need to populate GT_REQMT-DATA to column 7 then 8 etc depending on the number of loops.

Modify <FS_1> from <FS_2>.

Endloop.

Else.

**do other things here**

Endif.

Endloop.

I have search through the forums and weblogs but the solutions are catered to populating the internal tables from SAP database using SQL statements.

I couldn't find anything on populating own data in dynamic table by looping it. Please help. THANKS!!

Cheers,

Chelsea