Query for Stock Tranfer Mov-311

Dear Experts,
I want to make a query to know value of stock transfer from one storage location to another on certain date or from x date to y date. In MB51 there is no value appears, as there is no financial transaction.
I am preparing query using SQVI, one table I have selected MSEG which other table I select so that value apprears.
My company requirement is this, they want how much material in terms of quantity and value has been transffered from RM Store to WIP Store.
Regards
GR

Hi G R,
see below table data's from MM60
MARA - Material master
MAKT - Material text
MARC - Material per plant / stock
MARD - Storage location / stock
MSEW - Material Valuation
MARM - Units of Measure for Material
Regards,
Sankaran

Similar Messages

  • Re:Query for Stock Statement for a particular item..!!!!

    Dear SAP Experts,
    I need a stock statement query  for a particular item which contains:
    1.ItemCode
    2.Item Description
    3.Item Price
    4.Opening
    5.Receipts
    6.Issues
    7.Closing
    8. Value
    The selection criteria are:
    1.Warehouse code
    2.Item Name
    3.Posting Date
    Plz give me a good solution for this issue.
    With Regards,
    Revathy

    Check this
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    set @FromDate =
        (Select min(S0.Docdate) from OINM S0 where S0.Docdate >='[%0]')
    set @ToDate =
        (Select max(S1.Docdate) from OINM S1 where S1.Docdate <='[%1]')
    select * from
        SELECT T0.itemcode,
        min(T0.Dscription) as 'Item Description',
        min(B1.ItmsGrpNam) as 'Item Group', W1.Whscode, C1.Location,
        (isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate ),0)-
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate),0)
        ) as [Opening Stock],
        isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate
            and O1.docdate<=@ToDate and O1.inqty>0
            and O1.transtype in (20,18)),0
        ) as [Purchase Quantity],
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate
            and O1.outqty>0 and O1.transtype in (21,19)),0
        ) as [Purchase Return Quantity],
       isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate and O1.outqty>0
            and O1.transtype in (13,15)),0
        ) as [sale Quatity],
        (isnull
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate<=@ToDate),0
            isnull((
                Select sum(isnull(outqty,0))
                from OINM O1
                where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
                and O1.docdate<=@ToDate),0)
        ) as [Closing Stock]
        FROM OINM T0
        INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
        INNER JOIN OITW T2 ON T1.ItemCode = T2.ItemCode
        INNER JOIN OITB B1 ON T1.ItmsGrpCod=B1.ItmsGrpCod
        INNER JOIN OWHS W1 ON T2.WhsCode = W1.WhsCode
        INNER JOIN OLCT C1 ON W1.Location=C1.Code
        Group by T1.itemcode, T0.Itemcode, W1.WhsCode, C1.Location
    ) a
    where (a.[Opening Stock]
            +a.[Purchase Quantity]
            + a.[Purchase Return Quantity]
            +a.[sale Quatity]+a.[Closing Stock]
           ) !=0
    Regards,
    Bala

  • Query for stocks on hand

    I would like to know if it is possible to create a query that would display the stocks of all items on a specific date and will display the item cost or the purchase price of each item in stock. Let say for example, today is January 14, 2010. I would like to check how many stocks in my inventory last January 8, 2010. Does anybody knows how to create this?
    Thank you.

    Hi Don Elicor,
    Check the below thread, you will be get some idea or Solution.
    Inventory Report by Query
    Query for Inventory Activity for whse & dates
    Item Stock Report
    Item Stock Report
    Regards,
    Madhan.

  • QUERY FOR STOCK VALUATION

    Folks
    One of my client need a report as below..
    *ITEMNO -- ITEMNAME-- O/S (in RS & QTY) --- PURCHASES  (in RS & QTY) -- ISSUES  (in RS & QTY) --- CLOSING STOCK  (in RS & QTY)*
    It should have the provision to select DATEWISE.
    Can anybody help me on this??
    regards
    KARTHIK

    Hi Kartik,
    Try the below query....
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    set @FromDate = '2005-01-01 00:00:00.000'
    set @ToDate = '2011-01-01 00:00:00.000'
    SELECT 
              T0.TransNum,
              T0.TransType,
              T0.CreatedBy,
              T0.BASE_REF,
              T0.DocDate,
              T0.DocDueDate,
              T0.CardCode,
              T0.CardName,
              T0.Ref1,
              T0.Ref2,           
              (isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=T2.Whscode and O1.docdate< T0.DocDate  ),0)-
              isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=T2.Whscode and O1.docdate< T0.DocDate ),0)) as [Opening Stock],
              T0.InQty,
              T0.OutQty,
        ((isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=T2.Whscode and O1.docdate< T0.DocDate  ),0)-
              isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=T2.Whscode and O1.docdate< T0.DocDate ),0))+T0.InQty -T0.OutQty )AS [Closing Stock]
        FROM OINM T0 INNER JOIN OITM T1 ON T0.ItemCode =T1.ItemCode LEft Outer Join OWHS T2 On T2.WhsCode =T0.Warehouse

  • Create outbound delivery using VL10B for Stock Tranfer order

    Hi ALL gurus,
    I had created STO stock transfer order (UB order type ) and release the STO using ME21N and ME29N
    When try create a outbound delivery using VL10B, the STO not show, i remove all check and blank in all seclection. The STO still not show.
    Anyone can help ?? where going wrong ???
    Rejoice

    Hi
    There are two processes for STO , that is with shipping & without shipping.
    For Without Shipping there is no config required.
    For STO with shipping You need to configure in
    SPRO-> IMG-> Materials Management-> Purchasing-> Purchase Order-> Set up Stock Transport Order
    Please go through the link on all types fo STO's
    http://help.sap.com/saphelp_erp2004/helpdata/EN/4d/2b90dc43ad11d189410000e829fbbd/content.htm
    Thanks & Regards
    Kishore
    Edited by: Kishore Kumar Chiluka on Jul 2, 2008 8:25 AM

  • Query for Stock Statement

    Hi Members,
    My customer needs an report "Stock Statement" with selection criteria as Date, ItemGroupwise and warehouse wise with following columns namely.
    Itemcode
    ItemName
    Opening Stock Qty
    Receipt Qty
    Issue Qty.
    Price.
    Kindly help me in this regard,
    Thanks in advance,
    Venkatesh.R

    Hi!
    Check these threads
    Re: Item Stock Report (2nd page)
    Item Stock Report

  • Delivery without reference for stock transfer within the same plant 311

    Dear all,
    I need to create a delivery without reference for stock transfer within the same plant, movement 311,  i.e. just from 1 storage location to another storage location.
    I tried to use VL01NO with delivery type UL.
    Now my question is how can I assign a receiving plant for a customer?
    I can't do the MIGO or MB1B document because I need the delivery document (packing list, forms, Texts,...).
    It's possible this option???
    Thank you very much.

    Hi,
    What is the item category you are assigning while doing VL01NO?  Check the schedule line category for that item category assignment.  That Schedule line category has an option for one step GI.  There you can assign 311 or create a separate item category and schedule line category and in that SC assign 311. 
    Thanks
    Krish.

  • Query Requirement for Stock on hand.

    Hi All,
    Actually I am have written a query for showing a running total for an Item with all Sales Order and Purchase Order order by ship date (due date).
    SELECT T0.[ItemCode], T0.[ShipDate],t2.[CardCode],t4.[OnHand],-T0.[OpenQty]*t4.[NumInSale] as StockMovt FROM RDR1 T0 INNER JOIN ORDR T2 ON T0.DocEntry = T2.DocEntry INNER JOIN OITM T4 ON T0.[ItemCode]=t4.[ItemCode] WHERE T0.[ItemCode] =[%0] and T2.[DocStatus] ='o'
    UNION
    SELECT T1.[ItemCode], T1.[ShipDate],t3.[CardCode], t5.[OnHand], T1.[OpenQty] as StockMovt FROM POR1 T1 INNER JOIN OPOR T3 ON T1.DocEntry = T3.DocEntry INNER JOIN oitm t5 ON T1.[ItemCode]=t5.[ItemCode] WHERE T1.[ItemCode]=[%0] and T3.[DocStatus] = 'o' ORDER BY [ShipDate]
    What i require is the additional field which shows the cumulative or running total for each record. Can anyone please help in how it can be achived.
    Thanks & Regards
    Shiva

    Hi Prasanna,
    I made some modification to ur query and its perfectly working. I still have the other query...can you please help me.
    The out put that you have asked for is as follows
    #     ItemCode     ShipDate     CardCode     OnHand     StockMovt
    1     BAS3B     04.06.09     AUCHRA     14,320.00     -108
    2     BAS3B     04.06.09     BLUMER     14,320.00     0
    3     BAS3B     04.06.09     GREENTsup     14,320.00     0
    4     BAS3B     05.06.09     bizzy     14,320.00     -12
    5     BAS3B     05.06.09     BROWNT     14,320.00     -120
    6     BAS3B     18.06.09     GOODVI     14,320.00     0
    7     BAS3B     26.06.09     COLMAN     14,320.00     -15,000.00
    8     BAS3B     30.06.09     GREENTsup     14,320.00     3,000.00
    9     BAS3B     21.07.09     GREENTsup     14,320.00     5,000.00
    10     BAS3B     03.08.09     BEALES     14,320.00     -12
    11     BAS3B     05.08.09     ACORN     14,320.00     -6
    12     BAS3B     16.08.09     JLEWBS     14,320.00     -120
    13     BAS3B     22.08.09     GREENTsup     14,320.00     1,000.00
    14     BAS3B     22.08.09     GREENTsup     14,320.00     2,000.00
    15     BAS3B     25.08.09     BEALES     14,320.00     -6
    16     BAS3B     25.08.09     GREENTsup     14,320.00     2,000.00
    17     BAS3B     27.08.09     BEALES     14,320.00     -6
    18     BAS3B     27.08.09     ELIZAS     14,320.00     -24
    19     BAS3B     01.10.09     GATES     14,320.00     -120
    20     BAS3B     15.01.10     GREENTsup     14,320.00     2,000.00
    Further  to this I need a running total for the stock movement. Basically it nothing but the difference between the last two columns.
    Regards
    Shiva

  • Query for Price difference account when item is not sold but not on stock

    Hi Experts!
    One of my clients accountant requires a report which will help for what to do with the balance of the price difference account.
    At the and of the year there are some postings on this account, but not every item that hadnt been on stock when A/P Invoice arrived were sold. Some item were waistrel and put into a waistrel warehouse, but not sold.Some item were sent back to the supplier, but not sold.
    Is it possibble to make a query for knowing where to post the balance of the price difference account? Not all should be post to the Cost of goods sold.
    Thank you in advance!

    Hi,
    The query is possible.  However, it is a complicated one. It is also need to involve detailed analysis to your transaction histories.  You may start from OINM table to check.
    Thanks,
    Gordon

  • Query on stocks movement takes a long time

    There is a query on stocks movement cube which gives closing stocks across all plants. This query lately has started taking too much of time to execute. We have compressed the cube with no marker update.
    Any  comments.

    There is a query on stocks movement cube which gives closing stocks across all plants. This query lately has started taking too much of time to execute. We have compressed the cube with no marker update.
    Any  comments.

  • Query  for  Closing Stock goes beyond a particular value.

    Hi,
    The query for the following requirement:
    The Closing Stock goes beyond a particular value. The Closing Value of items crosses the pre-defined value.

    Hi,
    Yes it is related to the user selected date and stock level. Not answered Closing the thread.
    Edited by: Neela M B on Aug 28, 2010 3:08 PM

  • Query for Opening Stock + Purchase Qty + Sales Qty

    Hi ,
    Can anyboday help me by how to develop a query for the following requirement. If any custom query is available please provide me .We are working on SBO 2007B PL 8. The required report structure is 
        ItemNo ***OpeningStock**** Purchase ********* Sales****
    (Batchwise)** Qty*** Value ****Qty** Value ***Qty***Value
    Thanks & Regards
    Srini

    Hi Srini,
    I found this on the forum, see if it helps you;
    select b.Itemcode,b.Item_Description,b.UOM, b.rate as Rate,b.Opening_Stock,b.Receipt,b.Issue, b.Material_Revalue,b.Closing_Stock,b.Closing_Value from (select *,(case closing_stock when 0 then 0 else(Closing_Value/Closing_Stock)end) as Rate from( SELECT T0.Itemcode as 'Itemcode' ,min(T0.Dscription) as 'Item_Description', max(T1.InvntryUom) as UOM, (isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate<'[%0]' and O1.transtype in (58,59,20,16,67,-2)),0) - isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate<'[%0]' and O1.transtype in (58,21,19,60,15,67,-2,13)),0)+ (isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate>='[%0]' and O1.docdate<='[%1]' and O1.transtype in (-2)),0) - isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate>='[%0]' and O1.docdate<='[%1]' and O1.transtype in (-2)),0)))as Opening_Stock, (isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate>='[%0]' and O1.docdate<='[%1]' and O1.inqty>0 and O1.transtype in (20,18)),0) + isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate>='[%0]' and O1.docdate<='[%1]' and O1.inqty>0 and O1.transtype in (67)),0) + isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate>='[%0]' and O1.docdate<='[%1]' and O1.inqty>0 and O1.transtype in (58,59,16,14)),0)) as Receipt, (isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate>='[%0]' and O1.docdate<='[%1]' and O1.outqty>0 and O1.transtype in (13,15)),0) + isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate>='[%0]' and O1.docdate<='[%1]' and O1.outqty>0 and O1.transtype in (67)),0)+ isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate>='[%0]' and O1.docdate<='[%1]' and O1.outqty>0 and O1.transtype in (58,60,21,19)),0)) as Issue, isnull((select sum(Transvalue) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate<='[%1]' and O1.transtype in (162)),0) as Material_Revalue, (isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate<='[%1]' and O1.transtype in (58,59,20,16,14,19,67,-2)),0) - isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate<='[%1]' and O1.transtype in (58,21,19,60,15,67,-2,13)),0))as Closing_Stock, isnull((select sum(Transvalue) from OINM O1 where O1.itemcode=T1.itemcode and O1.docdate<='[%1]' and O1.transtype in (58,18,-2,67,59,20,16,14,15,13,21,19,60,69,162)),0) as Closing_Value FROM OINM T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OITW T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB B1 ON T1.ItmsGrpCod=B1.ItmsGrpCod where ((B1.ItmsGrpNam>='[%2]' and B1.ItmsGrpNam<='[%3]') or ('[%2]'='' and '[%3]'='')) GROUP BY T1.itemcode,T0.Itemcode )a Where (a.Opening_Stock + a.Receipt + a.Issue + a.Material_Revalue + a.Closing_Stock + a.Closing_Value) <> 0 )b 
    Thanks,
    Joseph

  • Standard Report for stock Aging

    Hello all,
    can anyone plz let us know that is there any standard report in SAP for stock aging? actually i have to see the materials quantity whose 311 movement not done after 321 and also from how many days it is pending.
    Kindly help and tell how can i find those materials quantity, while user also do 311 for partial quantity?
    Regards.

    Hi  @ABAP@
    Check the followings...
    MB24 - Reservations for Material
    MB25 - Reservations for Account Assignment
    MB51 - Material Document List
    MB52 - List of Warehouse Stocks on Hand MB53 - Display Plant Stock Availability
    MB54 - Consignment Stocks
    MB56 - Analyze Batch Where-Used List
    MB57 - Build Up Batch Where-Used List
    MB58 - Consgmt and Ret. Packag. at Customer
    MB59 - Material Document List
    MB5B - Stocks for Posting Date
    MB5C - Pick-Up List
    MB5L - List of Stock Values: Balances
    MB5M - ShL.exp/prod.date
    MB5S - Display List of GR/IR Balances
    MB5W - List of Stock Values
    MB9A - Analyze Archived Material Documents
    MBAL - Material Documents: Read Archive
    MBGR - Display Material Documents by Movement Reason
    MBSI - Find Inventory Sampling
    MBSM - Display Cancelled Material Documents
    MMBE - Stock Overview
    MD07 - Current Material Overview
    MR51 - Material Line Items
    MRKO - Settle Consignment/Pipeline Liabilities
    MB5T - Stock in transit CC

  • Opening stock for stock provided to vendor

    Hi Gurus,
    I m trying to get opening stock for stock at subcontracter. I m using 0TOTALSTCK in the Query and I'm getting wrong values as compare with MB5B. I dont know how to show the opening stock and closing stock in the Query for this special stock (the indicator is "O").
    MB5B is showing opening stock when you select the special stock and enter the date, but in my Inventory Cube and Query i see something else. I checked the initilisaiton and movements in the cube, everything is OK.
    But still my Query is getting wrong values.
    Could you help me to find out?
    Thanks,
    Zeynep

    hii
    In BW cube does not have the field of Opening stock or closing stock as it works on the function module at the background.
    U will get the closing stock in the query designer as the TOTSTOCk field name. Also u have the receipt & issue field there. So u can calculate the Opening Stock figure by using the Formulae & these available fields.
    Thanks
    Neha

  • Valuated Stock to move to Non Valuated Stock

    Dear Gurus
    I am looking into an issue from FI perspective and need your valuable inputs.
    Business Case:
    We have two plants (Plant A & Plant B). Customer would return expired stock to Plant A and these would be kept in Blocked Status as per QM guidelines. These stock are to be destroyed and transferred to Destruction Plant (Plant B) for doing the needful. However since we cannot use plant to plant transfer for block stock, we are left with using 506 & 505 movement type as the only solution for it. However finance would like to have no accounting impact for goods in transit since it has no real value. Hence it wants to writeoff the value (keeping quantitative details for MM intact) at Plant A itself and then trigger the stock movement. Since now the value is zero, it would not trigger accounting document.
    We are working in following restrictions:
    QA Guidelines suggests that we cannot move stock from Blocked to unrestricted just for this purpose
    FI suggests that there shouldn't be by pass from norma standard sap transaction as 505 & 506 is not meant for this purpose
    We need to find a way where we can convert selected stocks of a material code from valuated to non-valuated for this purpose.
    Would be glad to provide any further clarification, should you so desire.
    Appreciate your early response.

    1) You can move blocked stock from one plant to the other if you don't use delivery for the STO
    Stock tranfer order with block stock
    2) If you want to move the goods via delivery from one plant to the other you first have to post the stock from blocked to unrestricted stock type. This is a must, technically.
    I don't think the "QA guidline" should not allow this if you manage the process carefully - "QA guidline" should consider the real world and not prescribe something which is not possible or possible via development if you spend money on it.
    3) Finance should also consider the reality. If the stock is valuated and you transfer it, it may have financial impact.
    Would it be ok for finance to move valuated stock w/o financial impact?
    If you want to have the expired goods in your supplying plant as non valuated, first you should set proper valuation type for them (if you use split valuation, you may have a valuation type like "EXPIRED" with 0 price) or you can do a material to material transfer (from the valuated material to a non valuated material). In my opinion split valuation is better since you won't loose the material number.
    Of course, this will have FI impact in the supplying plant because you are making something of "no real value" from something of "real value".
    If your stock is managed under the "EXPIRED" valuation type, I think you can move it to unrestricted because the valuation type itself clearly shows that the goods are of wrong quality.
    The stock transfer should have no FI impact if the stock will be received as non valuated in receiving plant.
    Just one idea.

Maybe you are looking for