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

OOALV-subtotals for multiple fields

Former Member
0 Likes
867

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
Read only

Former Member
0 Likes
622

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.

Read only

0 Likes
622

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.

Read only

Former Member
0 Likes
622