2023 Jan 12 1:21 PM
2023 Jan 12 1:59 PM
F.e. the field EKBE-WRBTR you can do the sum like this:
DATA(sum) = REDUCE wrbtr( INIT x = 0 FOR ls_ekbe IN t_ekbe NEXT x = x + ls_ekbe-wrbtr ).
See also examples of REDUCE
2023 Jan 12 4:02 PM
I guess you know how to loop at an internal table, how to use a variable and how to use the + operator.
I think it's the most simple algorithm of the world.
What is your difficulty?