Average Daily Requirement for a Material

I'm looking for a function module or BAPI that will calculate the average daily requirement for a material.  Please point me in the right direction where I can obtain this calculation.
Thanks

I found this thread while performing a search.  While it is old, I thought it a good idea to provide the solution in case others are looking for the answer in the future.  Use FM MD_STOCK_REQUIREMENTS_LIST_API.  Table MDSUX will contain the average daily requirement as well as other useful data like target stock.

Similar Messages

  • Average daily requirements in MD04

    Hi gurus,
    Can anybody please help me in understanding in how the system is calcualting the average daily requirements for the following settings of the coverage profile.
    Period indicator - Weeks (W)
    Number of periods - 12
    Type of period length - 1 (work days -factory calendar)
    Range of coverage in the first period:
    Min - 17, Target - 20, Max - 30.
    and rest of all the fields are empty in the coverage profile and also there for some materials which have this coverage profile attached have the service level at 99.9% on the materila master, I do not know if this informaiton might help us in debugging the calculation.
    Now here 17, 20 and 30 do they mean days or weeks?
    The requiremetns for the next 12 weeks are as follows (including this week)
    W 50/2010 (this week ends today) - 4360
    W 51/2010 (week of 20dec - only working days as per factory calendar are, 20, 21 and 22)-1248
    W 52/2010 (no requiremetns) - 0
    W 01/2011 - 2354
    W 02/2011 - 1542
    W 03/2011 - 5038
    W 04/2011 - 1520
    W 05/2011 - 4000
    W 06/2011 - 1856
    W 07/2011 - 2950
    W 08/2011 - 3150
    W 09/2011 - 5110
    W 10/2011 - 2550
    But the system is coming up with average daily requirements as follows in the same order as above
    W 50/2010 - 676.082
    W 51/2010 - 590.906
    W 01/2011 - 578.033
    W 02/2011 - 600.400
    W 03/2011 - 617.367
    W 04/2011 - 586.200
    W 05/211 - 607.467
    W 06/2011 - 588.475
    W 07/2011 - 594.441
    W 08/2011 - 576.983
    W 09/2011 - 569.356
    W 10/2011 - 513.288
    There are no holidays in the year 2011 weeks except saturday and sunday. Which are already accounted for in the calendar. Replies are greatly appreciated. PLease help and exaplain how the system is coming with abvoe average daily reqs in MD04
    Thanks
    Anusha

    Average daily requirements
    since you have given weeks it will first sum the next 12 weeks requirements.
    Now next it will calculate how many days are there in the next 12 weeks based on  your Type of per lenght and day per period setting as per your range of coverage profile.( Config OMiA)
    Now system will do the maths ( total requirements/Total days) - which will give you the per day average daily requirement .
    This is how the system calculates.
    Once it calcuates this then based on the number of days of stock you need to maintain it will increase the stock at the end of the period.
    kindly check with the above and let us know your feedback
    reg
    dsk

  • Problem in calculating the Average Daily Requirement

    Hello all,
    I didn't understand how the system calculates the average daily requirement in Dynamic Safety Stock process. The following process flow in given in SAP notes to find how the system calculates the average daily requirement:
    1. The system uses the defined parameters to determine the number of days used for calculating the average daily requirements. If the period is defined as a week, the period length as standard days (5 days) and the number of periods as 2, the system divides the total of the requirements by 10 days.
    2. The system then calculates the total of the requirements for this period.
    The system takes into account all requirements in the current period, even requirements that lie in the past but are still in the current period. For example, if the planning run is carried out in the middle of the month, then those requirements that were planned at the beginning of the month are also included in the calculation of the average daily requirements.
    3. The average daily requirement is calculated using the formula:
    Requirements in the specified number of periods / Number of days within the total period length
    I have run MRP on 02/23/2009 and the following results are generated in stock requirement list of the component part:
    Date     Dependent Requirement     MMSA Schedule Lines Quantity
    3/3/2009     10     31
    3/11/2009     20     20
    3/31/2009     30     30
    4/14/2009     40     49
    4/22/2009     50     50
    4/29/2009     60     60
    5/11/2009     70     55
    5/21/2009     80     80

    Hi,
    In addition to my previous reply,
    If you did following setting -
    Range of coverage in first period -
    min - blank
    tgt - 7
    max - blank
    number of periods - blank
    The system will calculate the safety stock for 7 days for each period; i.e., 7*3=21 and it will generate plnd orders as
    week1 = 51
    week2 = 14+21 = 35
    week3 = 10+21 = 31
    week4 = 30+21 = 51
    If you want to restrict your calculation till 2 periods then make following settings -
    Range of coverage in first period -
    min - blank
    tgt - 7
    max - blank
    number of periods - 2
    Range of coverage in second period -
    Make all blank
    Range of coverage in the rest of the horizon -
    min - blank
    tgt - 3
    max - blank
    It means for first two weeks the safety stock will be 21 (equivalent to 7 days) and for rest of the horizon it will be 3*3 = 9 (equivalent to 3 days)
    The Plnd orders will be -
    week 1 = 51
    week 2 = 35
    week 3 = 14+9 = 23
    week 4 = 30+9 = 39
    and so on.
    Regards,
    Amol

  • The quantity received/required for each material (only sum of Dep and Foreq

    Hi all
    I have a report and I need it to show the <b>quantity received/required</b> for each material (<b>only sum of Depreq and ForReq</b>) in a plant due to MRP execution.
    Basically something like MD04 showing each MRP element entry (only sum of Depreq and ForReq)
    Do anyone knows a function, bapi, or other that can helps calculate this?
    Thanks in advance

    Hi srivalli,
    U mean that for every material u need sum of recieved quntity and required qunatity? if this is your requirement.
    Try the synax below.
    Example.
    itab - internal table of any sturcture. suppose itab  consits of materil and quantity fiedls.
    sort itab by matnr.
    loop at itab.
    At end of matnr.
    Sum.
    Write: itab-matnr, itab-menge.
    ENDAT.
    endloop.
    This syntax will display the sum of quantity for each material.
    <b>Reward if useful</b>
    Any thing please reply back if you have any other doubt.
    Regards,
    sunil kairam.

  • Suggestion required for STOCKE MATERIAL to non stock material in the PO

    Hi all
    by mistake system clears account assignment for non stock material due to some user exit.
    1. PO line item 01 -  mm 100011 -stock material - plant 1000
    2 . PO line item 02 -  mm 100011 -non-stock material -plant 1100 - it has account assignment - in the request - by mistake this account assignment got cleared while creatring Purchase order
    now i have realised this issue while doing good receipt.
    now second line item 02 - mm 100011 - needs to be correct to receive goods . what action item needs be taken so that i can pay the invoice.
    can i make in the line item 02 - Account assig category K and enter GL account AND cost center. - to correct the issue.
    i have corrected this issue for future in the user exit.so not clear account assignment.
    Muthu

    Both the cases you need to pay invoice.Only the difference is first line item the material qty goes into stock.Second line item is not stock item as you are assigning account assignment.
    To correct the issue for second line item you can change it to account assignment item if system allowed.Why I am saying you mentioned user exit influencing the PO to change the line item.
    So first check user criteria what are the  controlling perameters to save the PO.It seems your user exit checking line items if first line item stock item then it is changing all th line items as stock item.Take ABAP person help what are the user exits exist in PO

  • Both Individual & Collective requirement for Same material

    Hi,
    Is it possible to have a component as,
    dependent requirement in one B.o.M as individual requirement & in another  B.o.M as collective requirement.
    Suppose we have 2 Production version
    Bill of material 1
    FG (Make to Order)
    SFG2 (Individual planned order)
    Other version is
    Bill of material 2
    FG (Make to Order)
    SFG1 (Individual planned orders)
    SFG2 (Collective planned order)
    Is it possible to have SFG2 as Individual as well as collective requirement, based on B.o.M so that if version one is selected then all individual planned order need to be generated  with reference of sales order& if version 2 selection then a collective planned order to be generated without reference of sales order..
    & In B.O.M Item data how Explosion type can be useful in these scenario.

    Hello
    As far as I know, this setting is only available at the material master and it is not possible to change is at BOM level.
    You can try to use BAdI MD_CHANGE_MRP_DATA to control if the requiremens are assigned to the individual stock or not, from an MRP perspective. Please observer that this BAdI does not change data on the table.
    However, BAdI WORKORDER_UPDATE can be used later to remove the assignment to the invidual stock from the production order components.
    BR
    Caetano

  • Requirement for learning material

    Hi
    I am looking for SAP training material LO830, which covers topic related to Service contracts in SAP. I will be great full if some one can share the soft copy with me.
    Regards
    Rakesh Jindal

    Hi
    Have u checked the following link.
    help.sap.com
    u will get more info there.
    regards
    Anand.

  • Planned independent requirements for MTO material

    how can i maintain PIRs for an item that has strategy 20 (MTO)? when i try to access MD61, sap tells me that i need a requirements type, however strategy 20 doesnt really have these,

    Hi Raf,
    If you are using planning strategy 20 (MTO) then directly create sales order
    If u r use planning strategy 10, 11, 40 (MTS) then you can use create PIR (planned independent requirements)
    Regards,
    Sankaran

  • Plan Material Requirements for Detached Order Assemblies in ETO

    Hi all,
    I need to plan requirements for a material used in engineering-to-order production. It's written in SAP Library ( http://help.sap.com/saphelp_erp2005vp/helpdata/en/f6/089036e1e4b603e10000009b38f889/frameset.htm ) that I can plan independent requirements and assign them to the sales order. It's right, but I have two different sales orders and I need to assign a quantity to one and another one to the other: the system assign the whole quantity only to an order apart from the dates I have planned the independent requirements.
    Have anyone a hint?
    Thanks.

    You're posting in the Portuguese B1 space.
    You might want to post in the English one: SAP Business One Application

  • MRP run for header material with bom usage-3

    Dear All,
    We have header material with bom usage-3.We maintain the stock at child components only ,not at header
    I have created the planned independent requirement for header material.I have created a sales order but sales order is not shown in md04.
    What can be the further setting  I am missing for mrp run of above scenario.
    with regards,
    pradeep

    Dear ,
    Couple of checks points for you :
    1.Check the material master Sales Org Veie-Item Categoery .As you have mentioned Item Categoery -TAQ which is not relevent for requirement planning throgh schedule line category -CT ( CT means there will not be any inventory or good movement and requirement will not be passed for MRP ) .Only CP -line item categoery does requirement passing through MRP and it will show u in MD04. So the summery is if you want to generate an MTO order for the same FG material , you should matian the Sales Line item categoery as MTO in sales Org View and it will pop up in VA01 whiel logging Sales Order .
    Generally , TAQ item categoery are used in Project Billing or Delivery .ok  and they will not be having any availabilit check so it KP ( no check ) .
    But for MTO order , you should have availablty chek 02/01 in MRP3 view and also MTO Sales Item categoery .
    Based on the above information logg an sales order , release credit chek in VKM3, SAVE and check in MD04.
    Create PIR in MD61 and Run MRP on the both cases .I have tested its working .but noit with TAQ item categoery ok
    2.Why do you need to create Sales Order for dependent Item-Y because it will be in X-BOM item  ? Make sure that Y- should have Sales Item categoery in material master -MM02-Sales Org View as NORM item .If you really want to create sale sorder for this item , it should TAN or NORM .
    3.Other PIR detail is fine .
    Try and revert back
    Regards
    JH

  • Creating Idoc for a material created

    Hi gurus,
      i have a requirement for every Material i create an Idoc has to be generated .So how to assign an particular Idoc to my Material.
    Pls help me.
    Thanks and regards,
    Rajesh.

    the configurations which we do for material master is below...we don't give any output for material master,becoz its a master data not transactional data..
    For distributing master data like material master, vendor master, customer master we have standard transaction codes that are provided by sap.
    Bd10(send material master)
    Bd12(send customer master)
    Bd14(send vendor master)
    Bd30(bom’s)
    The order of Tcodes are:
    Bd54 (creating logical systems)
    Scc4 (assigning logical systems )
    Sm59 (rfc destination)
    We81 ( message type)
    We30 ( idoc type)
    We31 ( segment type)
    We82 (linking message type and idoc type)
    We21 (creating port)
    We20 (partner profiles)
    Bd64 (Distribution model)
    Bd10 (material master)
    Ex: material master.
    Message type: matmas.
    Idoc type: matmas05.
    follow these links
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    create material number in Idoc
    Reward Points if found helpfull..

  • How to create requirement for BOM, not for its components?

    Dear gurus,
    I have never worked in PS module before. Now I have the following task:
    There is Project, Network and WBS. I inserted material for operation in WBS and exploded the material.
    Now the system must create requirement for this material but NOT for components of BOM. How can I configure the system?
    P.S. We don't use MRP and we can't change Material Master Data.
    Edited by: Azat Fayzullin on Dec 8, 2009 12:44 PM

    Have you read SAP help on PS
    also check this forum for similar posts
    If you have never worked on PS module I am not sure if you will be able to configure the system
    please attend some courses in PS from your local SAP academy course names are PLM200, PLM210, PLM220, PLM230, PLM240
    for your specific requirements I would recommend PLM200 and PLM220

  • Calculating Daily Valuated Stock For an Material

    Hi Guys,
    Here is the Report Requirement:
    Selection Criteria:
    a) Year (Range) (Mandatory)
    b) Material (Range)
    c) Plant (Mandatory)
    Output Columns:
    a) Year
    b) Plant
    c) Material No
    d) Material Description
    e) Unit of Measure
    f) Max. Daily Quantity
    g) Average Daily Quantity
    h) Days On Hand (Days during which material quantity is not zero)
    SAP doesn’t store daily stock. To calculate the Max. daily Quantity in a year we have to calculate the daily stock.
    Please let me know the logic how to calculate the daily stock of the material.
    Thanks,
    Rohit

    FYI
    Re: Stock on a particulare date
    <b>Pl... award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • Requirement for getting the Inventory at a daily level (Non-cumulatvev KF)

    Hello All,
    Kindly provide ur suggesstions on the issue mentioned below:
    We require the Inventory data at a daily level. Also we require that the non-cumulatve Key Figures such as 0TOTALSTOCK, etc. be available to us in the BW itself, since this is required for further processing.
    PS: Right now we are using RSCRM_BAPI to execute the qurey and store the data into a table, but it fails for non-cumulative keyfigures. Kindly suggest if ther are other ways which can suffice the requirement mentioned above.
    Thank you.
    Regards,
    Kunal Gandhi

    Hi Kunal,
    I've just answered your other post about the same issue. You shouldn't open 3 threads with the same question.
    If there is something that is not clear, you can just reply there.
    Regards,
    Diego

  • Which table has Moving Average price for a material

    Can you let me know from which table I can get the Moving Average Price for a material
    Thanks

    Found MBEW table which has the necessary information

Maybe you are looking for