Summing value in Internal Table
I have some problem during manipulating the internal table:
The scenario is like this
I have one internal Table:
Material Curr PO Quantity
A EUR 10
A EUR 15
A GBP 20
A GBP 10
B USD 10
Now I have to Sum the POQty and put this in other field Sum of Internal Table on the basis of grouping materail as well as Curr.
For Material A and Curr EUR, i should get sum of PO Qty 25 and
for material A and Curr GBP, i shld get sum of PO Qty 30 and
For B - USD, i shld get 10 in Sum field.
How to do this in ABAP Code?
Please solve my this issue.