Skip to Content
avatar image
Former Member

Sum of all line items and display at the bottom of the page

Hi ABAPers,

I am displaying line items in the main window based on PO number ....and I've a coloumn Total amount.

My requirement is after the line items , the grand total which is the sum of all line items has to be displayed.

Is this possible. If so, can anybosy help me in that.

thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 22, 2010 at 10:30 AM

    Hi ,

    It is possible.

    For that u have to do following

    take one variable of same type on which you want to calculate total ... declare in global variable

    double click in the table goto the calculation tab in that give the variable on which u want to calculate total

    print in the total in the footer of the table ..

    Hope you resolve your problem

    Let me know any concerns......

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi ,

      You want total of all line items or count of the line items or Both

      as per the earlier post u can get the total and

      if you want line items count u have to do

      => create one global variable

      => create the program lines node in the main area of the table count the lines count in the program lines

      populate the values according to your requirement.

      Let if any concerns ....

  • Feb 22, 2010 at 02:46 PM

    Hi,

    Use final window for this. Check forum you will get lots of thread on this......

    thanks,

    Abhijit

    Add comment
    10|10000 characters needed characters exceeded