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

ALV List Display - Is it possible to sum up the subtotal values of field

Hi Experts,

We hav a requirement to do subtotals of the price field for each unique PO Line item, and also to sum up the subtotal values ie. only the subtotal values needs to be added irrespective of the repetation of the po line items in the report.

PO Number PO Item Price

XXXXXXXX 10 20

XXXXXXXX 10 20

Subtotalled 20

YYYYYYY 10 10

YYYYYYY 10 10

Subtotal showing 10

We want the total of price to be 30 ie (Subtotal value of XXXX, 10 = 20 and YYYYY,10 = 10 ) but currently do_sum is been used in the fieldcat of the report which displays all the occurances of the record... = 60(202010+10)

Kindly help asap.

Thanks,

Rosy

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2009 at 10:27 AM

    Hi Rosy,

    I dont think this is acheivable without writing your own code for subotalling anf totalling.

    regards,

    nilesh.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2009 at 09:28 AM

    Hello,

    Use Control Break Statemens in your code.

    Then only it is possible to make Subtotals & Totals.

    Anil.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2009 at 11:12 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 14, 2009 at 11:54 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 14, 2009 at 02:04 PM

    Hi rosy,

    the question pops up to why you have duplicates in the display table. If you

    DELETE ADJACENT DUPLICATES FROM

    the output table, everything should be fine.

    Regards,

    Clemens

    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.