cancel
Showing results for 
Search instead for 
Did you mean: 

Column Summation - row entries are added in WD ALV

Former Member
0 Kudos

Hi,

I need to know if there is any way we can summate the values of two attributes of the adjacent columns and put the added values in the third column row.

e.g

Column1 Column2 Column3

Value_1.1 Value_2.1 Value_1.1 + Value_2.1

Value_1.2 Value_2.2 Value_1.2 Value_2.2

A code snippet will really help or an alternate suggestion how to proceed with it.

Best Regards

Sid

Accepted Solutions (0)

Answers (2)

Answers (2)

Madhu2004
Active Contributor
0 Kudos

hi Siddharth,

loop at itab into wa.

wa-column3 = wa-column1 + wa-column2.

modify itab from wa.

endloop.

now bind this itab to the node which u binded to the node.

Madhu

Former Member
0 Kudos

Hi Siddharth Chowdhury ,

you can loop the itab before binding to the node thats binded to the alv and sum the adjescent fields.

i think its difficult to do this summation at alv level in wda.

Regards

Sarath