Skip to Content
avatar image
-1
Former Member

Cumulative sum in ALV report output

Hello all,

I given the fields of DMBTR and LIFNR in my ALV report and i got the number of vendors and Amounts in my output grid.So now how can i calculate the same vendor number with all the Amount added and give the total sum for that vendor and display only that one vendor number with all the total sum of amounts in output

Give me coding for that.

Thank you

divya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 14 at 03:09 AM

    Hello,

    If you have ABAP 7.4 then can use concept something like this.

    sample-logic-for-cumulative-amounts.txt

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 15 at 07:54 AM
    -1

    It's a pretty basic question.

    Apart Praveen Kumar Chitturi suggestion (which is the right way to do if you are at least on 7.40), even old ABAP offers you the solution with Control Level Staments.

    https://wiki.scn.sap.com/wiki/display/ABAP/Control+Level+Statements+in+ABAP

    Again, it's something pretty basic.

    Add comment
    10|10000 characters needed characters exceeded