Skip to Content
0
Jan 02, 2023 at 12:31 PM

Dynamic Field Symbol assignment for the FOR loop

118 Views

Hello there ,

I'm trying to build the internal table from the dynamic table using FOR loop or want to know whether its possible or not

Data in the dynamic table

<gt_data>

image.png

Since I became an avid fan of the constructor expressions Value, Cond, etc I tried building this with the new syntax.

I want to assign the above data into new internal table which has fixed structure define using FOR syntax .

GT_TABLE should contain following data from the above dynamic internal table.

image.png

P.S -

I'm aware I can use the syntax as

LOOP

ASSIGN 'COMPONENT' OF STRUCTURE .....

But I would like to know whether the same can be achieved with FOR loop or not.

Thanks

Shashank

Attachments

image.png (9.7 kB)
image.png (7.9 kB)