‎2015 Jul 08 10:20 AM
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
‎2015 Jul 08 10:29 AM
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.
‎2015 Jul 08 10:39 AM
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
‎2015 Jul 08 11:04 AM
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.