11-30-2007 5:56 AM
I have a report which needs to sum all the values of KONV-KBETR where KONV-kinak NE 'A'.
How do i write the code.
Can anyone help me in wrting the code..
This value i have to finally display in my internal table as one value.
11-30-2007 5:59 AM
HI,
Check the below code...
IF konv-kinak NE 'A'.
v_kbetr = konv-kbetr + v_kbetr.
ENDIF.
Cheers,
Bujji
11-30-2007 6:09 AM
Bujji..
But the value v_kbetr is not constant..
And morever i dont know what the values are there in the field konv-kbetr.
could you help me further.
11-30-2007 6:12 AM
Hi Mona,
slight change..
data:w_kbetr type konv-kbetr.
loop at konv.
if konv-... ne 'A'.
W_kbetr = w_kbetr + konv-kbetr.
endif.
endloop.
i hope this wil help u...
Regards,
Kaveri
11-30-2007 6:21 AM
11-30-2007 8:00 AM
Hi Mona,
I think you forgot to allocate marks )))))))))
Regards,
Kaveri
11-30-2007 6:09 AM
data: sumf type i.
select sum( kbetr ) from konv into sumf where kinak <> 'A' group by konv.
write: sumf.
Message was edited by:
Ramu
11-30-2007 6:15 AM