Skip to Content
author's profile photo Former Member
Former Member

How to get invenory in warehouse report branchwise??

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 ???

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 01, 2014 at 11:59 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 01, 2014 at 11:49 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2014 at 09:36 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.