Skip to Content

more than 10 columns in ALV TREE ?

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 08, 2012 at 06: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 😭

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 19, 2012 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.