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.
Showing results for 
Search instead for 
Did you mean: 

Calculations in ALV Tree

Former Member
0 Kudos

Hi folks,

I've done a report with an ALV TREE (CL_GUI_ALV_TREE) and I want to get on the first node the totals of its children.

I have used the method UPDATE_CALCULATIONS and FRONT_END_UPDATE, everything it's ok when displaying the values, but when

I try to get top node's calculated values by using the GET_OUTTAB_LINE method I get old values instead of updated ones.

How can I get calculated values?

Thnx in advance.


Former Member
0 Kudos

refer this link

Class CL_GUI_ALV_TREE 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'.