‎2009 Jul 14 4:15 AM
hi gurus,
In my program I use ALV tree to display the data like :
Root
Child 1
Child 1 1
Chiild 1 2
Child 2
Child 2 1
Child 2 2
....................................
When I refresh data ( internal table) , If there's no new node ( for example : add child 3) , It 's OK but if there's new record in the internal table ,,,when refresh there will be a dump... in my opinion, The new node must have a new node key? But I do not find a solution...
Could you please help me?
Thanks in advance.
‎2009 Jul 14 6:50 AM
Hi,
If you are using CL_GUI_ALV_TREE.
CALL METHOD TREE1->EXPAND_NODE
EXPORTING
I_NODE_KEY = ALL_KEY
I_EXPAND_SUBTREE = 'X'.
'ALL_KEY' is the root node of the tree.therfore will refresh the whole tree, with subtree thus it may solve your problem.
Try the code .
thanks and regards
Aditi Wason
‎2009 Jul 14 6:07 AM
Hi TinhLangTham ,
you cumulute call of your dynpro.
DYNP1 --> Action --> Call again DYNP1 --> action --> Call again DYNP1
and when you leave or anything else, you will need to close 3 times DYNP1.
have a look where you call and how, the screen.
or you can choose the other way
refer to to CL_GUI_ALV_TREE and not CL_GUI_ALV_GRID.
In CL_GUI_ALV_TREE REFRESH_TABLE_DISPLAY is a private method.
try using method FRONTEND_UPDATE of CL_GUI_ALV_TREE .
Regards
Saurabh goel
‎2009 Jul 14 6:50 AM
Hi,
If you are using CL_GUI_ALV_TREE.
CALL METHOD TREE1->EXPAND_NODE
EXPORTING
I_NODE_KEY = ALL_KEY
I_EXPAND_SUBTREE = 'X'.
'ALL_KEY' is the root node of the tree.therfore will refresh the whole tree, with subtree thus it may solve your problem.
Try the code .
thanks and regards
Aditi Wason