‎2007 Apr 17 3:12 AM
Hi,
I am developing a module pool that have ALV tree using class cl_gui_alv_tree_simple.
I want to know how add a Node in the Tree , after displaying the tree in the screen.
ie user need to add a node in the screen.
Thanks your for help.
aRs.
‎2007 Apr 18 9:10 AM
Hi ,
Update your internal table (here GT_SPFLI)at runtime with added node
then call this method
CALL METHOD TREE1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IT_LIST_COMMENTARY = GT_HEADER[]
I_BACKGROUND_ID = 'ALV_BACKGROUND'
IS_LAYOUT = GS_LAYOUT_TREE
CHANGING
IT_SORT = GT_SORT[]
IT_OUTTAB = GT_SPFLI[]
IT_FIELDCATALOG = GT_FIELDCAT_LVC[].
and aso call
FRONTEND_UPDATE of the same class CL_GUI_ALV_TREE_SIMPLE.
i think this should work.