cancel
Showing results for 
Search instead for 
Did you mean: 

adding the values in a column of a table

former_member206281
Active Participant
0 Kudos

Hello all,

I have a table view.. i need to add all the values of one column in a table.. please guide me how to do!!

Regards

Chandrakant

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi chandra,

As far as i am aware there is no direct provision to sum all the values in a column of a table,

you have to iterate through the table and sum up the values.

data: sum type i.

sum = 0.

lr_partner ?= coll_wrapper->get_first( ).

while lr_partner is bound.

clear lr_points.

*do your summing up here... below is example..

lr_points = lr_partner->get_property_as_string( 'POINTS' ).

sum = sum + lr_points.

lr_partner ?= coll_wrapper->get_next( ).

endwhile.