Inventory History Report

Hi SAP consultants,
I have a client that would like a report on inventory that shows the following information about their inventory. These are the required columns.
1. Opening balance as at a given date.
2. Total amount bought in the period.
3. Total amount sold in the period.
4. Closing balance at the end of the given period.
The report should display this information per item.
Kindly assist in generating this report.
Kind regards,
Andrew.

Try this one, it may be faster especially when more than one user need it:
Declare @FromDate Datetime
Declare @ToDate Datetime
Declare @Group nvarchar(10)
Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
Set @Group = (Select Max(s2.ItmsGrpCod) from dbo.OITB S2 Where S2.ItmsGrpNam = '[%2]')
Select
a.Itemcode,
max(a.Dscription),
sum(a.[Opening Balance]) as [Opening Balance],
sum(a.[IN]) as [IN],
sum(a.OUT) as OUT,
((sum(a.[Opening Balance]) + sum(a.[IN])) - Sum(a.OUT)) as Closing
from(
Select
N1.Itemcode,
N1.Dscription,
(sum(N1.inqty)-sum(n1.outqty)) as [Opening Balance],
0 as [IN],
0 as OUT
From dbo.OINM N1
Where
N1.DocDate < @FromDate
Group By
N1.ItemCode,N1.Dscription
Union All
select
N1.Itemcode,
N1.Dscription,
0 as [Opening Balance],
sum(N1.inqty) as [IN],
0 as OUT
From dbo.OINM N1
Where
N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and
N1.Inqty >0
Group By
N1.ItemCode,N1.Dscription
Union All
select
N1.Itemcode,
N1.Dscription,
0 as [Opening Balance],
0 as [IN],
sum(N1.outqty) as OUT
From dbo.OINM N1
Where
N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and
N1.OutQty > 0
Group By
N1.ItemCode,N1.Dscription) a, dbo.OITM I1
where
a.ItemCode=I1.ItemCode and
I1.ItmsGrpCod = @Group
Group By
a.Itemcode
Having sum(a.[Opening Balance]) + sum(a.[IN]) + sum(a.OUT) > 0
Order By a.Itemcode
I have made sure only one line for one item in case you changed your item descriptions during the time frame.  Also the all 0 items have been taken out.
Thanks,
Gordon

Similar Messages

  • All Inventories Value Report&Inventory Ageing Report& Current And as on Date Stock not matching

    Hello All,
    I am new to inventory. I need some help.
    After opening the periods of purchasing and inventory for the month of April'15. The below reports should match in costing.
    But they are not matching. Kindly help on this as its PROD.
    Inventory Ageing Report
    Current And as on Date Stock Statement With Value Report
    All Inventories Value Report - Average Costing
    Thanks
    RR

    MBEWH is the valuation history, this is only updated with the first movement after a period closure. And the period is a month.
    There is no table in SAP that holds the stock information on daily basis.
    You have to develope this yourself. Easiest method by copying a table like MBEW and MARD  daily to a Z-Table.
    A stock situation  at a certain date can be calculated with MB5B.
    Edited by: Jürgen L. on Aug 5, 2008 4:06 PM

  • 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

  • Loading inventory History

    Hi,
    We are loading Period ending Inventories and Material Prices using Business content data sources 0CO_PC_ACT_02 and 0CO_PC_ACT_05 into Standard Infocube 0COPC_C04.
    The implementation was done in early 2002 and we have data from period 12/2001 to till date in BW. Now the user is saying there was some data in 2001 in R/3, and he want us to recover data from 01/2001 to 011/2001.
    But functionally, these data sources provide data only of the current period and previous periods. Now we need to recover the history data from 01/2001 to 011/2001.
    The data looks coming from MBEW and MBEWH. Building generic extractors looks complex and I assume it will not work.
    Any ideas of how can we extract the missed inventory history into BW?
    Regards,
    Suman

    Hi Dave,
    I am afraid creating a new database is your only option.
    For old data, you may still keep access for certain reports. All open items has to be imported to new db. It is a kind of manual archiving. Your database performance will gain a lot though.
    Thanks,
    Gordon

  • Vendor History Report

    Dear Experts
    I have to create a Vendor History Report.
    is there any standard report for the same?  if yes pls let me know.
    Thanks in advance
    Regards

    No Dear,
    There is no such report.
    Generally, we use to go through MENU to see the changes 'DISPLAY CHANGES'.
    For report development you have to use two tables with reference to T.Code creation and change T.Codes.
    Tables: CDHDR Change Log Header, CDPOS - Change Log Line Item.
    Passing object related to youe Vendor Details, you can create report.
    Regds,
    Anil

  • Inventory aging report for vehicle parts

    Hello Guys,
    I need to prepare an inventory aging report for Vehicle parts.
    We already have new vehice ad used vehicle's inventory aging reports created by somebody else.
    I am very new to sap-bi.
    I am very confused about designing same cz i checked with the fields ad they are a ittle different from the fields which are there in above two reports.
    I have downloaded 0ic_c03 from business content but do not know how to prepare its datasource......
    Please tell me how should i go about it.
    Thanks & Regards,
    Dolly

    Hi Dolly,
    What is your question? It's almost impossible to provide an answer without any information.
    Perhaps you should try to ask in your company for some help.
    Cheers

  • 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

  • "Invoice History Report "show wrong balance for supplier invoice with USD

    Invoice History Report show wrong balance for supplier invoice with USD Currency
    After I run this report i see in the last of this report there is difference between the supplier total
    USD (Currency ) and the open Balance USD , it is decreased the open balance
    for supplier with 2300 USD with out any reasons
    bellow is some data copy of the report
    ======================================================
    Supplier Site Total: SAR 34,700.00
    Supplier Site Total: USD 39,000.00
    Supplier Total: SAR 34,700.00
    Supplier Total: USD 39,000.00
    Open Balance: SAR 34,700.00
    Open Balance: USD 36,700.00
    *** End of Report ***
    ==============================================
    please advise me from where can this differenc ( 39000 - 36,700=2300 )COMMING
    or it is bug in this report , becuase i compare this report with other report in account payable like
    -supplier open balance letter
    -invoice register report
    -invoice aging report
    all this report give me the amount for supplier USD =39000
    BUT AGIN FROM WHERE THE SYSTEM DECREASED THE AMOUNT TO 36,700
    thanks

    Can you try running Create Accounting For payments just before you run the Invoice History Report and re-check .
    Thanks

  • History report error: | An Exceptional Error occurred. Application exiting. Check the log file for error 5022

    Hi all
    I've got a error msg when try to generate a report using Cisco history report tool:
    Error | An Exceptional Error occurred. Application exiting.  Check the log file for error 5022
    It only happens when choose report template: ICD_Contact_Service_Queue_Activity_by_CSQ_en_us.
    User tried samething on other PC, it working fine.
    only on user' own PC and only choose this report, error appears.
    user runing windows 7 and do not have crystal report installed
    tried reinstalled the software, doesn't work.
    also tried this: (https://cisco-support.hosted.jivesoftware.com/thread/2041254) - doesn't work
    then tried https://supportforums.cisco.com/docs/DOC-6209  - doesn't work
    attached the log file.
    thanks.

    wenqianyu wrote:From the log file:Looks like you get a Login Window.Error message showed up after username/password be enteredThere is an error in the log: Error happened in comparing UCCX version and HRC versionYou may need to do a clean uninstall, download the Historical report from the server, and install it again on the PC.Does this only happen to one PC or to every PC with this application?Wenqian 
    I have completely uninstalled the HRC, and download from server install again -- still doesn't work with exactly same error.
    this matter only happens on this PC, when user try same thing on other PC, it works.
    so i think it not relate to server or account.

  • History report page prints before printing each new document?cc=us

    How do i stop my HP Officejet 6700  Premium from printing a history report page before printing each new document, using Windows 7 & Using Microsoft Word? When I open a document and print it, it prints a history including: File Name; Directory; Template; Title; Subject; Keywords; Comments; creation Date; Change Number; Last Saved On; Last Saved By; Total Editing; Last Printed On; As of Last Printing....
    Everything worked perfectly for a year, then I had to reinstall the printer because I deleted it by mistake. I cary it with me when I travel to meetings and didn't have my install disk, so I had to download the install software. I haven't changed any settings in Word, but it appears that the report is generated from Word.
    Help will be appreciated. I can't find any other topic like mine to see an already presented solution.
    This question was solved.
    View Solution.

    Hi,
    The report indeed being generated by Word and not by the pritner driver.
    As you did not clarify your MS Office version I included the steps for Word 2010, I believe the same should also apply for Word 2007:
    From Word click the File menu, then select Options.
    Select Display from the left pane.
    Under the Printing Options sections, uncheck the box next to Print document properties.
    Click OK and try printing again.
    If you cannot find the specific option, please clarify your exact Microsoft Wiord version.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • History Report

    Dear all
    As per requirements i have mostly completed the PM history report, which comprises Equipments specifications, BOM.
    Additionally i have to add the very important tasks, spares , Cost of operation also. Here we couldnt consider all the operations , spares consumptions of the operations. How to distiguish with the normal jobs compared to history  jobs, all breakdown hours with reason , critcal spares replacement, service technicain name which is required for me?
    In AUFK,AUFM, AFIH etc table will have the details.But i need those things which is related to history only. Because the history card of equipement will vary according to the equipement.(not required all the job cards)
    Example: Engine.
    The B,C check and replacements of filter will frequently happen. Suppose exhaust valve failure, replacement, fuel pump calibration, E check of engine, Cost of maintenance for this critical jobs etc.
    Any light on this issue?

    hi
    i think form your query breakdown jobs are most important ,you can sort the operation with the help of SYSTEM CONDITION ,but it has to be entered while creating the operation.
    Since for normal jobs it is does not require to shut down your equipment and do the operation,also for material you can select the material which are all assigned to the particular operation .but only thing is it has to be correctly assigned
    regards
    thyagarajan

  • History Report of All the Completed Workflow

    We have a requirement of generating the history report of all completed workflows in a month.
    Where is the History data stored for all the workdflows. Is it in the Database tables or just in Workflow reports?
    How can this be extracted for above requirement.
    I know there is an iview for providing the history of a particular Workflow instance. Is there anything available for multiple WF instances.
    Please help.
    Thanks,
    Amber
    Edited by: amber gupta on Mar 8, 2008 3:17 AM

    Amber,
    I think you can use server logs for this purpose and also there is a status=completed in workflow tab in DM.
    But exact thing is log file where you can see triggered and completed workflows.
    Hope it will help you.
    BR,
    Alok

  • Invoice History Report not fetching any data without parameters

    Hi
    As per user guide, you can run the Invoice History Report without giving supplier parameter. "If you want to submit the report for one supplier, enter the supplier. Leave this parameter blank to submit the report for all suppliers."
    But when we run the Invoice History Report, if we don't give any supplier, no data is coming in the report. If we give a supplier, data for that supplier is fetched by the report.
    Has anyone faced this issue, is there any solution for this?
    We are on the Oracle Apps 12.1.1 and the version on the report RDF is 120.11.12010000.5
    Thanks!

    Hi,
    could you copy the MDX here ?
    Would you be able to use ST01 / ST05 to trace further details ?
    You can also go into the registry :
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\SAP\BW MDX Query Driver
    set the Trace to Yes
    then use the path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\SAP
    set the "TraceDir" to the path for the logfiles
    Ingo

  • Apps Report Error(Supplier Payment History Report)

    Hi team,
    APXPPHIS module: Supplier Payment History
    Iam getting below error and unable get report Output.
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.WE8MSWIN1252
    Enter Password:
    MSG-00001: After SRWINIT
    ORA-24324: service handle not initialized
    ==> SELECT V . vendor_name C_VENDOR_NAME , upper ( V . vendor_name ) C_SORT_VENDOR_NAME , V . segment1 C_VENDOR_NUMBER , VS . vendor_site_code C_VENDOR_SITE_CODE , decode ( VS . address_line1 , null , '' , VS . address_REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-300: service handle not initialized
    ==> SELECT V . vendor_name C_VENDOR_NAME , upper ( V . vendor_name ) C_SORT_VENDOR_NAME , V . segment1 C_VENDOR_NUMBER , VS . vendor_site_code C_VENDOR_SITE_CODE , decode ( VS . address_line1 , null , '' , VS . address_Report Builder: Release 10.1.2.3.0 - Production on Wed Oct 2 16:30:25 2013
    Thanks & Regards
    San

    San,
    Please see (Supplier Payment History Report Completing With Error (Doc ID 1409467.1)).
    Thanks,
    Hussein

Maybe you are looking for

  • I need copies of in app purchase receipts

    Can someone please tell me how I can get copies of past in app purchases from iTunes? I can't seem to figure it out and I really need them. Thanks in advance for you help! Valorie

  • CTI Not ready reason code 50010

    Hi ,   We have a UCCE set up 8.0 . Agents automatically going to not ready state. When checked in report it shows Missed Tasks eroor code (50010). It is a default cisco reason code.Can anyone explain the exact reason for this issue . Thanks, Rahul

  • How To Create the WSDL of CBP and EBF in AIA 3.0

    Hi, I have a requirement to create a CBP ( composite Business process) that will call and EBF ( Enterprise Business Flow ) in AIA. As very first step , i have to create the WSDL for both , please let me know whether i will go and manually create the

  • Final Cut Express Won't Open

    My computer won't open Final Cut Express. I can click on it, and go through the beginning of the program opening, and then without an error message, the program just closes. Any ideas?

  • Client Sockets

    I want to identify clients.Suppose there are 2 clients and the server wants to identify these two clients how will the server identify them? is there any method to identify the clients?