Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

material based total in month

Former Member
0 Likes
298

For Particular Material , need sum of sale order qty under month january , feb , march etc

How can i do that ?

Please ask a more specific question, after you have put some effort of your own. Thread locked

Edited by: kishan P on Aug 30, 2010 3:36 PM

1 REPLY 1
Read only

Former Member
0 Likes
275

Hi ,

I dont know how you are seggregating material from sales orders to month grouping . . your question is very vague ..

but on a lighter note you internal table with all the data in it should be sorted based on a date field and preferably a field called month to distinct the data on monthly basis.

ex - 30/08/2010 -> Aug-> 08 which should be the key field .

Use control break statements to achieve the sum on monthly basis.

sort itab by . . month


loop at itab. 
......
.......
gv_qty = itab- qty + gv_qty.
......
at end of month .
itab_montot = gv_qty. 
clear  gv_qty.
...
endloop.

BR,

Vijay.