Application Development 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: 

more than 10 columns in ALV TREE ?

pranai_pradhan
Explorer
0 Kudos

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.

5 REPLIES 5

SuhaSaha
Advisor
Advisor
0 Kudos

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

0 Kudos

Help is most welcomed but not critics..

amy_king
Active Contributor
0 Kudos

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

0 Kudos

Thanks Amy,

I would like to know whether it is possible to display column headings of each level/node in a tree using OO.

amy_king
Active Contributor
0 Kudos

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