on 11-29-2007 10:19 AM
How to write a query for closing stock (in quantity) for all items by group by warehouse for a particular date?
Thank you.
Please close this Question if answered.
Best wishes
Suda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the OINM table. It contains every inventory transaction with date, and you can sum until the required date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this Query
SELECT T0.ItemCode, SUM(T0.InQty-T0.OutQty) AS 'Issue Quantity' FROM [dbo].[OINM] T0 WHERE T0.ItemCode = '[%0]' AND T0.CreateDate <= '[%1]'
GROUP BY T0.ItemCode
NOTE: If you want this to be Run for all Items then remote this portion <i><b>T0.ItemCode = '[%0]' AND</b></i> from the Query
Suda
Hello Ming-Ming,
Hope you coul be fair and and wait for Istvan Koros's answer since you only write to him and not ask other to answer your problem. I am not trying to prevent other to answer your problem cause it is probably very important and need quick answer to you but once again it is good to wait the person you have asked except you did not reply to one of the others answer.
Rgds,
Hi there!
Can you describe your business needs more precisely?
Regards,
Anton.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the standard stock count in SAP B1 (Inventory>> Inventory Transaction >> Initital Quantity, Inventory Tracking, Stock Posting) is "real time" and not back-dated and the screen will display all items irrespective whether there is stock balance in the system. Anyone has a query where able to have the stock balance generated at any cut-off date, i.e. the stock count can be back-dated and only display those items with quantity (in the system) as at that cut-off date .
Thank you.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
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.