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: 

display Total and total Text for a field in ALV Grid

former_member185116
Active Participant
0 Kudos

hello all,

i am stuck with a problem that i wanted to display Total for a field in ALV Grid at the bottom of the display also the text 'TOTALS'

should be displayed....

4 REPLIES 4

Former Member
0 Kudos

Hi

Maintain for a perticular field with fieldcatlog-do_sum = X. This will give u total sum of a field.

To display text as 'TOTALS', for these pass 'TOTALS' to final internal table record and append it.

thanga_prakash
Active Contributor
0 Kudos

Helo Vinay,

You can achieve it by using IT_SORT... Try by passing 'X' to the parameter subtot for the field which you want subtotal.

Refer to the long text of the parameter IT_SORT in the function module.

Regards,

Thanga

thanga_prakash
Active Contributor
0 Kudos

Hello Vinay,

Is your problem solved ?

Regards,

Tp

0 Kudos

hi prakash,

in the screen below

under column COAL i wanted to display KOB1 and in the total(instead of 5) i wanted to display TOTAL COAL,

i tried all the ways ,but i was not successful , hence i displayed a numeric value like above...