I am trying to refresh an alv tree. I want certain nodes hidden/removed based on what the user selects. So far I have to free my tree and start over and rebuild the nodes. I was wondering if there is a way to just refresh the nodes to display the desired nodes.
I have tried:
call method tree->delete_all_nodes.
then call my process to add the desired nodes.
CALL METHOD tree->frontend_update.
I found the problem when expanding all nodes that a node key is unable to expand. I found that the attribute M_NODE_KEY_COUNT of CL_ALV_TREE_BASE wasn't reset when all the nodes where deleted so it keeps accumulating to the total nodes created when I originally created the tree.
Anybody know how to do this without freeing the tree and starting over.