Skip to Content

WebDynpro - Hierarchical ALV with dynamic levels

Hi experts,

I'm trying to achieve something that I'm not sure that will be possible with ALV hierarchy for WD.

Lets say that I have a table with 3 columns that I want to display it in an ALV hierarchy.

The catch is that, if the last column is empty I want the 2nd column to be the leaf column. The issue that I have is that, even if the last column is empty I still get the possibility to expand my 2nd level with nothing inside. It looks weird and makes no sense (please see the attached image for the result).

I'm looking for something like set_read_only_fieldname where based on a condition to be able to dynamically specify which column should be the leaf column.

Also, I don't have any other columns to be displayed so no need to have more than 1 column (the hierarchy column).

If you think that this is no possible to achieve with ALV tree please let me know if you can think at any other option to be able to do this.

Display example:

Please see attached image (the icon and checkbox in front can be omitted).

-> A

-> A1

* A11

* A12

* A13

-> A2

* A21

* A3

* A4

-> A5

* A51

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2014 at 08:20 AM

    can you not set "is_leaf" Attribute for those rows without any children?

    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.