Query for Inventory Audit Report

hi experts,
I would like to create a inventory report  using Crystal Reports 2008 which looks exactly the same as Inventory Audit Report in SAP Business One 2007A
Report requirement:
List down all the items with its Item Code, Description, Quantity and Item Cost (easy right?)
The only condition:
I would like to filter my report by FromDate and ToDate.
For example:
Current date 15.07.2009
If I run the report by putting in 01.01.2009 to 31.01.2009, the result will show me:
item, with its respective info and most importantly the Quantity and Item Cost as at 31.01.2009 (similar to closing stock)
Any query for above report?
Please help.
Thank you.

Hi,
It may not be so simple as you are trying to reproduce the historical value.  I believe you have to create a temporary table first.  Or you may use Command feather to get the required data in advance.
Thanks,
Gordon

Similar Messages

  • Can anyone share the query for inventory aging report

    Is there any standard reports for inventory aging in oracle ebs 12.1.3 ....... If not can anyone share the query for inventory aging report

    Hi,
    It may not be so simple as you are trying to reproduce the historical value.  I believe you have to create a temporary table first.  Or you may use Command feather to get the required data in advance.
    Thanks,
    Gordon

  • SBO 2007A PL46 - Inventory Audit Report same warehouse exist for twice

    Hi All,
    Is anyone encounter the same error? As when i trying to generate the Inventory Audit Report for all the warehouses and check the option "Group By Warehouses", i get the results that the same warehouse are appear twice in the report. As for the transactions detail of the warehouse are being split into two portions ... BUT it does not happens to all the items ...
    The thing is when i trying to generate the report for an item with same parameter settings EXCEPT to select only single warehouse, then the warehouse is not being split into two ...
    Anyone have the idea? I had did some researches in SAP Notes, found there is a similar case for the above error, but it is happened to SBO 2007B and being resolve in PL16 and above.. but cannot find any thing for 2007A about this issue...
    Appreciate if anyone of you can provide any feedback on this ...

    Hi,
    Have you checked SAP Note 1415496?  If that applies to your error, it is a bug.
    SAP will deliver patches only for selected releases at its own discretion, based on the business impact and the complexity of the implementation.
    Thanks,
    Gordon

  • Inventory Audit Report with Batch Number

    Hi all.
    I am trying to build a query that similar to the inventory audit report but with batch number. I want to know which batch number of each item is being charged out in deliveries or goods issue and which batch of item is being received. I am using SAP B1 2007A. Following is the query that I used to generate the inventory report (warehouse, itemcode, description, price, opening balance, receipt, issue, closing)  but I don't know where to get the batch number information for it.
    Declare @StrtDate Datetime
    Declare @EDate Datetime
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Group nvarchar(10)
    Declare @Whse nvarchar(10)
    Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >= @StrtDate)
    Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <= @EDate)
    Set @Whse = (Select Max(s3.Warehouse) from dbo.OINM S3 Where S3.Warehouse = 'QA01')
    Select
    @Whse as 'Warehouse',
    a.Itemcode,
    max(a.Dscription) as 'Description',MAX(a.Price) as 'Price',
    sum(a.OpeningBalance) as 'OpeningBalance',
    sum(a.[IN]) as Receipt,
    sum(a.OUT) as Issue,
    (sum(a.OpeningBalance) + sum(a.[IN]) - Sum(a.OUT)) as Closing,
    MAX(a.Price) * (sum(a.OpeningBalance) + sum(a.[IN]) - Sum(a.OUT)) as ClosingValue
    from(
    Select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.Price,
    (sum(N1.inqty)-sum(n1.outqty)) as 'OpeningBalance',
    0 as [IN],
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate < @FromDate and N1.Warehouse = @Whse and N1.ItemCode Between '1C2K50NBAC' AND '7S2N40ADAM'
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription,N1.Price
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.price,
    0 as 'OpeningBalance',
    sum(N1.inqty) as [IN],
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and
    N1.Inqty >0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription,N1.price
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.price,
    0 as 'OpeningBalance',
    0 as [IN],
    sum(N1.outqty) as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and
    N1.OutQty > 0
    and N1.Warehouse = @Whse
    Group By N1.Warehouse,N1.ItemCode,N1.Dscription,N1.price) a, dbo.OITM I1
    where a.ItemCode=I1.ItemCode
    Group By a.Itemcode
    Order By a.Itemcode
    I wish to create the report like Inventory audit report merge with the batch number transactions report.
    Thanks.

    Dear Shobah, it can be possible by some custom report. Try some complementary bi solution for better analysis with SAPB1.

  • Inventory Audit Report

    We used the Inventory Audit Report to determine inventory value ending in a specific period.  It seems to work okay but it lists every single item in our inventory.
    We are looking for more of a summary report.  The only option we have for this is by product category.  However, we want it a little more detailed than this.
    So, is there any way to show the report summarized by our Style #'s?  We have have colors and sizes associated with each style.  We do not need to know total for each color and size.
    We just want the total for each Style #, which is the first four digits of our Item Code.  Theses first four digits are unique for each Style.  Can a Query be built to just show this summary?
    So...would have the following info...
    Style #...Total Items...Total Cost...Most Recent Item Cost
    Can something like this be built?
    Thanks!!!
    Mike

    To backdated the history is the most challenge task to complete.  Please be patient to check the query results from below:
    SELECT  Distinct SubString(t0.ItemCode,1,4) 'Style #', Sum(T0.InQty - T0.OutQty) 'Total Items', Sum(T0.InQty - T0.OutQty) *Avg(Case When T1.LastPurPrc = 0 then t2.AvgPrice else T1.LastPurPrc end) 'Total Cost',  Sum(T0.TransValue) 'Check', Avg(Case When T1.LastPurPrc = 0 then T2.avgprice else T1.LastPurPrc end) 'Most Recent Item Cost'
    FROM  OINM t0
    Inner Join OITM T1 on T1.ItemCode =T0.ItemCode
    Inner Join OITW T2 on T2.ItemCode = t0.ItemCode
    WHERE     T0.DocDate <= '[%0\]' and T0.InQty != T0.OutQty
    Group By SubString(t0.ItemCode,1,4)
    Order By SubString(t0.ItemCode,1,4)
    I have to get data from OINM table in which to get history quantity is fine but may not be able to find the old value easily.
    Thanks,
    Gordon

  • How to show the field Item foreign name in Inventory Audit Report

    Hi
    I can't find the field Item foreign name showing in Inventory Audit Report.I want to link with the table OITM in PDL in order to show Item foreign name in paper report,but whatever I do, it seems doesn't work.
    plz tell me how  to do .thx.
    Edited by: Kam on Mar 13, 2009 10:37 AM

    ALD - Advance Layout Designer
    QLD - Query Print Layout Designer
    You could search the forum for the links to those two tools.
    Thanks,
    Gordon

  • Inventory audit report and Inventory GL balance - Not matching

    Team
    I taken the report from Inventory audit report , this is not matching with inventory charts of accounts balance.
    What may be the error
    How to close old topics, how to provide the points for good suggestion. My points also not increased , what I need to do increase my points.
    Thanks
    Anantha Desai

    Hi,
    1. Please check if any manual JE posted to that GL account
    2. How to close old topics
    There are two way close discussions:
    ----> If you got right answer, you can choose "correct answer" option in replies.
    ----> If you get an idea or suggestions, you can choose "Helpful answers" and need to close manually by choosing "Assumed answered:.
    how to provide the points for good suggestion
    Please choose "helpful answer" and "Like" option for good suggestions
    My points also not increased , what I need to do increase my points.
    Points will be increased, if you provide right suggestions, ideas and answers to other member discussion.
    Refer this document for further details:
    http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why
    Thanks & Regards,
    Nagarajan

  • Inventory Audit Report - Not followed FIFO and Batch management

    I have created an Item say XYZ, with Batch management and valuation methode FIFO.
    Then I have created a batch say 1 with posting of opening balance transaction with posting date as 1st April 2009.
    Now when I post an A/R Invoice with posting date as 19th May 2009 in which I have selected above batch.
    I have also posted some more purchase transaction for same item before 19th May 2009 that is the date of sales invoice.
    Now when I see Inventory Audit Report, system has not picked up the cost column as per Batch selection in A/R Invoice, and also not as per FIFO, but it has followed the system date of transaction for deriving cost as per FIFO.
    Can anybody throw light on this ?
    BR
    Samir Gandhi

    Dear Samir Gandhi,
    Irrespective of posting date you use for document posting, with FIFO Method system will arrange all the inventory posting in layers with First inventory posting will form the base for first inventory movement out and so on
    Example:
    1st Entry:(Opening Balances)
    posting date : 01/04/09    Item : XYZ    quantity : 5   Unit cost price : 100
    2nd Entry: Purchase
    posting date : 01/05/09    Item : XYZ    quantity : 5   Unit cost price : 105
    3rd Entry: Purchase
    posting date :25/04/09    Item : XYZ    quantity : 5   Unit cost price : 90
    Layers created :
    1.    Item : XYZ    quantity : 5   Unit cost price : 100
    2.     Item : XYZ    quantity : 5   Unit cost price : 105
    3.     Item : XYZ    quantity : 5   Unit cost price : 90
    4th Entry : Sales
    Item : XYZ    quantity : 8  
    So here cost of goods sold will be : ( 5x100)+ ( 3x105) = 815
    and it wont be  ( 5x100)+ ( 3x90) =770 if that's what you are expecting
    Regards,
    Mukesh

  • Inventory Audit Report and Inventory G/L Account discrepancy

    Good Day!
    Hi Everybody. I had experienced a discrepancy between the Inventory Audit Report and Inventory G/L Account.
    Before everything else, our client does not have any PO, GRPO. Only A/P Invoice and A/P Credit Memos so there are no difference being posted.
    There were also no transactions posted directly in Inventory G/L Account but from observation, there is a minor difference. This only happened with two transactions in AP Invoice with Negative Quantity.
    The AP Invoice is composed of a single item, the unit price is 180.00 x -58 pcs quantity. Total amount is -10,440.00.
    G/L Account posting is
    Inventory 10,440.00
    A/P                       10,440.00  
    In the FIFO layering, the item cost is 200.00 (based on the current stock value) and the current stock quantity before posting is 80 pcs . Since this is a negative quantity A/P Invoice, it seems that the cost of the item when the transaction will be posted is  200 (based on the current stock value) so when I view the Inventory Audit Report amount, it says the inventory cost/posting is -11,600 (200 x -58).
    But on actual G/L Account, the posting is -10,440.00 from A/P Invoice, that's why the inventory discrepancy occurs. It seems that SAP B1's Inventory Audit Report confuses the FIFO cost posted versus G/L Account's posted based on the document. Since the document is A/P Invoice, SAP B1 assumes that the transaction will post the amount as the additional inventory cost and posting the inventory cost into Inventory G/L Account. However, since this is a negative document, the system is releasing the items, thus, FIFO kicks in. The Inventory Audit Report catches the amount based on FIFO costing. The problem is that the Inventory Audit Report is more accurate than the Inventory G/L Balance.
    Any suggestion to fix this guys?

    HI,
    i'my afraid you're in the wrong place. This is the Chinese forum. Please go to SAP Business One Application for help.
    Best

  • Bug in Inventory Audit Report before upgradation from SAP B1 2004B to 2005B

    Sir,
    We upgraded SAP Business One 2004B to SAP Business One 2005B on 26/05/2007. Earlier we were having SAP B1 2004 in which therer was no Inventory Audit Report function in Inventory Reports. After upgradation if we take Inventory Audit Report, the closing quantity of the stock is shown is correct but the value for negative stock quantity is wrong for period before upgradation i.e.upto 26/05/2007. The difference is exactly double of the stock value of that item. The closing quantity and value is OK if we run the report for the period after upgradation i.e. from 27/05/2007 to till date.
    For e.g.
    If we make A.P.Credit Memo for an item qty.20 value INR 20,000/- based on A.P.Invoice and take Inventory Audit Report, the qty.is posted as -20 but the value is posted as INR 20,000/- but actually it should be INR -20,000/-. That is the value is taken twice of the original value.
    Reagrds,
    Vishal Takte

    Hi Vishal,
    Please contact SAP Support for your problem; I think they should be able to help you to fix the problem.
    Sorry for any inconvenience,
    Frank
    PS: Please note that such "application-related" questions fit best into the "SAP Business One" Forum...
    Message was edited by:
            Frank Moebius

  • Error while running Inventory Audit Report

    Hi All,
    While running the inventory audit report based on posting date, we get the message,'The report returns too many records for this action and may cause SAP Business One to stop responding for a long time or shut down. Do you want to continue?' Continue, cancel (buttons).'
    I have checked SAP Note 1624660 and also  https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=98238470
    however, no correct solution is provided.
    What are the other options that we may use to run this report?? shorten the date range or run by system date??
    Any inputs will be appreciated!!
    Thanks,
    Joseph

    Hi!
    It would be better if you narrow down your selection like,
    More Range of Date with Single Warehouse
    Less Range of Date with Multi Warehouse
    More Range of Date with Single Item Group
    and more....
    I have faced a similar issue on Customer Aging for which SAP Support has replied, SAP B1 is a 32 Bit application and when the virtual memory consumption goes beyond a limit (1 GB) ;SAP will close. And they said  this is the limitation for all 32 bit applications.

  • Difference between G/L Balance and Inventory Audit Report

    Hi All,
            while checking the G/L ledger for Inventory account and the Inventory Audit report, there is a difference between the amounts posted. The closing balance till 31/03/09 is fine but afterwards the balance is not matchin at all. I hav tried to check between various posting dates but still there are differences. Any suggestions why there are differences and how should i check them??
    Thanks in advance,
    Joseph

    The GL account and the Inventory audit report will not tie for a couple of reasons:
    - You have posted directly (JE) to your Inventory account.  These amount since they are NOT tied to a Item in a transaction will not appear in the Inventory audit report.  The Inventory account(s) should be treated like a control account (enthough they
    cannot be set as one in SAP B1) and should not be posted to directly outside of the Item Inventory Transaction (GRPO, AP Inv, AR INV, DN, AR CM, AP CM, etc...) I have alos seen these posting when GL determinations are setup incorretly or when users use the inventory account in Stock Posting (staock taking) transactions
    - you have legacy issues resulting in audit report entries relating back to pre SP01 2005 days.
    To get these details analyzed by SAP for free along with the recomended corrections please contact your partner for a free Inventory Verification analysis   Your partner can take a copy of your DB backup and create a support message under SBO-MM-IVC and SAP support will analyse these differenes and show you the recommended changes.
    hope this helps

  • Insufficient Memory error when running Inventory Audit Report

    I have a user who has cannot run the Inventory Audit Report.  He used to run this report regularly, but in the past few weeks, he gets the following two errors:
    The report returns too many records for this action and may cause SAP Business One to stop responding for a long time or shut down.  Do you want to continue?
    And then:
    SAP Business One application has run out of memory; it will be shut down automatically in order to prevent data inconsistencies.
    No other user gets these error messages.  If I logon to SAP using my username on his machine, I do not get the error.  However, if he logs onto SAP at any machine, he gets the error.  This makes me believe that there is something with him profile or authorizations.  His authorizations have not changed.
    Any insight into this behavior would be appreciated.
    Randy Davis
    Denver, CO

    Hi Randy ,
    You are currently using what version of sap? (07,8.8 or 8.81).
    anyway, I must agree with you that the user might be experiencing a problem.
    so i have 3 suggestions .
    1.) try to update him/her as Superuser and try to login again and run the Audit report.
    2.) if your company is under SAP maintenance, then you will need  escalate and create a support ticket via Service market place.
    3.) (last option)to solve this immediately, create a new user and pass all authorization and form settings. then lock this user.
    Hope this will help you.
    Thanks,
    Darius

  • Inventory Audit Report - Zero quantity but with value

    Hi All,
    Our client are using FIFO costing, due to some backdated transaction we get 0 Qty but the value is not 0 when running Inventory Audit Report base on posting date (system date is fine) at the month end. I understand that the system calculate the cost base on system date and this is system behavior.
    So, i just wanted to seek for advice from any expert in accounting especially on costing, will this 0 Qty with value report be accepted by auditor and will it caused any legal issue or this accounting practice is acceptable?
    Thanks.

    Dear Mr Kong,
    From what you said it looks like opening a message for this issue is the appropriate action this time.
    The stock group will give you an update on this issue.
    Kind Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Zero Quantity, Negative Stock Value in Inventory Audit Report

    Hi all,
    The Cumulative Quantity of an item has become zero but the Cumulative Value in the Inventory Audit Report displayed as -150. How to adjust it to make it zero?
    Kindly advise, thanks.
    Regards,
    Xavier

    HI Xavier,
    Mentioned below is teh detail from the note mentioned by J
    Symptom
    In the Stock Audit Report, generated for a specific warehouse, a value is shown in the 'Cumulative Value' column even if the item does not have quantity.
    Cause
    Consulting
    Solution
    The 'Manage Item Cost per Warehouse' setting in the Administration -> System Initialisation -> Company Details -> Basic Initialisation tab determines the information displayed in the Stock Audit Report.
    'Manage Item Cost per Warehouse' is selected.
               If this option is selected, each warehouse defined in SAP Business One maintains its own cost. This warehouse cost is calculated whenever there is a movement of the item in the specific warehouse.
               When stocks are issued, the item cost will be from the specific warehouse where the stocks are issued.
               The Stock Audit Report should be viewed per warehouse in order to determine the accurate valuation of the item. The option 'Group by Warehouse' can be used for this purpose.
    'Manage Item Cost per Warehouse' is NOT selected.
               If this option is not selected, a single cost is maintained for the item per company. This cost is determined by the movement of the item within all warehouses.
               When stocks are issued, the single item cost determined on the company level will be used.
               When the item cost is calculated per company, a stock value may remain in a warehouse which has zero quantity. However, since the cost is managed across all warehouses this is ok, as long as there is an overall positive quantity.
               If the valuation of the item is required, the Stock Audit Report should be run for all warehouses and not for a specific warehouse. If the report is viewed per warehouse it may not provide an accurate cumulative value of the stock.
               If only the quantity in a specific warehouse needs to be checked then the report can be run per warehouse.
    Example:
    1. Create new item with standard price 10 in all warehouses, since price is managed per company and not per warehouse.
    2. Create goods receipt for this item to two warehouses - quantity 10 to warehouse 01 and quantity 10 to warehouse 02.
    3. Create material revaluation, select warehouse 01 (only one warehouse can be selected for posting purposes), and change the price from 10 to 5.
    4. Create goods issue from warehouse 02 with issued quantity 10.
    5. Run the audit report for this item and:
    a) for all warehouses -> cumulative quantity is 10, cumulative value is 50;
    b) for warehouse 01 -> cumulative quantity is 10, cumulative value is 0;
    c) for warehouse 02 -> cumulative quantity is 0, cumulative value is 50.
    For more information see the document 'How to Set Up and Manage a Perpetual Inventory in 2007 A' available in the Documentation Resource Centre (http://service.sap.com/smb/sbo/documentation).
    Other terms
    Inventory Audit Report, Stock Audit Report, warehouse, cumulative, value, zero, quantity, average cost, System Initialization, per company, use perpetual inventory, SAP Business One

Maybe you are looking for