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: 

How display totals line using CL_GUI_ALV_GRID

Former Member
0 Kudos

Hi

I am using class CL_GUI_ALV_GRID to display ALV control. I need to display "totals" line in the last line of the grid. Can you please help me, how display this without using saved variant?

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

In the fieldcat pass do_sum = 'X' for the field u want to see total

5 REPLIES 5

Former Member
0 Kudos

In the fieldcat pass do_sum = 'X' for the field u want to see total

0 Kudos

OK, thanks, tah works ... and now I would like to add some subtotals ... how can I do it?

thank you in advance.

0 Kudos

Pass table IT_SORT in ur method SET_TABLE_FOR_FIRST_DISPLAY with FIELDNAME = 'your field name' UP = 'X' SUBTOT = 'X'. This field name should have DO_SUM = 'X' in ur fieldcat.

Sorry for a late reply as i have not noticed this post.

Regards

Sathar

Former Member
0 Kudos

marked as unanswered

Edited by: Rastislav Mojzis on Oct 8, 2008 3:26 PM

Former Member
0 Kudos

Thank you.