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

Former Member
0 Likes
599

hello!

I created a report similar to transaction IH03 in its results ( not in the code ).

Instead of parameter equipment in the selection screen i have select options.

My problem is that when i have more then one equipment, the tree is not correct due to wrong tree nodes.

I need to create a situation that when i have new equipment the nodes will be refreshed if i understand the tree behavior.

I used class CL_GUI_ALV_TREE and method TREE1=>ADD_NODE.

Can anyone tell me how to refresh the nodes or an example for that.

thanks

Yifat

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

use following method

CALL METHOD ALV_TREE->FRONTEND_UPDATE.

hello!

I created a report similar to transaction IH03 in its results ( not in the code ).

Instead of parameter equipment in the selection screen i have select options.

My problem is that when i have more then one equipment, the tree is not correct due to wrong tree nodes.

I need to create a situation that when i have new equipment the nodes will be refreshed if i understand the tree behavior.

I used class CL_GUI_ALV_TREE and method TREE1=>ADD_NODE.

Can anyone tell me how to refresh the nodes or an example for that.

thanks

Yifat

4 REPLIES 4
Read only

uwe_schieferstein
Active Contributor
0 Likes
569

Hello Yifat

Class <b>CL_GUI_ALV_TREE</b> has two methods for refreshing the display:

- FRONTEND_UPDATE (Sends Changed/Inserted Nodes to Control)
- UPDATE_CALCULATIONS (Recalculate Columns)

The second methods implicitly calls method FRONTEND_UPDATE except if you suppress it using parameter NO_FRONTEND_UPDATE = 'X'.

Regards

Uwe

Read only

Former Member
0 Likes
570

use following method

CALL METHOD ALV_TREE->FRONTEND_UPDATE.

Read only

Former Member
0 Likes
569

hi!

thanks for your answer.

My program work as a loop , and suppose each time to build a tree node.

under that can be expanded.

every time the loop runs it remember the last level of the node and instead of

initialing the tree, it starts from the last node it created.

I need a method that initialize the tree.

thanks

yifat

Read only

Former Member
0 Likes
569

i wanted to know is there any bapi for notfication in which i give date and all the

notifications created against that date must be returened in a summarised format.