on 01-02-2015 5:19 AM
Dear Experts,
I want to write a query for Stock Transfer Report. I want Item Code, From Warehouse, To Warehouse, From Bin , To Bin, Qty.
Valuation method is FIFO. Item is not managed by Serial or Batch.
Plz reply.
Regards
Hi Kuldeep,
DECLARE @DocEntry INT = 1
SELECT T2.BinCode, T0.ItemCode, T0.ActionType, T0.EffectQty
FROM OILM T0 JOIN OBTL T1 ON T0.MessageID = T1.MessageID
JOIN [dbo].[OBIN] T2 ON T2.[AbsEntry] = T1.[BinAbs]
WHERE T0.TransType = 67 AND T0.DocEntry = @DocEntry
There will be two lines for each item. 1 is From Bin, the other is To Bin.
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks dear for your reply. Also thanks for sharing such valuable query. Although I tried to write this query for Kuldeep, But I also was not successful to get the From Bin Location and To Bin Location information. I tried to search for the threads but mostly were not answered.
Hope your query will help others in future. I also will inform you, if there will be any problem to get the output for the same.
Thanks & Regards
Ankit Chauhan
Dear All,
Plz reply for getting this query.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.