Hi,
I am working on a report in which i want to calculate the quantity of a item so that totaling can be done for the single item.
Here the code which i am using right now:-
LOOP AT T_TAB1 INTO W_TAB1.
AT NEW MATNR.
SUM.
W_TAB1-PTOT1 = W_TAB1-PTOT1 + W_TAB1-MENGE.
ENDAT.
MODIFY T_TAB1 FROM W_TAB1.
ENDLOOP.
SORT T_TAB1 BY MATNR.
Here it is repeating the itemid (for example: if there are 5 enteries for a ItemId it is repeating it,but i want that submission of it and disaplay against 1 itemid).