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.

Similar Messages

  • 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

    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

  • 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

  • Enhancement of report Inventory Status and Inventory in Warehouse Report

    Hello,
    it will be a great help if preferred vendor will be displayed in the stardardreports "Inventory Status" and "Inventory in Warehouse Report".
    Kind Regards,
    Sabine Lux

    Hi Sabine,
    Check here: /thread/2073266 [original link is broken]
    Thanks,
    Gordon

  • Authorization Issue for Inventory in warehouse report

    `Hi All
    I face a issue in giving authorization for a single report to a user in the Inventory reports. The report is Inventory in warehouse report.
    Can u please tell what are the preliminary authorizations to be set for the user to execute the report. The thing is he should not be able to see the item cost and Last purchase prices.
    Thanks... Marikannan

    Hi,
    I am not sure if the authorization for such report is available. I just suggest you to check if form settings icon is able to access or not. if you can open the form settings, I think you can set authorization to be no authorization to access the form setting for certain users.
    Rgds,

  • Subtotal and total with ****  In Inventory in Warehouse Report

    Hello everyone!
    I'm running the Inventory in Warehouse Report and noticed that for some warehouses it does not calculate the sum for the Total columm, instead of that it shows ****. Therefore in the Grand Total the same *** is shown.
    How can I fix this? any ideas?
    Thanks in advance,
    Juan

    Hi Juan,
    Are there items with different currency in the database?
    Asterisks appear as a summary e.g. in the total column, when 
    there are figures in different currencies in one report.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Inventory in Warehouse Report PLD

    Hi,
    I am trying to revise the print template for this report (Normal display). We want to show all 11 of our warehouses, but the default system layout only shows up to the first 5 warehouses. In addition, the fields which show the warehouse code and item quantities in the generated report are shown as blank text fields in the layout design.
    How can I create additional columns for the remaining warehouses? Thanks.

    Hi Allen,
    Since you have 11 warehouses to display, I am afraid it is better by a query or Crystal report. Even XL Reporter may not be able to create this report without problem.
    Thanks,
    Gordon

  • Inventory in warehoue report

    Hi all.
    I have a question regarding the inventory in warehouse report/
    A client ran the report and noticed that some values were USD, however the local currency is rands and all the amounts should be converted to rands.
    There are a few items however that has totals in USD.
    previously all amount were in rands..
    does anyone know what could be the reason?
    Thank you.
    Jerusha

    Hi,
    Please update us with the Version and patch the issue is happening?
    Are the Items appearing twice or the Item is appearing only once?
    Is the issue occuring after any upgrade? If yes, from which verison and patch?
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • 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

  • Can we add new field to inventory Warehouse Report

    I have to add new field name "Desc in Frgn from Item master data" to   inventory Warehouse Report
    How can I do that

    Hello,
    IN print out (PLD) yes, in SAP b1 form not possible.
    Regards
    János

  • Difference Between Inventory Audit Report & Inventory Positing List Report

    Dear all,
    Please tell me the difference  between these twoInventory Audit Report & Inventory Positing List Report, Because I find difference , when observe Closing and Opening Stock Quantity on 1.4.10 audit report showing 610 units but on 1.4.10 posting list showing 973 units of opening stock
    Why so happen ? can anybody explain............
    Thank you
    Komanduri

    Hi......
    Please read below.....
    Inventory Audit:
    This report provides an audit trail for the posted inventory transactions in the chart of accounts.
    You use this report to make comparisons between the accounting view (inventory balance accounts)
    and the logistics view (inventory value displayed by the audit report). The report explains the value changes in inventory accounts.
    Inventory Posting List:
    The inventory posting list provides an overview of all postings in the system, based on various selection criteria and sort options. You can generate a report for specified warehouses based on one of the following selection criteria:
    Item
    Business partner
    Other: Enables you to specify a selection criterion such as warehouse or sales employee.
    Inventory Transfer:
    You use this function to transfer inventory from one warehouse to another. An inventory transfer can also be carried out as a consignment for a customer. The items are then stored in the customeru2019s warehouse and are sold from here.
    You cannot change the table after it has been added. If you display an existing inventory transfer later on, none of the fields in the table are active.
    You can, therefore, only correct an inventory transfer table that has not been entered correctly by entering a compensatory goods movement later.
    For more detail please refer help file in SAP.....
    Regards,
    Rahul

  • Physcial inventory and varience report.

    DEAR Sir,
    Please advise me abt physcial inventory and varience report.

    Hi,
    Comparing the company's book keeping quntity of material with sap material quantity and if any differencesbetween book keeping  quantity and sap quantity used to post them in sap.
    Steps in Physical inventory;
    Create the Physical inventory document(MI01)
    Enter the count (MI04)
    Post the difference(MI07)
    The inventory procedures are...
    ANNUAL INVENTORY, CYCLE COUNTING, CONTINUOUS INVENTORY, ZERO STOCK CHECK, SAMPLE BASED PHYSICAL INVENTORE.
    THEVariance report:
    The variance needs to be analyzed for the difference in the qty at book and physical level. Once it is analyzed the changes can be done in the count sheet for Qty and UoM.
    The Finance department to check and reconcile the difference between the physical and book count runs this report.
    If required based on the variance, recount is initiated and the physical count checked before investigating and clearing the difference.
    To run the variance report in WM level : Logistics-Logistics execution-Information system--warehousePhysical InventoryWith Bin Inventory Management-Different list of open Inventory Documents
    Transaction Code LX17
    The Finance department to check and reconcile the difference between the physical and book count runs this report.
    If required based on the variance, recount is initiated and the physical count checked before investigating and clearing the difference.
    To execute LX17, Enter
    Warehouse number and Inventory record.
    I hope this will give more clarity to you. Thanking you.

  • Inventory on Hand Report - Using Union ALL - need two fields to be part of the group

    Hi all,
    I have created an Inventory "on Hand" Report that takes the Current Inventory from the Item Entry table and the Sales from Unposted Sales Line table and Transfers in and out from the Unposted Transfer Line table.  I have joined the tables
    using the UNION ALL function. 
    My problem is that the Transfer table has two locations whereas the other tables only have one.  I am grouping on Location code from the Item Entry table which is equivalent to BOTH Transfer from location and the Transfer to.    
    As an example, there are 15lbs of inventory for Product A in Location #1 with a transfer out of 15 lbs.  The Transfer out is going to Location #2
    I don't know how to write the query or set up the group so that it recognizes both the Transfer to and the Transfer From fields
    I want the report to look similar to the one below but I can only get it to show one of the locations.  Is there some way to use the Union function and have one field in the first table be or equivalent to two fields in another?
    Location   Code
    Item No.
    Lbs
    Sales Orders
    Transfer Out
    Transfer In
    Available   Inventory
    Location #1
    Product A
    15
    -15
    Location #1
    15
    -15
    Location #2
    Product A
    15
    15
    Location #2
    15
    15

    Hi Igor,
    You can get a custom sort order added to your IP column without the need for a second column.
    Consider that the sorting is done strictly left-to-right across a string in the column. The string can be any valid HTML content. So, you could wrap your string within, say, a SPAN tag and add an attribute to that tag that contains the sort order you need before the text that is displayed to the user. As long as the attribute is correctly structured (that is, all instances are of the same length, for example), then sorting will work correctly. For example:
    SELECT
    '<span title="' || PAD_IP_ADDRESS(IP) || '">' || IP || '</span>' Y
    FROM ...Now you need to ensure that the PAD_IP_ADDRESS() function returns the correct values. In IP addresses, you have anything from "0.0.0.0" to "255.255.255.255". To get them to sort "numerically", you need to pad one or two digit numbers to get three digit numbers for each value - so, "0.0.0.0" becomes "000.000.000.000". You could create a function to do this - something like:
    CREATE OR REPLACE FUNCTION PAD_IP_ADDRESS
      pIP IN VARCHAR2
    RETURN VARCHAR2
    IS
      vIP VARCHAR2(15);
      vTEMP APEX_APPLICATION_GLOBAL.VC_ARR2;
      vSEP VARCHAR2(1);
    BEGIN
      vSEP := '';
      vIP := '';
      vTEMP := APEX_UTIL.STRING_TO_TABLE(pIP,'.');
      FOR x IN 1..vTEMP.COUNT
      LOOP
        vIP := vIP || vSEP || TRIM(TO_CHAR(TO_NUMBER(vTEMP(x)),'000'));
        vSEP := '.';
      END LOOP;
      RETURN vIP;
    END;The output from this would look something like:
    &lt;span title="001.001.001.001"&gt;1.1.1.1&lt;/span&gt;
    &lt;span title="002.255.255.255"&gt;2.255.255.255&lt;/span&gt;
    &lt;span title="010.001.199.098"&gt;10.1.199.098&lt;/span&gt;Andy

Maybe you are looking for