2013 Oct 23 3:47 PM
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
2013 Oct 23 5:25 PM
2013 Oct 23 3:54 PM
been asked many times... just search...
2013 Oct 23 4:19 PM
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
2013 Oct 23 4:41 PM
Hi,
I am not sure that I understand your requirement.
But have look here:
http://scn.sap.com/community/abap/blog/2013/10/09/deeper-dive-into-deep-structure
http://scn.sap.com/community/abap/blog/2013/10/15/deeper-dive-into-deep-structure--part-2
http://scn.sap.com/community/abap/blog/2013/10/22/deeper-dive-into-deep-structure--part-3
Regards.
2013 Oct 23 5:12 PM
Can you please explain what exactly is the requirement that you need such a structure?
2013 Oct 23 5:25 PM