Stock report warehouse wise for a particular batch

Hi all,
How do you find out a stock report warehouse wise for a particular batch along with the same batch items sold to whom and with what quantity?
Thanks
SV Reddy

Hi SV Reddy
pls find the query for stock report
Select X.DocDate, X.ItemCode,
((Select isnull(sum(InQty-OutQty),'0')From OINM T0 Where T0.ItemCode=X.ItemCode  And
(T0.DataSource='I' or T0.DataSource='N')  And T0.DocDate < X.DocDate)) As [OpeningStock],
IsNull(sum(X.InQty),0)As[Received Qty],IsNull(sum(X.OutQty),0)As[Consumed Qty],
((Select isnull(sum(InQty-OutQty),'0')From OINM T0 Where T0.ItemCode=X.ItemCode  And
(T0.DataSource='I' or T0.DataSource='N')  And T0.DocDate < X.DocDate)+
(Select isNULL(sum(T0.InQty),'0')From OINM T0 Where T0.ItemCode=X.ItemCode And T0.DocDate<=X.DocDate And
(T0.DataSource='I' or T0.DataSource='N')  And T0.DocDate = X.DocDate)-
(Select isNULL(sum(T0.OutQty),'0')From OINM T0 Where T0.ItemCode=X.ItemCode And T0.DocDate<=X.DocDate And
(T0.DataSource='I' or T0.DataSource='N')  And T0.DocDate = X.DocDate))As [ClosingStock]
FROM OINM X Where ItemCode=X.ItemCode And
(X.DataSource='I' or X.DataSource='N')
Group by X.DocDate,X.ItemCode
Order by X.DocDate
regards
Jenny

Similar Messages

  • STOCK REPORT FIFO wise

    Hello to ALL
    I want stock report FIFO WISE
    my Item valuation method is FIFO & Purchase & sale by batch wise,i want report to show that which quantity is remaining & what is the cost for that item
    Suppose i purchase I01 qty 2 Price 10 & after i purchase I01 Qty 2 price 15
    ie i have stock of I01 is 4 but i want it show bifurcated with coming price ie
    ItemCode   Qty   Price   STCK VALUE
    I01              2       10         20
                       2       15         30
    If i sale I01 1Qty then i have total stock qty is  3 then report must show that
    ItemCode   Qty   Price   STCK VALUE
    I01              1       10         10
                       2       15         30

    hi Jaykumar,
    use Inventory Audit Report instead. follow this path
    Inventory -->> Inventory Report -->> Inventory Audit Report
    regards,
    Fidel

  • Stock Report Date Wise

    Dear All
            I am devlop new Stock Report Date wise
    my output follows
    Material    Plant   Storagelocaton   Saleorder OPenning stock     Closing Stock     Total
    Which Table stored that details?
    how will calculated?
    Thanks and Regards
    Suresh

    hey
    i think the following tables
    will be helpful for the report:-
    1>MARA
    2>MBEWH
    3>MSEG
    4>VBRP
    hope this will help
    good luck
    harry.

  • Last Purchase price Warehouse wise for given date

    Hai all....
                      I Want query report for Last purchase price for all items, warehouse wise for given date, i tried following query
    SELECT
    T10.ItemCode,
    (Select i1.Itemname from  oitm i1 where i1.itemcode = T10.[ItemCode]) as 'ItemName',
    T10.[Whscode],
    (SELECT T1.[DocDate] FROM OPDN T1 where  T1.[DocEntry] = max(T10.[DocEntry])) as 'Doc_Date',
    (SELECT T1.[DocNum] FROM OPDN T1 where  T1.[DocEntry] = max(T10.[DocEntry])) as 'GRPO_NO',
    (SELECT case avg(T2.[Rate]) when 0 then avg(T2.[price]) else (avg(T2.[price]) * isnull(avg(T2.[Rate]),1)) end  FROM PDN1 T2 where  T2.[DocEntry] = max(T10.[DocEntry])
    and T2.Itemcode = T10.[ItemCode]) as 'Unit_Price',
    (SELECT isnull(avg(T3.[Rate]),0) FROM PDN1 T3 where  T3.[DocEntry] = max(T10.[DocEntry])
    and T3.Itemcode = T10.[ItemCode]) as 'CurrencyRate',
    (Select isnull(max(OP1.Docnum),0) from OPCH op1 where op1.Docentry in
    (SELECT T12.[trgetEntry] FROM PDN1 T12 where  T12.[DocEntry] = max(T10.[DocEntry]))) as 'Invoice_No'
    FROM PDN1 T10 
    INNER JOIN OPDN T11 ON T10.DocEntry = T11.DocEntry and T11.[DocType] = 'I'
    where T11.Docdate <= '[%0]' and t10.targettype <> 21
    GROUP BY
    T10.[ItemCode],T10.[Whscode]
    this query working good but problem in this query is ,when the user put back dated entry means this report will show wrong value,bcz i write this query based on MAX of docentry please help me to solve this issue
    Edited by: Prasanna s on Mar 27, 2009 5:49 AM
    Edited by: Prasanna s on Mar 27, 2009 8:00 AM

    Hai ...
    please help me in this query,my question is not clear or??

  • Reg - Stock for a particular Batch

    We have a stock entry in the unrestricted use against the batch record.
    For Batch record 29May.... 96 CS
                                29MAY....  0 CS
    We are not able to do any transaction (ie access the qty against that particular batch record). The reason is that the particular batch number has a lower case alphabets (29May....) during the transactions whenever we input a data on a particular field it gets converted to higher case immediately before execution and it returns a error that there is a deficient of the input qty for the batch record with the higher case.
    Can you suggest any method to get rid of that record from the system as it is not actually available.

    so you wrote your own interface?
    the only way would be hard table updates (deletion and recreation) in  table MCHA, MCH1 and MCHB.
    Probably as well updates in MSEG and the tables of the production order.

  • Pivot sales analysis report by day for a particular month - sap has by month and annual

    Hi guys,
    I'm trying to come up with a pivot sales analysis query report for items for the month by displaying individual days sales, sales amount, gross profit, gross profit %
    e.g
    Month of March
    1st, 2nd, 3rd, 4th.....31st march. In sap their is a sales analysis report by
    days of the month
    1st March
    2nd march
    31st march
    item no
    item description
    Qty
    sale amount
    gross profit
    gross profit%
    qty
    sale amt
    gross profit
    gross profit %
    Qty
    sale amt
    gross profit
    gross profit %
    sugar
    20
    20,000
    5,000
    25
    30
    30,000
    10000
    33.3
    40
    40000
    15000
    37.5
    n02
    n03
    no4
    Regards Brian

    Hi,
    Due to pivot limitation, not possible to get above data in pivot table.
    Try this simple query which matches system sales analysis by item.
    SELECT t1.itemcode as Itemcode, T1.[Dscription] as 'Item description',  sum(T1.[Quantity]) as Qty, sum(T1.[LineTotal]) as 'sales amount', sum(T1.[GrssProfit]) as 'Gross Profit'
    FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE month( T0.[DocDate]) = '1' and year( T0.[DocDate]) =2014 GROUP BY T1.[ItemCode], T1.[Dscription]
    Thanks & Regards,
    Nagarajan

  • Report Writer - '-ve' for a particular column - VERY URGENT

    Hi
    I have developed a report painter report which has 4 columns.  Out of 4 columns, I have 2 columns which are based on formulae.  Irrespective of the result, I need to display these 2 column values either "+ve" or "-ve". 
    Can anybody pls help me out in this regards.
    IT'S VERY URGENT.

    Murali,
    Thanks for your response.  I think i could not explain my problem clearly.  Let me explain now.
    Here is the sample output of my report painter report.
    PLAN (P)     ACTUAL (A)    VARIANCE (C = A - B)      VARIACE % ( C/A *100 )
    254              245                           9                              3.67
    245              254                          -9                             -3.54
    -245              254                       -499                          -196.45
    245             -254                        499                          -196.45
    If you see the output for 3rd and 4th columns, some values are +ve and some values are -ve.  But i want output as follows:
    PLAN (P)     ACTUAL (A)    VARIANCE (C = A - B)      VARIACE % ( C/A *100 )
    254              245                           9                              3.67
    245              254                           9                              3.54
    -245              254                        499                           196.45
    245             -254                        499                           196.45
    Pls help me out.

  • Rebate accruals report customer wise for a financial year

    Dear Gurus,
    For your kind attention, i am here with submitting my requirement for resolution. Can any one let me know how to have total rebate accruals  amount against each customer ( in a sales are a)in a financial year. ( even settled rebate agreements -accrual amount also to be included in the report) .Awaiting your earliest response.
    Thank you in advance.
    Krishna

    Hi
    Try with tcode FBL3N for the accrual account. See if any field gives you the option to filter by customer. If it's not possible, populate any field for customer. See Note 301077 - User exits for the interface to accounting, EXIT_SAPLV60B_005.
    I hope this helps you
    Regards
    Eduardo

  • MB5B Report table for Open and Closing stock on date wise

    Hi Frds,
    I am trying get values of Open and Closing stock on date wise form the Table MARD and MBEW -Material Valuation but it does not match with MB5B reports,
    Could anyone suggest correct table to fetch the values Open and Closing stock on date wise for MB5B reports.
    Thanks
    Mohan M

    Hi,
    Please check the below links...
    Query for Opening And  Closing Stock
    Inventory Opening and Closing Stock
    open stock and closing stock
    Kuber

  • Stock for the particular day - Unrestricted, Blocked, Quality Inspection

    Hi,
    There is a standard transaction MMBE, where we can see the current stock values with all specifications like unrestricted stock, blocked stock, reserved stock, quality inspection stock....etc.,
    in the same way I would like to have the stock of the material for the particular day.
    Is there any standard transaction available?
    If it is not available, please let me know how to arrive the stock(Logic) to prepare a report for that.
    -Sarasija

    Hello,
    MB5B gives you the opening & closing stock on a particular date. But i dont think it gives you the detailed breakdown of the stock (viz., Unrestricted, Blocked, Quality Inspection). Correct me if ia m wrong.
    @OP: FYI the current stock (period-wise) is stored in the tables MARD & MCHB. But none of these give you the current day stocks.
    BR,
    Suhas

  • No data in Application failure Analysis report for a particular application alone.

    Dear All, 
    We are not able to get the data in Application Failure Analysis report from Appadvisor for a particular application(say ABC) alone, whereas it works fine for different application. Also,we could get the data from other reports(such
    as Application status,Problem distribution analysis,etc) for the same application(ABC). PFB snapshot for your reference.
    Thanks in Advance.
    Regards,
    Rajesh Kumar C

    Hi,
    Is there any error message when you run Application Failure Analysis report for the specific application?
    Does this application have any failure alerts?
    You may also look into operation manager even logs to check is there any errors or warnings.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Paisa Round Off - GL Account  for Warehouse wise

    Dear All,
    Please guide me how to configure the Paisa Round Off - GL Account  determination for Warehouse wise
    ( for Different Warehouse ).
    Thanks in Advance.
    - Rajesh

    Check these link which explains Rounding in B1
    [https://websmp201.sap-ag.de/~sapidb/011000358700000243182007E/CW12_Learn_about_Rounding.wrf]
    [https://websmp201.sap-ag.de/~sapidb/011000358700000243172007E/CW12_Learn_about_Rounding.pdf]

  • Deactivate Warehouse Managment for Plant

    Dear All,
    Please only provide me setting for how to deactivate Warehouse Managment for a Particular Plant
    Regards
    Amey

    Remove the assignment at this node
    go to SPRO > Enterprise structure > Assignment > Logistic Execution > Assign Warehouse to plant / storage location
    Make stock to Zero before make this change

  • Stock Report, Batch Wise

    Hi Gurus,
    I have to prepare "Stock Report Batch Wise" in BI for SD module. May be for the finished goods. For this in BI which data Cubes/ data sources I can use? Do Std MM BI content Cubes/data sources help?
    My question do MM business contain information on finished stock, stock in transit, stock-yard inventory from Sales & distribution module point of view??
    Regards,,,

    Hi,
    Please see this link
    http://wiki.sdn.sap.com/wiki/display/BI/ReportsgeneratedusingdifferentDatasources
    it ll help u
    Regards,
    Kavita C.
    Edited by: kavita on Feb 8, 2012 8:34 AM
    Edited by: kavita on Feb 8, 2012 8:34 AM

  • Stock report with value and qauntity for given date not month wise

    Hi gems,
    can any body give me the standard report for Stock value and qauntity for given date not month wise at storage location level

    Hi
    check the report S_P00_07000139 with the option inventory and raw material report- detail and selection date (from, to date same). List will give opening & closing balances with goods movment and their values.
    Thanks

Maybe you are looking for

  • My iPad2 does not show it's position on a map when using find my iPad on mobile me

    Installed find my iPhone on my iPad2 and my iPhone 4 however the iPad will not show up on a map whereas the iPhone does. iPad is wifi only and is connected to my wireless network. I have registered and even sent test notification to the iPad which al

  • IMac Turn's off Randomly!!

    I bought my iMac back in october. It came with the upgrade CD of MacOS X which i installed. For the past 3 weeks or so my imac has been turning off randomly without any warnings! The screen just goes black and i have to press the power button to turn

  • After I boot my computer, I have to reinstall all of my addons

    When I reboot my computer, I get 12 tabs asking me if I want to install each of my addons. Does not happen when I shut down firefos, just when I reboot windows. I have windows 7 and the latest firefox. Actually this has been going on for the last 6-9

  • Activity description in CN48N (activity confirmation report)

    Hi, My client wants to get weekly or monthly report of acivity confrmation. We want to get one report of all activities of project. Report in CN48N is very close to the requirement but it shows only activity item no. like 10,20 but not showing the fu

  • Thunderbolt Firmware Update 1.0 strikes again...

    So I ran SU on my Macbook Pro and it detected that TB F/W 1.0 needs to be installed. I thought that was odd since it's an old update that I know I applied back in July 2011. I installed it. Seemed like it took. Checked SU again and it's still there.