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 Tree refresh - performance problem

Former Member
0 Likes
994

Hi experts,

I've got a performance problem with a custom transaction my team developped. The transaction shows an ALV tree based on class CL_GUI_ALV_TREE. We've got a contextual menu with a function which allows to modify some information at the node level. After the modification, we need to refresh the display to make the new data visible. The problem is that the tree display the whole OM structure, which is approximately 9000 organizational units.

The current code roughly does the following:

- loops on all nodes and executes method delete_subtree and then does a cl_gui_cfw=>flush (within the loop)

- loops on the data table add does a add_node

- executes method set_screen_update

- executes method frontend_update

It looks to me that the loop which executes the delete_subtree and the flush is very time consuming. I am wondering if it can be changed. I have read a lot about various methods but as i'm not ABAPer i'm getting lost.

What is the best method to refresh an ALV tree after a single node modification ? In the worst case, within the loop i described, is the flush required or can it be executed after the loop ?

Many thanks,

Sylvain.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
654

Hi.

Try With this Method

REFRESH_TABLE_DISPLAY - Redraw Tree

Salil...

2 REPLIES 2
Read only

Former Member
0 Likes
655

Hi.

Try With this Method

REFRESH_TABLE_DISPLAY - Redraw Tree

Salil...

Read only

former_member131774
Contributor
0 Likes
654

Since you are talking about tree , I think you could use lazy load ( load only first level data ) which will reduce most of data transfer from db.

Also OM have such kind of method read only root node.