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

ALV Grid Node Add at runtime

former_member194669
Active Contributor
0 Likes
308

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.

1 REPLY 1
Read only

Former Member
0 Likes
274

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.