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

Refresh / rebuild ALV tree and reset node key

Former Member
0 Kudos

Hello,

I have made a program which uses the OO CL_GUI_ALV_TREE.

I build the tree and the nodes for the lines which are displayed on the right site.

When I click one of the buttons I'm able to open the planning screen with function ' GRAPH_GANTT'. When I close this function a lot of changes could be made or even new items could be inserted for the planning.

For showing these changes I remove the tree with the method: CALL METHOD G_INSTR_PLAN->DELETE_ALL_NODES

This deletes all tree notes.

If I rebuild the tree and add the complete lines the node key is not refreshed. So the key numbers get increased from the last key number from the first build.

So how could reset the key node numbers?

Kind regards,

Richard Meijn

1 REPLY 1

Former Member
0 Kudos

Hi ,

Use method Delete SUB_TREE that deletes based on node keys .