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: 

Row wise total in oops alv..............

Former Member
0 Kudos

hi,

i hav 4 fields among which 3 fields are quantity fields(f1 f2 f3) and i want the total of these threee fields in the fourth field f4....

can anyone explain how to do this.....

2 REPLIES 2

Former Member
0 Kudos

Hi,

You can have to add the extra field for the Row Total in the internal table and update the Row total values in this column. It required you can color the column to differentaite from other colums.

You don't have any option in the ALV as Coloumn subtotal and Totals.

Former Member
0 Kudos

Hi,

while preparing your final internal table you have to do like bleolw

loop at it_final into wa_final.

wa_final-f4 = wa_final-f1 + wa_final-f2 + wa_final-f3.

modify it_final from wa_final index sy-tabix transporing f4.

endloop.

it works...

Note: F4 will be the filed at the end in your final internal table.

Thanks!