ALV Grid and 3-dimensional tables

Question:
Hi,
I have a defined an internal table to hold a 3 dimensional array (account balance by company code by account number). I would like to display this data in an ALV grid.
I have previously been able to generate a field catalog for 2 dimensional internal tables, but have never tackled a 3 dimensionl table before. Can anybody give me any tips? Or sample code for generating the field catalog?
Any help would be greatly appreciated.
Cheers,
Mick
Answer:
Mick,
couldn't you just generate an ordinary '2 dimensional' table somehow??
Answer:
Not really. I don't know how many accounts or how many companies I have to deal with until runtime, so declaring the table would be tricky.
Answer:
Quite possibly I am not understanding your requirement/scenario.
But, I believe a 3D table can be easily converted into a 2D table by just adding another column. (If sorted properly, ALV takes care of hiding redundant data in that column.)
I have used 3D tables in the past, but only for convenience. Not because 2D table couldn't do the job.
Please clarify your scenario as I am very interested in knowing the need for a 3D table. You might even get better suggestions from experts on this forum.
_________________
Sudhi Karkada

More Articles:

new transaction code with transaction variant?
problem using RAALTD01 for AS91?
Buttons to select rows in ALV grid?
BDC URGENT?
Structure in internal table?
How to convert week number into the ddmmyyyy date format?