Problem in CL_GUI_ALV_TREE implementation
I am creating a functionality using CL_GUI_ALV_TREE. In my screen PAI, i have the foll. code
IF tree1 IS INITIAL.
CALL METHOD cl_gui_cfw=>flush.
This code gets triggered on click of a button in a screen. This button can be clicked more than once without re-loading the program. When doing so, as the TREE1 field is holding a value, when the button is clicked the second time, i get an runtime error. Is it possible to detsroy this tree, so that that PAI can get executed again?