Application Development and Automation 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: 
Read only

Suppress empty node -- CL_GUI_ALV_TREE_SIMPLE

Former Member
0 Likes
955

Hello Experts,

I am using CL_GUI_ALV_TREE_SIMPLE to display a tree report and I am using SORT property to create the tree.

The maximum number of level in the hierarchy is dynamic, assume 8. So i am filling an internal table with hierarchy columns (8) and other fixed columns.

Now the problem is all the rows in that internal table is not having value till the 8th level column, so that time its creating empty node for that column where no value is there.

I need to remove all the empty nodes, is it possible?

Kindly help

3 REPLIES 3
Read only

ipravir
Active Contributor
0 Likes
874

HI Farid,

As per your screens, when you are creating NODE, check the text is available or not.

Based on that, you can create node or skip the steps.

Because, blank nodes are not containing any of the description (document no).

Regards,

Praveer.

Read only

Former Member
0 Likes
874

Hi Praveen,

I am not creating node manually, i am creating SORT table for the columns i need to pass in tree and passing the same to TREE1->SET_TABLE_FOR_FIRST_DISPLAY

Read only

ipravir
Active Contributor
0 Likes
874

Hi Farid,

I am not sure, but you can check with ENSURE_NODES_VISIBLE method of the same class.

Because, i not found any of the hide option in SET_TABLE_FOR_FIRST_DISPLAY method.

Regard,

Praveer.