Skip to Content

Hierarchical list with multiple levels - separate attributes on all level

Hello Everyone,

I would like to create a hierarchical ALV list, like the BCALV_TREE_01 program. But my problem with this program is that you can display attributes of the record (as plane type, capacity, total costs,etc.) on the lowest level only. So this is just a nice grouping possibity. My aim would be to have attributes even on the first level of hierarchy, which could be different from the attributes of the lower lever hierarchies.

This is how the demo looks like:

As you can see, I don't have any values in the row of "2016 March", or in the row of "JL" (or even if I have values there, those are just sums of the lower level values). For example in my report the "2016 March" should have a price 100, the DL row should have price 200, and JL should have price 10000. I would need to print completely different attributes on each level. Is that possible somehow?

Many thanks in advance.


sdn.jpg (43.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 12, 2016 at 03:49 PM

    If you take a closer look on the program you can see that structure ls_slfight passed for parameter is_outtab_line is empty everywhere except at leaf level of the structure.

    E.g. If you assign values (via debug) to the fields of ls_sflight in subroutine add_month the values will be displayed on the screen.



    Add a comment
    10|10000 characters needed characters exceeded

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.