Application Development 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: 

Tree ALV

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

former_member188685
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.