Skip to Content
0
Former Member
Jul 08, 2010 at 12:32 PM

alv summation problem

17 Views

Hi all,

I have a requirement where i have to find sum of mseg-menge , opening stock , closing stock.

so i wrote the code as below:

loop at it_s032 into wa_s032.

c = wa_s032-mbwbest + sum2 + sum1 - wa_s032-mkobest.

diff = wa_s032-mbwbest - wa_so32-mkobest.

ENDLOOP.

where, sum2 is the sum calculated for mseg-menge based on mblnr,and

sum1 is the sum calculated for mseg-menge based on matnr.

error: Arithematic operations are only intended for operands that can be converted to numbers.

please suggest for this problem.

data declaration:

data: sum2 type i,

sum1 type i,

c type menge,

diff type menge.

regards,

asha