on 08-18-2007 5:22 AM
Hi experts...
I m using mseg and mkpf tables .
I want to calculate opening stock month wise.
can anybody tell me the logic for calculate opening stock.
Dear Ankita,
If you want the stock monthwise, then I suggest you get ur data from the:
-> S031
-> S032 tables
Since it stores the statistical data about goods movement, It would be faster and would serve the purpose better.
The stock would be = opening + receipts - issue.
Regards:
Ravi Carpenter
Plz rate if useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
take records from mseg where mkpf < s_budat-low.
In first part of records ignore movement bwart not in ('641','642').
plus stock for shkzg = 'S' and minus stock for shkzg = 'H'.
In second part of records take mvement bwart in ('641','642').
plus stock for shkzg = 'S' with bwart = '642'
and minus stock for shkzg = 'H' with bwart = '641'.
try it...
thanks...
raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.