2008 Nov 06 2:15 AM
i have on issue...my requirement is i hav to add the quantity field if all the material nos are same.....if it is not same i have to left it....if one quantity value also different leave it...please uided me in this onee
2008 Nov 06 3:16 AM
2008 Nov 06 3:16 AM
2008 Nov 06 3:41 AM
Hi,
Can you give your issue more clear? It's a little confusing.
I tried to understand you:
first: if the material no is the same, do sum for quantity.
second: if the material no is not, leave it,
third: what is the meaning for : if the quantity is not same, then also leave it?
Regards,
Chris Gu
2008 Nov 06 9:52 AM
hi,
no consideration for quantity...only based on material...i hav to add...if the materials nos r same i have to add the qty and if it s not no need to add...
2008 Nov 06 3:53 AM
Hi Sai,
You need to declare a variable globally and then you need to assign the material to the value at the initial time when qty is being printed.
Now for everytime when the qty is comes you need to cross chcek the previous material. if the previus material is same then leave it. You can use this condition in the condition tab when you print the qty field.
Thanks,
Chidanand
2008 Nov 06 9:57 AM
hi,
sort ur internal table by material.
then loop that internal table.
like loop at itab.
at end matnr.
sum. // this sum adds all the amount , quantity fields and place
that added value in the same field
for example wrbtr is for amount then in itab-wrbtr u can find total value..
endat.
endloop.
Rgds.,
subash