on 08-23-2011 10:23 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.