12-03-2009 7:37 AM
Hi.
I searched this forum and others but can't find a straight answer for this issue.
I have a Tree that is attached to an ALV (screen is splitted with Docking-container, Tree on Left, ALV on Right, double-click on Tree node will display data in ALV).
The user is able to change the view-mode between few business-related views by clicking buttons at the toolbar.
When a button is hit I want to refresh my Tree, so I use the "FREE" methods to release the Tree object and the Docking-container, and also clear the global table of the Tree (the table that has all the nodes).
After all this I re-build the objects and fill the Tree table and... nothing
Well, the tree is displayed, and the nodes names are displayed, but no data in the Tree columns.
Any ideas?
Regards.
Ayal Telem.
12-03-2009 8:00 AM
Hi,
Use the refresh_table_display method of the ALV grid to refresh the table entries.
Regards,
Subramanian
12-03-2009 8:02 AM
I feel this link give you straight forward answer.
http://www.sapdev.co.uk/reporting/alv/alvtree/alvtree_refresh.htm
thanks,
Padma
12-06-2009 1:37 PM
I fixed the issue.
At the end what I initially did was sufficient:
Using the "FREE" methods of the relevant Classes to free the Docking-container & the Tree objects
and re-building everything is working.
The reason I had problem with it is due to specific program conditions, and has nothing to do with Trees.
Enjoy you all.
Ayal.