add amount fields of two same belnr entries
i am working on a zreport ,my problem is that in my itab if belnr is unique then it should print the amount value given against it ,but if it encounters two same belnr values then it should print the cumulative value of amount field.for e.g.
in case of belnr = 250000018 it should give 205,but in case of belnr = 2500000020 it should print 1000.
it is urgent please .points will be rewarded surely
itab1 like table of itab with header line.
sort ITAB by belnr.
loop at ITAB.
itab1 = itab.
Now ITAB1 will contain the required cumulative results.
If it doesn't work then in need to see how you declared ITAB.
Reward points if useful.Get back in case of query...