11-08-2012 5:44 AM
Hi all,
My requirement is to have a tree structured report.
Mock layout.
L1
|_ L2
|_ L3
|_ L3A
|_ L3B
|_ L3C
I also want to display the column headings of each level.
The structure of the level vary from each other. I went thriugh the BCALV_TREE* programs
but i could not understand how to achieve this heirarchy as I am not familiar with OOPS concept.
I was able to achieve the requirement with FM 'RS_TREE_CONSTRUCT' but the problem is only
upto 10 columns for a particular level could be achieved.
How can I achieve this? Please help.
11-08-2012 6:03 AM
i could not understand how to achieve this hierarchy as I am not familiar with OOPS concept.
Sorry, but this is no excuse for not familiarizing yourself with OOP
11-08-2012 6:11 AM
11-19-2012 7:28 PM
Hi Pranai,
Since RS_TREE_CONSTRUCT has a 10-column limit as you mention, attempting the OO solution may be your best (only?) option.
Looking at the BCALV_TREE_01 and BCALV_TREE_02 programs, they do have a lot of good inline documentation to explain what each step does. There is also program SALV_DEMO_TREE_SIMPLE which is even a bit more simple maybe. A quick internet search didn't turn up any tutorials or demos that were better than what the SAP system already provides in these demo programs.
Cheers,
Amy
11-20-2012 11:23 AM
Thanks Amy,
I would like to know whether it is possible to display column headings of each level/node in a tree using OO.
11-20-2012 12:54 PM
Hi Pranai,
Do you mean different column headings for each level, e.g., LEVEL 1 has four columns A, B, C and D but LEVEL 2 has three columns X, Y and Z? This isn't possible, however, you can build a structure that has all the columns used by all levels (A, B, C, D, X, Y, Z) and simply populate the columns needed at each level.
Cheers,
Amy