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: 

ALV Tree will not refresh

yes_sapteam
Participant
0 Kudos

Hi.

I searched this forum and others but can't find a straight answer for this issue.

I have a Tree that is attached to an ALV (screen is splitted with Docking-container, Tree on Left, ALV on Right, double-click on Tree node will display data in ALV).

The user is able to change the view-mode between few business-related views by clicking buttons at the toolbar.

When a button is hit I want to refresh my Tree, so I use the "FREE" methods to release the Tree object and the Docking-container, and also clear the global table of the Tree (the table that has all the nodes).

After all this I re-build the objects and fill the Tree table and... nothing

Well, the tree is displayed, and the nodes names are displayed, but no data in the Tree columns.

Any ideas?

Regards.

Ayal Telem.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Use the refresh_table_display method of the ALV grid to refresh the table entries.

Regards,

Subramanian

Former Member
0 Kudos

I feel this link give you straight forward answer.

http://www.sapdev.co.uk/reporting/alv/alvtree/alvtree_refresh.htm

thanks,

Padma

I fixed the issue.

At the end what I initially did was sufficient:

Using the "FREE" methods of the relevant Classes to free the Docking-container & the Tree objects

and re-building everything is working.

The reason I had problem with it is due to specific program conditions, and has nothing to do with Trees.

Enjoy you all.

Ayal.