Skip to Content
author's profile photo Former Member
Former Member

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

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.....

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 27, 2009 at 06:47 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 27, 2009 at 06:48 AM

    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!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.