04-27-2006 5:51 AM
Hi,
How can I refresh the Tree alv grid to display the modified data in the internal table. I have gone through cl_gui_alv_tree=>refresh_table_display method but as the refresh method is private in this class interface i am not able to use it. Is there any other method to refresh my tree grid.
Thanks in Advance.
Laxmi
04-27-2006 5:58 AM
hi Laxmi,
WELCOME TO SDN
Go through this program . Hope it might be helpful to you...
http://www.sap-img.com/abap/a-sample-tree-programming.htm
Regards,
Santosh
04-27-2006 6:01 AM
Laxmi,
Try using the FRONTEND_UPDATE method.
This method is implemented in CL_ALV_TREE_BASE which is the super class / parent of CL_GUI_ALV_TREE.
Regards,
Ravi
Note : Please close the thread, if the issue is resolved.
Message was edited by: Ravikumar Allampallam
04-27-2006 6:01 AM
Hi,
In SE38 give BCALV*,
press F4,
you will get a list of demo programs for ALV grid and ALV Tree.
You can check the demo programs.
You can also try the flush method with will remove everything and then use the create.
call method cl_gui_cfw=>flush.
Regards,
Sameena
Message was edited by: sameena attarwala
04-27-2006 6:07 AM
Hi !
If you want so send the complete table again you can
simply use
CALL METHOD ref_alv_grid->set_table_for_first_display
To bouid up a new, and refreshed ALV-Grid display.
But be shure not to create the ref_alv_grif obcent again !
If you want so save the line the user selected you can use the method:
CALL METHOD ref_alv_grid->get_selected_rows
to save it and
CALL METHOD ref_alv_grid->set_selected_rows
to set it again auf displaying the "new" ALV-Grid.
Regards
Rainer
Some points would be fine if that helped you a bit.
04-27-2006 6:10 AM
Hi Laxmi,
Go through BCALV_GRID_03 program. It uses the method mentioned by you. May be of some help.
Regards,
Aniket
Please award points to helpful posts.
04-27-2006 6:42 AM
Hi,
you need to call the method <b>frontend_update</b> to update your tree control, it will behave like a refresh.
call method g_alv_tree->frontend_update.
Regards
vijay
04-18-2007 9:15 AM
after making changes to tree oject
jsut call "<b>frontend_update</b>" method
it will update the currnet screen with updated tree object.
if problem got resolved close the thread and reward the points.