Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem in CL_GUI_ALV_TREE implementation

Hi all,

I am creating a functionality using CL_GUI_ALV_TREE. In my screen PAI, i have the foll. code

IF tree1 IS INITIAL.

PERFORM init_tree1.

ENDIF.

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?

Tags:
Not what you were looking for? View more on this topic or Ask a question