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

Wrong node index after delete_subtree in cl_gui_alv_tree class

Former Member
0 Likes
698

I am having a requirement to delete the ALV tree node.

Using delete_subtree method, I am able to delete the node in ALV tree but after deletion the tree is returning the wrong index whenever I select any node.

delete_subtree method successfully deletes the entry in the node table (the internal table we passed in the method set_table_for_first_display). What would be the problem?

Thanks a lot in advance!!!!

I am having a requirement to delete the ALV tree node.

Using delete_subtree method, I am able to delete the node in ALV tree but after deletion the tree is returning the wrong index whenever I select any node.

delete_subtree method successfully deletes the entry in the node table (the internal table we passed in the method set_table_for_first_display). What would be the problem?

Thanks a lot in advance!!!!

2 REPLIES 2
Read only

Former Member
0 Likes
579

solved myself... All tree manipulations will return node_key.. we should not check with the node table (table that we are passing in set_table_first_display).. It is better to have a separate table maintaining node_key...

Read only

0 Likes
579

Hello Benu, I have the equal problem, can you explain the solutions?.

Thank you.