Skip to Content
0
Former Member
Oct 23, 2013 at 02:47 PM

Internal table with Deep Structure

3595 Views

Hi All,

IS it possible to create an internal table with dynamic deep structure

Ex : I have an internal Table with 2 fields

ITAB-FLD1 ITAB-FLD2

MARA ITAB_MARA "Record1

MARC ITAB_MARC "Record2

Where ITAB_MARA and ITAB_MARC are internal tables themselves

So during Runtime i know the Values of ITAB-FLD1 and based on that i can create ITAB_MARA, ITAB_MARC and assign it to ITAB-FLD2 ...

But my problem how would i declare ITAB Initially.

data : begin of itab,

fld1 like DD02L-TABNAME,

fld2 " How would i declare this- its a dynamic internal table

end of itab.

Thanks in advance