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

CL_SALV_TREE Refresh

Former Member
0 Likes
967

Hello!

I have a development that generates a SALV Tree Alv. I would like to be able to refresh the ALV and preserve the collaps and extend state of the nodes!

I tried to find a method that handles this for me, but with no success!

Then I tried to find a list of the expanded item or the information of the state of the node in the tree! The idea was to loop the new information of the database and add the old state to the new nodes!

Is it possible to reload the CL_SALV_TREE and preserve the collaps and extend state of the nodes?

Best Regards

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
566

As I can see, cl_salv_tree forgets what is expanded or collapsed, everything is handled at frontend (same "issue" as cl_gui_column_tree, the actual GUI control that cl_salv_tree uses). I guess you should handle the expand/collapse events yourself so that to be able to know which nodes are expanded/collapsed.

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
567

As I can see, cl_salv_tree forgets what is expanded or collapsed, everything is handled at frontend (same "issue" as cl_gui_column_tree, the actual GUI control that cl_salv_tree uses). I guess you should handle the expand/collapse events yourself so that to be able to know which nodes are expanded/collapsed.