Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Internal table with Deep Structure

Former Member
0 Likes
6,358

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

1 ACCEPTED SOLUTION
Read only

sascha_reissig
Participant
0 Likes
1,387

Hi,

do you mean something like that?

regards, Sascha

5 REPLIES 5
Read only

former_member201275
Active Contributor
0 Likes
1,387
Read only

0 Likes
1,387

Hi Glen,

I have gone through the links before i posted ...

If you read carefully .. I trying to get an internal table with dynamic deep strcuture

Thanks

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,387

Can you please explain what exactly is the requirement that you need such a structure?

Read only

sascha_reissig
Participant
0 Likes
1,388

Hi,

do you mean something like that?

regards, Sascha