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 Grid Total ?

Former Member
0 Likes
917

Hello,

I have an ALV-Grid with the fuction module REUSE_ALV_GRID_DISPLAY_LVC and I need to get sub-totals and totals in fuction of two fields.

Thanks in advance.

6 REPLIES 6
Read only

Former Member
0 Likes
887

Hi,

Sort the Internal table by the fields and build the I_SORT table with the right fields

and pass it to GRID_DISPLAY fun module

and Assign DO_SUM = 'X' in the field catalog for the fields to which you need SUM.

reward if useful

regards,

ANJI

Message was edited by:

Anji Reddy Vangala

Read only

RaymondGiuseppi
Active Contributor
0 Likes
887

In IT_FIELDCAT for each field to sum

IT_FIELDCAT-DO_SUM = 'X'.

In IT_SORT pass two record with your keys, and for each key where you want a total

IT_SORT-subtot = 'X'.

Regards

Read only

Former Member
0 Likes
887

In the Field Caatalog for which field u want totals

make them

IT_FIELDCAT-DO_SUM = 'X'.

Regards,

Ramesh.

Read only

Former Member
0 Likes
887

Hi,

to get the sum u have to use do_sum = 'X'.

while preparing the fieldact.and make sure that that field is numeric.

rgds,

bharat.

Read only

Former Member
0 Likes
887

chk this for subtotal

http://www.geocities.com/mpioud/Z_DEMO_ALV_SORT.html

and for total

wa_fieldcatalog-do_sum = 'X'.

Read only

Former Member
0 Likes
887

Na Lorena, dejalo, no se puede hacer

That can't be done!!!!

Dame los puntos coño!!!!

jajaajaj