Stock in Warehouse Report

Hi Guys,
I have this query to show the stock in our warehouses, unfortunately, if I have stock in 2 warehouses it just shows the total of all ware houses, can someone advise how show the stock in another warehouse as well, with the exception that I do not want a list showing all items that are 0 stock balance (following the premise that all items can exist in all warehouses) - I just wish to show items in stock only.
Any help always gratefully received.
SELECT T2.WhsCode, T2.WhsName, T0.DfltWH, T0.ItemCode, T0.ItemName, T0.OnHand, T1.Counted, T0.LstEvlPric
FROM OITM T0
INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode AND T0.DfltWH=T1.WhsCode
INNER JOIN OWHS T2 ON T1.WhsCode = T2.WhsCode
WHERE T0.OnHand > 0
Kind regards
Sean Martin
Arrow Industrial Group Limited

Hi Sean.......
try this......
SELECT T0.[ItemCode], T2.[ItemName], T1.[WhsName], T0.[OnHand], T0.[Counted] FROM OITW T0  INNER JOIN OWHS T1 ON T0.WhsCode = T1.WhsCode INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode WHERE T0.[OnHand] >0
Regards,
Rahul

Similar Messages

  • Stock in warehouse report - value not displayed.

    In the "Stock in warehouse report" I selected this option: Price source = Last purchase price.
    In the report, for an item, the value in the field "Item Price" is not displayed.
    This item has a good receipt (with value) in this year.
    Why the value is not displayed?
    Thanks
    Paolo

    Paolo...
    1.  Did that receipt get paid for with an AP Invoice (when last purchase price is updated)?
    and
    2.  Did you run an Inventory Audit Report before running the Inventory in Warehouse Report?
    To see this maybe you can go into SAP OEC DEMO and create a new item, then create a PO - run the two reports, copy to Goods Receipt PO - run the two reports, and then copy to AP Invoice - run the two reports.  You will see the difference.
    Accounting point - an item is not really valued until the AP Invoice is processed.  Only then do you know what the actual purchase cost is for a product.
    Regards - Zal

  • Stock in Warehouse Report - Printing Warehouse Name

    Hi all,
    My client is printing the Stock in Warehouse Report and wants to pull in the warehouse name in the report.
    They are only ever generating this report for 1 warehouse.
    When I look at the standard template I cannot see how even the waerehouse code is pulled in to the report.
    The only fields I see are text fields.
    I have tried adding a database field related to or linked to another field but I cant seem to get it to work.
    Any advice greatly appreciated.
    Thanks,

    I believe you are talking about Inventory in Warehouse Report
    Try the following:
    Add a Formula field and check
    Field_045 == "Whse:"
    Add a database field as you seem to have done and select the Warehouse Name from the OWHS table and set the
    Link to: on the above formula field and
    Relate to on Field_046  ...................................this field is the Item Description field where the Warehouse Code is displayed
    Check this out.
    OR
    If it only one warehouse Add a text field and hardcode the Warehouse Name

  • Inserting Totals on the Stock in Warehouse report

    Hi all
    I want to knwo what code or formula must I use to total the stock in warehouse report .
    This report must print each warehouse report on separate papers.
    Thanks

    Hi All
    Managed to sort out the totaling had to insert formula ColSUm

  • Adding field to Stock in Warehouse Report

    Hi Experts,
    My customer would like to add the field "Description in Foreign" language to the Stock in Warehouse report.
    When I look at the existing fields on the report, they are not of the Source Type "Database" but Free Text !  Does this mean the report cannot be amended?
    I have tried to add the field regardless, but the table OITM is not available from the Database dropdown list.  I find this odd as it is a Stock in Warehouse report.
    Please help.
    Greig

    hi greig,
    Have u entered item description in foreign language in item master ?
    You can add UDF to standard reports like Stock in warehouse report ?
    Reports are linked with PLD dynamically,U can't link datbase field in PLD template,Report is linked internally with free text.
    Better develop query based report(ie. Query Print Layout designer).
    Jeyakanthan

  • Extra field on Stock In Warehouse Report

    Hi Experts,
    Is it possible to add an extra field to the Stock In Warehouse Report?  I want to show the Item's Sales Weight, but when I add the field, the weight of the first item is just repeated for every item.
    I have had to use Alt & Shift to access the table OITM table.
    Thanks
    Greig

    hi greig,
    Have u entered item description in foreign language in item master ?
    You can add UDF to standard reports like Stock in warehouse report ?
    Reports are linked with PLD dynamically,U can't link datbase field in PLD template,Report is linked internally with free text.
    Better develop query based report(ie. Query Print Layout designer).
    Jeyakanthan

  • Inventory in warehouse report

    Hi all,
    Let's say I'm on january 25th and I'd like to run the Inventory in Warehouse Report  as per january 10th. Is there a way to acess the code of the report to run the query for a specific date (not for the current date as I'm getting it) ?
    Any idea would be appreciated.
    Best regards,

    Douglas,
    To get the code of this report you will have to use SQL Server Profiler.  Just start the service before trigerring the report and stop it there after and you should get the SQL.
    Another better way, would be to create a report by querying the OINM (warehouse journal) table. This table records all warehouse transaction and also has the date.
    <Font Color="Blue" Size=3>To understand the OINM table run this query
    </Font>
    SELECT T0.TransNum AS 'Transaction Number', T0.DocDate AS 'Posting Date', T0.ItemCode AS 'Item No.', T0.Dscription AS 'Item Description', T0.InQty AS 'Receipt Quantity', T0.OutQty AS 'Issue Quantity', T0.Warehouse AS 'Warehouse Code', T0.Balance AS 'Stock Balance' FROM  [dbo\].[OINM\] T0  WHERE T0.ItemCode = 'A00001' ORDER BY T0.TransNum
    <Font Color="Blue" Size=3>To get the stock by date, use the query below
    </Font>
    SELECT TOP 1 T0.ItemCode AS 'Item No.', T0.DocDate, T0.Balance AS 'Stock Balance' FROM  [dbo\].[OINM\] T0 
    WHERE T0.DocDate = '[%0\]'
    ORDER BY T0.TransNum DESC
    Note I have added '[%0\]' parameter for date selection presuming you will use this within SAP.
    Suda

  • SAP MM-IM & WM stock in one report

    Hello Everybody,
    We are operating SAP MM & WM in two different server and our client requirement is to see the MM-IM stock & WM stock in one report.Pls let me know how it is possible.
    Thanks,
    AC

    Hi
    Can you explain with more details?
    Both servers are SAP or third part Warehouse?
    If it is SAP you can not implement WM without IM.
    you have standard report available to compare IM&WM and also you can switch between IM&WM stocks
    [http://help.sap.com/saphelp_470/helpdata/en/c6/f83c484afa11d182b90000e829fbfe/content.htm]
    Karthik

  • Similar to Inventory In Warehouse Report

    Hai To All,
              I want to create report similar to Inventory In WareHouse Report.How to do that.....???? Does anyone have idea about that???How to write query like creating subtotal??????????/
    Regards,
    Anitha

    Hi Anitha,
    To Create a Query like Inventory In Warehouse Report big challenge.
    If you want to create a query have a subtotal inside, you must have to set up a column to store the sorting values. The MS SQL sorts 0.....9..A....Z, so we will use this (of course in alfabetical order at nvarchar type columns)
    For example:
    i want to display warehouse information, itemcode, stock, average price, stockvalue in a Query, and want to create subtotals by warehouse.
    Query Source:
    select T0.WhsCode, T0.ItemCode, T0.OnHand, T0.AvgPrice,
    T0.AvgPrice*T0.OnHand as Total FROM OITW T0 where T0.OnHand != 0
    Let's create a composit sorting colum from Warehousecode and itemcode and special sign _ (underscore)
    [whscode]_0_[itemcode] will be the first,
    [whscode]_z_[itemcode] will be the last
    1.st row will be the warehouse code:
    SELECT T0.WhsCode+'_0_', T0.WhsCode, 'Warehouse:'+T0.WhsCode, NULL, NULL,NULL
      FROM OITW T0 Group By T0.WhsCode
    2.nd will normal query with the soring key at the begining
    SELECT T0.WhsCode+'_1_'+T0.ItemCode as SortCode, T0.WhsCode, T0.ItemCode, T0.OnHand,
    T0.AvgPrice,T0.AvgPrice*T0.OnHand as Total FROM OITW T0 where T0.OnHand != 0
    3.rd will the the subtotal of the warehouse
    SELECT T0.WhsCode+'_8_', T0.WhsCode, 'Subtotal of '+T0.WhsCode, NULL, NULL,
    sum(T0.AvgPrice*T0.OnHand) as Total FROM OITW T0 Group By T0.WhsCode
    4.th will be and empty line
    SELECT T0.WhsCode+'_9_', T0.WhsCode, NULL, NULL, NULL,NULL FROM OITW T0 Group By
    T0.WhsCode
    5.th will the the total of sum
    SELECT 'ZZ'+'_Z_', NULL, 'Total', NULL, NULL,sum(T0.AvgPrice*T0.OnHand) FROM OITW T0
    END:
    Now we have everything, let's put inside them (UNION). Be Sure, the normal query is at the first, because the UNION statement will use the column names of it.
    SELECT T1.ItemCode, T1.OnHand, T1.AvgPrice, T1.Total FROM
      SELECT T0.WhsCode+'_1_'+T0.ItemCode as SortCode,
        T0.WhsCode, T0.ItemCode, T0.OnHand, T0.AvgPrice,T0.AvgPrice*T0.OnHand as Total
        FROM OITW T0 where T0.OnHand != 0
    UNION ALL
      SELECT T0.WhsCode+'_8_', T0.WhsCode, 'Subtotal of '+T0.WhsCode, NULL, NULL,
        sum(T0.AvgPrice*T0.OnHand) as Total FROM OITW T0 Group By T0.WhsCode
    UNION ALL
      SELECT T0.WhsCode+'_9_', T0.WhsCode, NULL, NULL, NULL,NULL
        FROM OITW T0 Group By T0.WhsCode
    UNION ALL
      SELECT T0.WhsCode+'_0_', T0.WhsCode, 'Warehouse:'+T0.WhsCode, NULL, NULL,NULL
        FROM OITW T0 Group By T0.WhsCode
    UNION ALL
      SELECT 'ZZ'+'_Z_', NULL, 'Total', NULL, NULL,sum(T0.AvgPrice*T0.OnHand) FROM OITW T0
    ) T1
    order by SortCode
    Regards,
    J.

  • Benefits of SAP Business Warehouse Reporting compared with the Query-tools?

    Hello experts,
    I've been creating reports with SAP Query tools, but been faced with few problems. First of all, there are restricted possibilities in terms of joining tables, and thus I cannot include all the data required for the report.
    One solution for this would have been to create separate queries and join the data together in Excel. The problem with this is that there exists no common field that would make sense as for a selection criterion. If the selection criterion is different in different queries, there is the danger of combining false data together, which would eventually result with distorted data. 
    So I was wondering, could anyone briefly tell me if SAP Business Warehouse reporting would solve these problems? And what other benefits would it provide compared with the SAP Query? I'd urgently need to know if it would be a beneficial investment for the company, since I haven't found solutions for the problems occurred in the creation of reports.
    Thank you in advance for you help!
    Maria

    The answers are yes - and thousands of companies have gone down this route
    Puttingin BW is a strategic aim of the comapny and not to be thought about and discussed in a BI forum such as this
    The costs of implementation and hardware will no doubt make your eyes water.
    To be quite honest SAP BI is a "no brainer" as most of the new e-SOA and new R3 modules reply on BW for their reporting needs

  • Stock value and report

    Hi,
    how determing <b>stock value with reports</b>?
    Best regards

    Hi,
    There are quite a few standard reports which will give you the stock value report, you can try
    MC.1 to MC.9 (gives you various stock value analysis reports), MMBE, MB5W etc.
    Alternatively you can extract this data from MARD table.
    If you are looking for a specific report, please let us know the same & we can be more precise in the output.
    Hope i was able help you on this issue.
    Regards,
    Vivek

  • Stock Transfer Order Report

    Hi,
         How to develop a Stock Transfer Order report. I also want to track the cost of transfer from one plant to another. Plz help.

    Hi,
    First fetch the data from LTAK header table.   Based on this table you can
    get the line items from LTAP table.  You can have the list of all open TO's in this table.  Based on the Plant (Werks) you can fetch the data from EKPO for STO report.
    Reward if useful.....

  • MAP and Total stock in 1 report

    Hi,
    For one of the reporting requirement i need to show Moving average Price & Total stock in single report. MAP is saved in cube 0COPC_C04 and Stock in cube 0IC_C03.
    So i created a multiprovider on them. My report layout is bel;ow
    Material   Plant   Storage location MAP total stock
    Issue is that MAP is stored only at MAterial level and Plant level but not at storage location level.
    and stock is at all level.
    I am getting output like this:
    Material   Plant   Storage location MAP  total stock
    MAT1      PL1    #                          10     -
    MAT1      PL1     ST1                     -       20
    MAT1      PL1     ST1                     -       30
    User wants that MAP is same at different storage locations in a plant so MAP value should be repeated even if its same.
    MAT1   PL1    #        10  -
    MAT1   PL1     ST1   10    20
    MAT1   PL1     ST1   10    30
    How can i achieve the same....
    Thanks
    Dipika

    You could create a characteristic hierarchy with Plant as the parent node of storage location.
    Or create a structure in the query and define a cell restriction to keep the Plant MAP value against the Storage Location cells.

  • How to include the UDF of items master data into PLD (Inventory in Warehouse Report (Detailed))

    Hi,
    Is there a way to include the UDF in the items master data into the <<Inventory In Warehouse Report (Detailed)>> PLD?
    I checked the default layout and found out all the column source type is "free text" and the content is #Item, how do I know the value of the UDF?
    Thanks

    Hi,
    Some of the standard reports are hardcoded in sap. Not possible to add UDF field in PLD.
    Also refer this thread Variables -  Sap business one
    Thanks & Regards,
    Nagarajan

  • Inventory in warehouse report value does not match balance sheet account

    Dear experts,
    When I run the inventory in warehouse report, the value (using last purchase price) does not match the inventory finished goods account. Can you please advise why?
    Thank you for any advice.
    Jane

    Dear Jane,
    The only report for inventory to link to financial statement would be Inventory Audit Report.
    All other reports are just for your convenience. They are not financial based.
    Thanks,
    Gordon

Maybe you are looking for

  • Dynamic Dynpro Creation using RPY_DYNPRO_INSERT

    Hi there, Did anyone of you already worked with this function and could provide me some information about the following points? 1. How do I have to fill the CONTAINERS and FIELDS_TO_CONTAINERS tables to let the Dynpro show me e.g. a text field with t

  • SQL Express 2012 SP2 Offline Install Available?

    We have a customer where SQL Express 2012 SP2 is needed for an application (the application is not yet validated for SQL Express 2014). The computer for this application is not connected to the internet (Win7x64). Is there an install package for this

  • Replacement for  FM 'CUD0_GET_CONFIGURATION'

    Hi all, I am upgrading SAP from 3.1I to ECC 5.0. I am getting upgrade error that 'CALL FUNCTION NO LONGER AVAILABLE IN TARGET SYSTEM' for FM 'CUD0_GET_CONFIGURATION'. Can anyone suggest the equivalent FM in ECC 5.0 version. thanks Rakesh

  • IOS 5: Completed reminders still show up in Notification screen

    My iPhone 4 shows completed reminders correctly in the Reminders app, that is to say, in the Completed tab. However, the completed reminder still appears in Notifications, when I swipe my finger down, even though the reminder is completed. That can't

  • CS3 upgrade installing problems

    My computer is a Toshiba A200 2046MB 32bit OS. I am using Windows Vista. I am trying to install CS3 and after I have authorised Vista to proceed with the installation the "Adobe Setup" window flashes onto my screen for 2 or 3 seconds before disappear