Inventory Ageing Totals

Hi Experts,
I have written a query to get an Inventory Ageing reports by 0-30days, 31-60days, 61-90days, 91-120days and 121+.
The query shows Quantity and the Value (QTY * Average Price) by Age 0-30days, 31-60days, 61-90days etc.
SELECT T0.ITEMCODE , T0.ONHAND as 'Total Qty',
CASE WHEN Datediff(day, T1.LASTPURDAT,GETDATE())<30 THEN T0.ONHAND END '<30 Days(Qty)',
CASE WHEN Datediff(day, T1.LASTPURDAT,GETDATE())<30 THEN T0.ONHAND*T0.AVGPRICE END '<30 Days(Value)',
CASE WHEN DateDiff(day, T1.LASTPURDAT,GETDATE()) >= 31 AND DateDiff(day, T1.LASTPURDAT,GETDATE()) < 60 THEN T0.ONHAND END '31 to 60 Days(Qty)' ,
CASE WHEN DateDiff(day, T1.LASTPURDAT,GETDATE()) >= 31 AND DateDiff(day, T1.LASTPURDAT,GETDATE()) < 61 THEN T0.ONHAND*T0.AVGPRICE END '31 to 60 Days(Value)',
CASE WHEN DateDiff(day, T1.LASTPURDAT,GETDATE()) >= 61 AND DateDiff(day, T1.LASTPURDAT,GETDATE()) < 90 THEN T0.ONHAND END '61 to 90 Days(Qty)' ,
CASE WHEN DateDiff(day, T1.LASTPURDAT,GETDATE()) >= 61 AND DateDiff(day, T1.LASTPURDAT,GETDATE()) < 90 THEN T0.ONHAND*T0.AVGPRICE END '61 to 90 Days(Value)',
CASE WHEN DateDiff(day, T1.LASTPURDAT,GETDATE()) >= 91 AND DateDiff(day, T1.LASTPURDAT,GETDATE()) < 120 THEN T0.ONHAND END '91 to 120 Days(Qty)' ,
CASE WHEN DateDiff(day, T1.LASTPURDAT,GETDATE()) >= 91 AND DateDiff(day, T1.LASTPURDAT,GETDATE()) < 120 THEN T0.ONHAND*T0.AVGPRICE END '91 to 120 Days(Value)',
CASE WHEN DateDiff(day, T1.LASTPURDAT,GETDATE()) >= 121 AND DateDiff(day, T1.LASTPURDAT,GETDATE()) > 121 THEN T0.ONHAND END '121+ Days(Qty)' ,
CASE WHEN DateDiff(day, T1.LASTPURDAT,GETDATE()) >= 121 AND DateDiff(day, T1.LASTPURDAT,GETDATE()) > 121 THEN T0.ONHAND*T0.AVGPRICE END '121+ Days(Value)'
FROM OITW T0 INNER JOIN OITM T1 ON T0.ITEMCODE = T1.ITEMCODE
INNER JOIN OITB T2 ON T1.ITMSGRPCOD=T2.ITMSGRPCOD
WHERE
T0.ONHAND>0
I want to know how i can get the Final Totals of all Values by 0-30days, 31-60days, 61-90days etc.

On the Screen, you could get at by pressing CTRL+left mouse click on the column header.  If you want it in your print then you would need to use a formula on the Query PLD..Report Footer area.
Suda

Similar Messages

  • Report for Inventory Ageing

    Our client wants a report for Inventory Ageing. (we are not using batch management)
    Use tried to sell Standard report MC46 but they are not convinced with the results.
    The issue is if the material is not consumed for last 399 days but today if some movement is there in that particular material, then the material is not shown as non moving. Actually the material was not at all used for last 399 days.
    In mc.5 report there are key figures like last consumption, last good issue etc but the same problem is there with it.
    We are trying to develop a customised report.
    Please help.
    Thanks in advance.

    Hi,
    The Stock Aging Report displays the description of material that are stocked for n-number of periods at particular inventory locations( may be trading plant or manufacturing Plant). The details, which are displayed, are about the aging period for the selected items.
    There are reports and T code are
    MC.A ,
    MC.9,
    MM5B,
    MMBE,
    MB5M,
    MC50 - Dead Stock ,
    MC46 - Slow-moving items,
    If the above reports not meet your requirement, you should develop your own ABAP program to meet your specific business requirement.
    This is define in overall stock on value based, suppose a material is received in Feb-month, same material is received in Jan-2007 , DEC-2007  also.The total value of this inventory is say 90 lakhs, ( 30 lakhs of each month) so  system will show inventory aging as below
    stock aging less than 30 days, 90 lakhs
    stock aging more than 30 days but below 60 days 60 lakhs
    stock ageing more than 60 days but below 90 days 30 lakhs
    Assuming that no issue taken place if issue is taken place, it will be deducted by default FIFO method.
    You may have to develop an ABAP report.
    However, look into the path: information system > logistics > inventory managment > material and explore all like MC.9,MC.A,MC.B & MC.C
    Regards,
    Biju K

  • Inventory Aging Report

    Hi Experts,
    I have a requirement to implement Inventory Aging report . The report should show total qty of inventory on hand in buckets of
    (0-30 days), (31-60 days) and so on upto a year for given plant and material .
    I also need to show value of inventory on hand in similiar buckets .
    Is it possible to fullfill this requirement using 2LIS_03_BX extractor ?
    I am assuming the distribution in buckets would need to be done at run time .  If so how to design the buckets in the query ?
    Thanks in advance
    Arun

    You can create this report using IC_C03 not just BX extractor. You need to do the ageing with reference to the materials and then sum to get the value at plant level. 
    For this report to work, its assumed that inventory is managed in FIFO method. The formula is derived with based ONLY on the receipt value. First you need to get the receipt values with reference to the time buckets (0 - 30, 31 - 60, 61 - 90 etc). So restrict the relevent movement types for the std KF - 0RECVS_VAL. Then do the offset in the Calendar day.
    Once you have all the receipt bucket values, then you can create the ageing formula using the if else condition in the query which goes like
    Ageing 0 - 30 ->    ((Receipt value 0 - 30 <= Closing Stock value ) * Receipt Value 0 - 30)+ ((Receipt value 0 - 30 > Closing Stock value ) * Closing Stock value))
    Ageing 31 - 60 ->    ((Receipt value 31 - 60 <= Closing Stock value + Ageing 0 - 30) * Receipt Value 31 -60 )+ ((Receipt value 31 - 60 + Ageing 0 - 30 > Closing Stock value ) * Closing Stock value- Ageing 0 - 30))
    The same formula can be extended up any time bucket you require (Eg Ageing 1Yr - 3 Yr, Ageing 3Yr - 5Yr, Ageing > 5 Yr  etc). provided you make the receipt buckets properly.
    The ageing formula is calculated during the run time, so the query performance can be slightly bad. However there is no standard R/ 3 report equvalent to this. Unless you make a abap report.
    Cheers
    Deepesh

  • Inventory Aging Data, Duplication in SAP B1 8.81

    Hello Everyone,
    I have been working on Inventory Aging Report creation and has been facing with a problem. The data seems to get duplicated when i execute the
    report. I have attached the screen shot below for your reference.
    I have taken the following tables OPDN, PDN1, OITM and OITW for my report, and below is the query.
    SELECT T0.[DocNum], T0.[DocDate], T1.[ItemCode], T1.[Dscription], T1.[WhsCode], T3.[OnHand] FROM OPDN T0  INNER JOIN PDN1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITW T3 ON T2.ItemCode = T3.ItemCode WHERE T3.[OnHand]  > 0
    Please help me.. Thank You.

    Hi Nagarajan,
    Thank You for your reply..
    But I am still facing the duplication, before it was duplicating three times, now two times it is getting replicated.
    Attached the new screenshot for your reference..
    Kindly view the total stock values in report and SAP....Appreciate your help..
    Thank you.

  • Inventory Ageing query performance

    Hi All,
       I have created inventory ageing query on our custom cube which is replica of 0IC_C03. We have data from 2003 onwards. the performance of the query is very poor the system almost hangs. I tried to create aggregates to improve performance but its failed. What i should do to improve the performance and why the aggregate filling is failed. Cube have compressed data. Pls guide.
    Regards:
    Jitendra

    Inaddition to the above posts
    Check the below points ... and take action accordingly to increase the query performance.
    mainly check --Is the Cube data Compressed. it will increase the performance of the query..
    1)If exclusions exist, make sure they exist in the global filter area. Try to remove exclusions by subtracting out inclusions.
    2)Check code for all exit variables used in a report.
    3)Check the read mode for the query. recommended is H.
    4)If Alternative UOM solution is used, turn off query cache.
    5)Use Constant Selection instead of SUMCT and SUMGT within formulas.
    6)Check aggregation and exception aggregation on calculated key figures. Before aggregation is generally slower and should not be used unless explicitly needed.
    7)Check if large hierarchies are used and the entry hierarchy level is as deep as possible. This limits the levels of the hierarchy that must be processed.
    Use SE16 on the inclusion tables and use the List of Value feature on the column successor and predecessor to see which entry level of the hierarchy is used.
    8)Within the free characteristics, filter on the least granular objects first and make sure those come first in the order.
    9)If hierarchies are used, minimize the number of nodes to include in the query results. Including all nodes in the query results (even the ones that are not needed or blank) slows down the query processing.
    10)Check the user exits usage involved in OLAP run time?
    11)Use Constant Selection instead of SUMCT and SUMGT within formulas.
    12)
    Turn on the BW Statistics: RSA1, choose Tools -> BW statistics for InfoCubes(Choose OLAP and WHM for your relevant Cubes)
    To check the Query Performance problem
    Use ST03N -> BW System load values to recognize the problem. Use the number given in table 'Reporting - InfoCubes:Share of total time (s)' to check if one of the columns %OLAP, %DB, %Frontend shows a high number in all InfoCubes.
    You need to run ST03N in expert mode to get these values
    based on the analysis and the values taken from the above  - Check if an aggregate is suitable or setting OLAP etc.
    Edited by: prashanthk on Nov 26, 2010 9:17 AM

  • 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 Ageing report

    Hi
    I require Inventory (raw material) ageing report. Ageing date must be calculated from date of goods receipt.
    For example:
    I have 100 units of Raw Material A.
    Goods receipts date were as follows:
    30 units: 1st April 2009
    45 units: 1st July 2009
    25 units: 1st September 2009
    So inventory aging as on 30th September must be:
    (days calculated from GR date to 30th Sept)
    0 - 30 Days --> 25 units
    31 - 60 Days --> 45 units
    61 - 90 Days --> 30 units
    Let me know TCode from where i can get the inventory ageing as mentioned above or let me know the TCodes / Tables which be helpful for developing report.

    Hi,
    Check teh Standard Reports:
    MC.9 - INVCO: Material Analysis Selection, Stock
    MC.B - INVCO: Material Analysis Selection, Turnover
    MC40 - INVCO: ABC Analysis of Usage Values
    MC44 - INVCO:Analysis of Inventory Turnover
    MC49 - INVCO: Mean Stock Values
    MC50 - INVCO: Analysis of Dead Stock
    Regards,
    Kishore K

  • 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 aging report,  plz help me its very urgent

    Hi experts,
    i have a problem in reporting, yesterday i got requirement form uesrs for Inventory Aging report,
    the report fields Contains
    1) Plant
    2) Meterial
    3) Stock as on date( closing stock) with both  fields Quantity & value fields
    4) Average Useage in 6 months  with both fields Quantity & Value
    5) Month on Hand in units
    6)Inventory Aging  30 days with Units and quantity
                               60 days with Units and quantity
                               90 days with Units and Quantity
                               120 days
                                150days
                                 180 days
                                  270 days
                                   365 + days
    we are using bw 3.5 version
    note:  we are u using standard Business Content Cube ( 0IC_C03)  with is coming fron standard Business content DataSources 2Lis_03_BX, 2Lis_03_BF, 2Lis_03_UM
    please suggest me to make this report, please send process in clearly.
    i will assign full points
    Advance thanks,
    Sudheer

    hello Sudheer,
    I remember once creating an Inventory aging document whcih had somwhat the same requirment of going back 6weeks and the other was like 18 weeks from the current week.Do you have cubes regarding the diffrent types of orders, like Planned order, Purchase order, production order and purchase requistion or a multi on top of it.If so then create  query on top of this multiprovider like Inventory aging 30days, inventory aging 60days etc.then  in that query create a variable on calweek (Single value,mandatory and customer exit), this variable should be able to get the current week (depending on when your table was loaded in R3 and if you can get that info thru rfc in BI), this is so that you can determine current week and then specify variable off set in diffrent queries with diffrent requirements of going back, ex: -4 (for 4 weeks ie 1 month) etc, or just create your variable on calmonth and then you need to set an offset just one month back ex -1.
    Create APDs and then load the data in transactional DSOs.Excecute the APD one at a time into the diffrent cubes .Create a multiprovider if you want on top of it.
    Hope this can get you started....
    Krrish

  • Inventory Aging Report in BW 3.5

    Hi
    We are designing inventory aging report wherein we have inventory aging periods as 0-60,61-180,181-365,>365 and Non moving.
    The formula to calculate Inventory days is
    Inv.days=((Cummulative Inv.Value)/(Avg.consumption for 6months))*30
    Depending upon the inv. days we put inv.value in that particular inv. period bucket.
    Here when we drilldown materialwise the overall result that we get is correct i.e the inventory value in all the aging periods gets distributed properly.
    But when we remove materialwise drilldown the value gets stored
    in any of 1 particular bucket and remaing remains zero.
    Pls suggest incase what we have to do to get values as it is when we do materialwise drilldown (i.e after and before materialwise drilldown the value should remain the same).
    Pls. help.
    Thanks.
    Deepak
    Edited by: Deepak Sutar on Oct 14, 2008 7:15 AM

    I'll suggest you to go through below thredas....lotz of discussions are there on this:
    Ageing Report
    Re: Inventory ageing
    Thanks...
    Shambhu

  • Inventory Aging Report in SAP BI

    Dear All,
    Please let me know the best way to calculate the inventory aging report for materials in inventory management .
    Based on the Key date we have to calculate the inventory mangement report . And the key date will be may or may not the sy-date .,
    Please let me know possible way to achive this report.
    Thanks
    Regards,
    Sai.K

    Dear Sai
    Inventory Ageing is a subject by itself. Do you have the functional logic to derive the ageing of an inventory. I mean how does the business wants to define ageing. Is your material batch managed.
    Regards
    GN

  • Customer Ageing Total differ fron Balancesheet total.

    Hi All,
    Customer Ageing report doesn't matches with Debtors (Control A/c).
    Customer Ageing Total for the month of Jane.09 doesn't get match but Ageing total for the month of Feb09 does get match with control a/c .in Balancesheet.
    Kindly provide me the solutions .
    Thanks & regards,
    Harshad A.Surve.

    Hi,
    Can you check if you are running the Backdated Aging correctly.
    If you are working with 2005 version , please refer to Note No. 800294 and follow the settings mentioned in the Note.
    If you are working with 2007 version, run the report by checking the tickbox 'Display customers with zero balance'.
    Check if it helps.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Inventory Ageing report required

    Hi SAP Experts
    I want to create an inventory ageing report which is based on FIFO valuation method and will be at company level.
    It should display time intervals like 0-30, 30-60, 60-90 etc but these intervals can be dynamic means we can change these time intervals as per our convenience. I am working on SAP 2007B PL22.
    Waiting for your valuable inputs.
    Regards
    Ashish

    Hi,
    There are loads of threads talking about the same issue. You have to dig in and find the correct query yourself which suits your requirement.
    Check following threads :
    inventory aging report
    Inventory Aging
    Query for Inventory Report
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Inventory Age Structure Analysis

    Hi,
    I am using PowerPivot of Excel 2013 and trying to accomplish an inventory age structure analysis.
    I have got a snapshot table "stock_table" with daily updates for products on stock and a custom date table. The columns of the stock table are as follows:
    date
    product_key
    units
    I'd like to show a summary of products which are let's say <=30, >30 and <=90 days on stock. Products which are at query date not any more on stock should be excluded from the summary.
    Example:
    stock_table:
    columns: date, product_key, units
    01/31/2014, 4711, 200
    02/28/2014, 4711, 200
    03/31/2014, 4711, 100 (last entry, no units left at 04/03/2014)
    01/31/2014, 4712, 100
    02/28/2014, 4712, 100
    03/31/2014, 4712, 100
    04/03/2014, 4712, 100
    03/31/2014, 4713, 300
    04/03/2014, 4713, 300
    Age analysis as per 04/03/2014 should show:
    stock age <=30 days: 4713, 300 units
    stock age >30 days and <=90 days: 4712, 100 units
    4711 should not show up because it has zero units as per 04/03/2014
    Can anyone give me a hint how to accomplish this analysis via dax?
    Thanx
    Chiemo

    Hi Gerhard,
    thank you very much for your excellent solution. Based on your file it was easy to adapt your solution to my real data.
    One tiny and really minor point for other users of Gerhard's solution from my side to one formula where I got with my real data an error message: please replace in the formula of the calculated column "StockAge" in the table "Inventory"
    the "<=" sign in the fourth row by a "<" sign. The formula that worked for me is
    StockAge=CALCULATE(VALUES(StockAge[Stockage]);
    FILTER(
        'StockAge';
        StockAge[StockMin] < [StockAgeDays]
        && [StockAgeDays] <= StockAge[StockMax]))
    Thank you again, Gerhard!
    Best regards
    Chiemo

  • Inventory ageing for slow moving Items

    Hi,
    Please how to make Inventory aging of slow moving items in BI.
    What is the logic?
    What are the key fig and characterstics taking into account?
    It is any standard report available in BI
    Thanks and Regards
    Ajit Dude

    Hi,
    If you are taking about Inventory Stocks then you need to talk about 0IC_C03 Cube , because it will have all teh information for you rrequirement.So check 0IC_C03_Q0021 -- Inventory Aging report on 0IC_C03  Cube.This report is given SAP.
    Else
    You can define the Zreport based on your requirement.
    Eg: I want to know the ageing of teh Material ...
    1. I'll take Date from Batch (Using Replacement Path Formula variable).
    2. I'll calculate the todays date using Customer Exit variable
    3. Create formula and do substraction i.e. point2 - pont1.
    4. You will get no. of days.
    Thanks
    Reddy

Maybe you are looking for

  • How can I export photos from iPad Air to PC?

    I purchased the iPad especially for a 3 month holiday to Europe rather than carry about a heavier and more valuable laptop PC. I used the iPad to store my 25000 plus photos (taken on a Nikon camera and imported via an SD card reader) from the holiday

  • Hp laserjet 1536 paper feeding crooked

    although the paper is flat & straight in the printer tray, as it pulls the paper into the printer, it pulls it in crooked. 

  • Copying Fields from one PDF to an Updated PDF - can't move fields on destination pdf

    I'm using Word as the authoring software for a PDF.  In version 9, I never had problem copying fields from one to another.  But in Version 11 I copy them to the new revised form and the fields won't move.  I can't move them with the mouse or the keyb

  • Itunes producer error

    Hi friends, I am again here with a problem: in this period everything is going wrong! I have 8 titles already present in the ibook store: definitely I have repeated this operation several times, but for the first time it does not work, apparently wit

  • Change roll-over color of combobox?

    Hey everyone. I have a simple question. What is the property of the combo box component that can change the RGB value of the roll over of a combo box to change it from the defalt green?