cancel
Showing results for 
Search instead for 
Did you mean: 

how to calculate the total, subtotal and average of a column using abap webdynpro

Former Member
0 Kudos

Dear Exports

Can anyone Kindly guide me how to calculate the total, subtotal and average of a column.I have fetch the data from MBEW table with 5 fields.

Here I will calculate the subtotal of the field Total value for individual Valuation class,(means subtotal of Total value for valuation class 3000,3001 like this), and then total which is the sum of all subtotal and the average which is total/total no of material. Here another new column I want to generate i.e serial no at first of the table so that it will be easy to calculate the average.

Accepted Solutions (0)

Answers (1)

Answers (1)

JanarthananE
Contributor
0 Kudos

Hi Rashmita,

Refer the following link for step by step process to better understand ,

http://www.saptechnical.com/Tutorials/WebDynproABAP/Totals/ALV.htm

And also refer the following thread for getting some idea about total nd subtotal in alv,

http://scn.sap.com/thread/308751

http://scn.sap.com/thread/1306424

http://scn.sap.com/thread/1850834

Hope its useful to u,

Regards

Jana