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

average function in ALV Report

Hi ,

I am doing Subtotal in ALV by Grouping the Fields. Instead of Using Subtotal i want to Use Average of

(Total / Quantity) in AlV. Is there any function availabile for doing Average in ALV Reports.

Point will be definately awarded .\

Kamal

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 05, 2008 at 03:26 AM

    Hi Kamal,

    Please check this link

    average-in-alv

    Best regards,

    raam

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 05, 2008 at 03:32 AM

    > I am doing Subtotal in ALV by Grouping the Fields. Instead of Using Subtotal i want to Use Average of

    > (Total / Quantity) in AlV. Is there any function availabile for doing Average in ALV Reports.

    >

    It is possible to show the Average using the FIELDCATALOG-DO_SUM = 'C'. for the column/field which you want the Average.

    
    FIELDCATALOG-DO_SUM = 'C'. "<-----Avergage
    
    

    Read the Rules , Don't use Forbidden words...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 05, 2008 at 03:52 AM

    Hi,

    fieldcatlog-do_sum = 'C'.

    It will solve ur issue....

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 05, 2008 at 10:54 AM

    hi friends,

    i don't want to use average (Mean values) but i want to divide Total Amount / total quantity. that is the

    division of total amount by total quantity in subtotals.

    Can anybody tell the code.

    Kamal

    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.