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.
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: sum2 type i,
sum1 type i,
c type menge,
diff type menge.