cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Abhijit74
Active Contributor
0 Kudos

Hi,

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

thanks,

Abhijit

Former Member
0 Kudos

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

Former Member
0 Kudos

but how would we knw the no.of line items....and sum of them

Former Member
0 Kudos

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