on 01-01-2014 4:32 AM
How to get inventory in warehouse report branch wise not warehouse wise in sap b1???We have more than one ware house in a single location.Can anyone give me a query for his ???
Hi,
Try:
select t0.Location,t1.WhsName,t3.ItemCode,Max(t3.ItemName) 'Item Description', SUM(t3.OnHand) 'In Stock'
from OLCT t0
inner join OWHS t1 on t0.Code = t1.location
inner join OITW t2 on t1.WhsCode=t2.WhsCode
inner join OITM t3 on t2.ItemCode = t3.ItemCode
GROUP BY t0.Location,t1.WhsName,t3.ItemCode
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nabil Rashidm,
This will gives you location wise report....
select location,WhsName,ItemCode,SUM(OnHand) from(
select t0.Location,t1.WhsName,t3.ItemCode,t3.ItemName,t3.OnHand from OLCT t0
inner join OWHS t1 on t0.Code = t1.location
inner join OITW t2 on t1.WhsCode=t2.WhsCode
inner join OITM t3 on t2.ItemCode = t3.ItemCode )locationReport group by location,WhsName,ItemCode
hope helpfull
Thanks and Regards
DEV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this query:
SELECT
T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[IsCommited],
T0.[OnOrder],max(T3.[DocDate]) as LastReceiptdate,max( T5.[DocDate])
as Lastissuedate
FROM
OITM T0 left JOIN OINM T1 ON T0.ItemCode = T1.ItemCode left JOIN
IGN1 T2 ON T0.ItemCode = T2.ItemCode left JOIN OIGN T3 ON T2.DocEntry
= T3.DocEntry left JOIN DLN1 T4 ON T0.ItemCode = T4.ItemCode left
JOIN ODLN T5 ON T4.DocEntry = T5.DocEntry
WHERE
T0.[ItemCode] = [%0]
GROUP
BY T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[IsCommited],
T0.[OnOrder]
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
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.