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: 

OOALV-subtotals for multiple fields

Former Member
0 Kudos
358

I am using OOALV, in which I have to make subtotals of integer values based on multple fields. how to achieve this?

3 REPLIES 3

Former Member
0 Kudos
113

Hi,

Create a sort table and pass those field in sort table for the last sorted field put subtot = 'X' and pass this sort table to

Method SET_TABLE_FOR_FIRST_DISPLAY, remember to put do_sum = 'X' for intereger fields in fieldcatalog.

Thanks,

Anmol.

0 Kudos
113

The approach mentioned will subtotal individual columns...if multiple columns must be inserted into a single subtotal, you can add a row, at the appropriate spot in your internal table, with the value computed....may reuire using/managing some sort control column, which can be hidden.

former_member680493
Participant
0 Kudos
113