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.
Showing results for 
Search instead for 
Did you mean: 

how to get only expanded node after open & close in CL_GUI_ALV_TREE?

Former Member
0 Kudos


I have a tree structure using CL_GUI_ALV_TREE.

I would like to capture only the expanded nodes AFTER open and close operation.

If the user opens all the nodes and then closes them, I get all the nodes when using GET_EXPANDED_NODES.

I want to get only the expanded nodes that the user currently sees on the screen (so in open and close you will not get it as open).

whatever I tried doesn't work.

Do you have any idea how to do it?




Active Contributor
0 Kudos

this methods calls method of attribute MR_COLUMN_TREE without setting the parameter NO_HIDDEN_NODES to 'X'

that's why you get every node that is "open" even if not "visible"

as this attribute MR_COLUMN_TREE is protected, you cannot access it...

you should consider using an object of class CL_GUI_COLUMN_TREE directly in place of CL_GUI_ALV_TREE so that you can call the method with this parameter set...

you will have far more to do by hand but you will get more flexibility...