MC44: material usage value affected by factory calendar

Hi Gurus,
I've got the following problem: on my 4.6c R3 production instance factory calendar had been setup as 7 working days a week but recently the need was to change it to 5 working days a week due to the introduction of route calculation to determine correct dates for the sales orders.
We changed the factory calendar (which did deliver the correct result for the sales orders) only to discover that the "Usage" value determined for the materials by MC44 got totally wrong (usage with the 5 working days calendar was approximately 30 to 50% LESS than with the 7 days working calendar !!)
As soon as we did restore factory calendar back to 7 working days a week MC44 was again fine (obviously sales orders date got wrong...).
My impression is that everything is based on the way data from table MVER is determined depending on the factory calendar (which is apparently driven by function module DATE_CONVERT_TO_FACTORY_DATE).
I guess I could change from customizing the calendar for the shipping point: in that case my expectation is that sales orders date should be fine as well as results from MC44 but I'm not totally sure about that.
Any idea ?  Do you know which is the way table MVER is populated based on the calendar settings ?
Many thanks in advance for your help.
Enrico

Hi Jurgen,
from the logical point of view sounds reasonable but....
1) even if I didn't fully debug the program (otherwise I guess I would know the answer   )  looks like MVER is the only one considered in terms of usage
2) even if you forget point 1 (I could obviously be wrong) you're missing one information that I didn't mention: our usage (or consumption if you prefer) is 98% done from Monday to Friday; sometimes we do something on Saturday but this is kind of an exception.
Based on the above, despite the factory calendar is setup on 7 working days a week, our material usage is basically done on 5 working days a week.  Described this way you'll immediately understand that, even if the program reads the data based on the number of working days, changing the calendar from 7 to 5 should cause a decrease of only 2-3%, in our case changing the factory calendar from 7 to 5 working days is causing a decrease of 30% to 50%.
I believe the program is reading the table in a different way based on the factory calendar, I'll try to give you an example:
      Day     Usage
01   Mon       10
02   Tue        20
03   Wed      30
04   Thu        40
05   Fri          50     ---> total week 1 far 150
06   Sat         2
07   Sun        0      -
> total of the weekend 2
08   Mon       100
09   Tue        200
10   Wed        300
11   Thu       400
12   Fri        500     -
> total week 2 1500
13   Sat        6
14   Sun       0        -
> total of the weekend 6
For the 2 weeks, factory calendar 7 working days a week, total usage would be 1658.
In your case, switching to 5 working days a week, it should deliver usage only for Monday to Friday, which is 1658 - (2+6)=1650    (i.e. difference is peanuts)
As I said, I couldn't get to the end of the debug, but my impression was that, switching to 5 working days a week (based on the above example) the program would read 10 "days" so from Monday 01 to Wednesday 10, in that case the total would be 1658 - (4005006) = 752  (now difference is huge...).
So......  maybe main question could be: which is the way MVER is populated ?
Best regards,
Enrico

Similar Messages

  • Which Factory Calendar is used to determine the Sales Order delivery date

    Hi ,
    There is Factory calendar assigned to sales Org and shipping point as well.
    I want to know which Factory calendar is used to determine the promise date on sales order acknowledgement and which one is used to determine the delivery date?
    Appreciate your help/inputs.
    Regards,
    Ram

    Ramy,
    I am not sure what you mean by 'promise date'.  For a given sales order item confirmation schedule, the system calculates the following dates:
    Delivery Date
    Goods Issue date
    Loading Date
    Material Availability date
    Transportation planning date.
    These dates are dependent upon what you have configured, and what your master data is.  If you have transportation scheduling turned on (IMG>SD>Basic Functions>Delivery scheduling and transportation scheduling), then the durations are:
    Route duration (transit), - affected by factory calendar assigned to the route (0VTC, that's a zero)
    Picking time, packing time, Transportation planning time, and Loading time- affected by the factory calendar assigned to the shipping point (OVLZ, not a zero)
    In addition, the Material availability date will be affected by the calendar assigned to the plant (WB03).  The calculated dates may also differ on a given order schedule line, based on whether the sales order is backward scheduled or forward scheduled.  This is particularly important when the calendars all have different holiday schedules.
    Standard SAP help on the matter, with a couple of nice pictures.
    http://help.sap.com/saphelp_erp60/helpdata/en/dd/5607e7545a11d1a7020000e829fd11/frameset.htm
    Rgds,
    DB49
    Edited by: Dogboy49 on Feb 16, 2010 5:08 AM

  • Working days between two date fields and Changing Factory Calendar

    Hi,
    I have to calculate working days between two date fields excluding the weekends and public holidays for Switzerland.
    I have written the routine using factory calender and its working fine except for two problems now:
    1. If any one of the date field is empty then teh rsult should be zero.
    2. And the below code is working from 1996 but my cleints wants it to work for years before 1996 as well.
    I also tried to change the Start date in SCAL for factory calendar but it says enter values between 1995 to 2020.
    I am new to ABAP. Please help me how i can achieve these for below code.
    DATA: IT_HOLIDAYS type TABLE OF ISCAL_DAY,
          IS_HOLIDAYS TYPE ISCAL_DAY.
    DATA: T_DATE TYPE SY-DATUM,
          P_DATE TYPE SY-DATUM.
    DATA : X_DATE(4) TYPE C.
    DATA: CNT TYPE I.
    REFRESH : IT_HOLIDAYS.
    CLEAR : IT_HOLIDAYS.
    T_DATE = SOURCE_FIELDS-/BIC/ZCCCHP812.
    P_DATE = SOURCE_FIELDS-/BIC/ZCCCHP810.
    CALL FUNCTION 'HOLIDAY_GET'
    EXPORTING
    HOLIDAY_CALENDAR = 'CH'
    FACTORY_CALENDAR = 'CH'
    DATE_FROM = P_DATE
    DATE_TO   = T_DATE
    TABLES
    HOLIDAYS = IT_HOLIDAYS
    EXCEPTIONS
    FACTORY_CALENDAR_NOT_FOUND = 1
    HOLIDAY_CALENDAR_NOT_FOUND = 2
    DATE_HAS_INVALID_FORMAT = 3
    DATE_INCONSISTENCY = 4
    OTHERS = 5.
    DESCRIBE TABLE IT_HOLIDAYS LINES CNT.
    X_DATE = T_DATE - P_DATE - CNT.
    RESULT = X_DATE.
    Please help
    Regards
    Zabina
    Edited by: Syed786 on Nov 2, 2011 9:15 AM

    Hi Zabina,
    Try this function module  'DURATION_DETERMINE'.
    Give the factory calendar and unit as DAY
    With regards,
    Rajesh

  • System does not propose the delivery date based on factory calendar

    Hi,
    I am creating a sales order for a delivery date for this sat which is (2/22/09)
    I have maintained 2 separate calendars for
    1) shipping point
    2) for the route
    The route has a transit time of 1 day and the calendar has sat and sunday as non working.
    the Shipping point has a pick/pack time of 1 day and the calendar has sat and sunday as non working
    The material is available in the warehouse
    Now when i create this sales order i enter the delivery date as 2/22/09, the system does not propose me the delivery date of monday (i.e 2/23/09) It accepts the 2/22/09 delivery date.
    In the schedule line i do see the date as 2/22/09 only.
    The delivery was created with the following dates
    Picking = 2/17/09
    Transportation Planning = 02/18/2009
    Loading =02/18/2009 
    Planned GI= 02/18/2009
    Delivery Date = 02/22/2009
    How can the system give me the delivery date of a sunday when the calendar doesnt allow sunday as working day.
    Also the route time is 1 day in transit so i am not sure why the system is proposing a 3 day transit time?
    Can any one explain the behaviour of SAP for the delivery date logic

    Dspsac,
    Delivery date can be any date.  For instance, if your customer insisted on a Sunday delivery, you would accommodate him, regardless of any calendar.
    From the delivery date, the system counts backwards USING THE FACTORY CALENDAR ASSIGNED TO THE ROUTE by the number of days in the route.  You have to consult the FC assigned to your Route to determine if the GI date has been properly calculated.
    From the GI date, the system counts backward Pick/pack time, using the shipping point calendar, to arrive at Material availability date.
    Calculations are explained in SAP online help
    [Transportation and Delivery Scheduling|http://help.sap.com/erp2005_ehp_04/helpdata/EN/dd/5607e7545a11d1a7020000e829fd11/frameset.htm]
    Regards,
    DB49

  • I want better solution for adjusting the Material stock values for the last

    my Customer  need to adjust( Decrease)  the closing stock values for the following materials / plant wise as on 31.03.2006 for meeting statuary compliance.
    Material1 :  RS: 4149599    QTY : 10181.03 Ltrs
    Material 2  : RS: 1318596     QTY:  2152.76   Ltrs
    As per my knowledge MM posting periods can open current month and Previous month only. For the reason I proposed the solution as follows:
    Step 1 : post FI Journal Entry on 31.03.2006
    Opening Balance G/L  Account Dr 4149599 + 1318596
    Closting Stock a/c                      Cr 4149599 + 1318596
    Step 2.
    Change the Material Price in MM through T.Code: MR21
    ( Posting will be allowed in current or previous months)
    This makes our CO reports accurate.
    Please  suggest the better solution if it is possible in MM for adjusting the Material stock values for the last financial year.
    WIth Best Regards,
    Rajesh
    <b></b>

    Hi Madhavan,
    Unfortunately this forum deals with migrations from non-Oracle
    environments to Oracle. You seem to be dealing with migrations in
    an Oracle environment mainly.
    I would recommend that you contact Oracle Applications and RDBMS
    support directly. They will have the most up to date
    information/advice on performing these actions.
    Regards
    John
    Madhavan (guest) wrote:
    : Hi John
    : Thanks for your reply.
    : Actually I am planning to upgrade the system.
    : 1. I Want to Upgrade Oracle Financials release 10.7 to the
    : latest version (11.x)
    : 2. Oracle 7 database to oracle 8 or 8i.
    : 3. Oracle is running on NT service pack 3. Do I need to upgrade
    : this?. If not what is the impact on Windows NT?
    : 4. Is the majority still running smart client 10.7 and database
    : 7?
    : 5. What is the necessary time to implement these upgrades? What
    : type of consulting I need to have?
    : 6. I have some employees working on it? Will these changes
    : affect them?
    : What type of precautions I need to take on the whole??
    : Thank You
    : Madhavan
    Oracle Technology Network
    http://technet.oracle.com
    null

  • How to maintain TFACS table (Factory calendar) into SAP BI

    Hi,
    I deal with a daily stock infocube and I would like to set a flag when the warehouse doesn't work (on holiday).
    to do this, I would like to use the factory calendar (TFACS), and I have 2 questions:
    1) How to maintain the TFACS table into SAP BI ?
    2) How to use the TFACS data into SAP BI ? In other words, How to convert the TFACS data values in date ?
    Thx.
    Radj.

    1.
    rsa1(source-systems) --> right-click on the source system you load from --> transfer global settings --> flag 'factory calendar' and 'rebuild' or 'update tables'
    2.
    use function module DATE_CONVERT_TO_FACTORYDATE.
    it returns workingday_indicator (initial if it's a worling day) that you can use as a flag, or it also returns the next working day.
    you can use this function module in the transformation in the field routine of the flag...i think this is the best option.
    M.

  • PR/PO generate by MRP not calculate factory calendar

    hi,
    if PR/PO generate by MRP did not consider factory calendar, possible?
    pls advice? thanks

    Hi,
    Your possible checks should be:
    1) Whether material has proper MRP type
    2) whether there is enough demand
    3) whether the stock available is less than the demand
    4) Whether planning parameters are set properly
    5) Whether external procurement is setup for material master
    6) Whether planning file entry took place
    so many but a few listed on possibilities of failure to get PReqs out of MRP run...
    Regards

  • How to get working Date based on factory Calendar and current date

    Hi All,
    I want to deletermine a date which is Invoice date + 3 working days excluding SAT, SUN and holidays. For e.g, if Invoice date is 18th Sept, 2009, then my desired date should 23rd Sept, 2009.
    I do have factory calendar ID but i dont know the proper function module.
    Can some one please help me...

    Hi,
    check this code,
    DATA:
    w_date   TYPE dats,
    w_date1  LIKE scal-date,               " dats
    w_date2  LIKE scal-date,
    i_factid LIKE tkevs-fcalid VALUE 'IN', " IN for India
    it_dats  TYPE TABLE OF rke_dat,
    wa_dats  LIKE LINE OF it_dats,
    w_lines  TYPE i.
    CALL FUNCTION 'CALCULATE_DATE'
      EXPORTING
        days        = '0'
        months      = '1'
        start_date  = sy-datum             " for example '20090918'
      IMPORTING
        result_date = w_date.              " 1 month added '20091018'
    w_date1 = sy-datum.
    w_date2 = w_date.
    CALL FUNCTION 'RKE_SELECT_FACTDAYS_FOR_PERIOD'
      EXPORTING
        i_datab  = w_date1
        i_datbi  = w_date2
        i_factid = i_factid
      TABLES
        eth_dats = it_dats.                " number of working days between two dates
    READ TABLE it_dats INDEX 4 INTO wa_dats.
    WRITE :
      / wa_dats-periodat.                  " new date '20090923'
    Hope this will be helpfull...
    Regards
    Adil

  • How to calculate usage value through measuring document.

    Hi,
    While creating Sales Order with reference to a Contract i need to update the usgae value in the Order Quantity ( RV45A-KWMENG ) field (at line item level).
    Can you help me calculate usage value through measuring documents for equipment over a period of time.
    Is there any function module for the same?
    Thanks.

    Hi,
    To determine the usage value of a an equipment I had followed the following.
    From table STPO, check if the material receipted belongs to a standard BOM (STLTY='S')
    If yes, record the BOM (STLNR)  and the BOM item node number (STLKN)
    From PLMZ table, select the task list type (PLNTY), the key for task list group (PLNNR), the group counter (PLNAL), the task list node number for operation (PLNKN),   if the record is not flagged for deletion (LOEZ)
    From PLFH table, select the object type of the CIM resource (OBJTY), the object id of the resource (OBJID), the usage value (EWVGW) if the record is not flagged for deletion (LOEZ)
    From CRVE_A table, select the equipment number (EQUNR)
    The result of this selection will be all the tools which can be used for the production of the material receipted.
    The measuring point for this or these equipment(s) will be selected from equipment number and EQUI table
    The result of this selection will be all the measuring point to update.
    Create new measurement document for the selected measurement point (transaction IK11)
    Technically go as follows:-
    MAT = material receipted
    Select STLY, STLNR, STLKN from STPO table where IDNRK='MAT' and STLTY='S'
    If results exist
    Select STLTY, PLNNR, PLNAL, PLNKN from PLMZ where PLMZ.STLTY=STPO.STLTY and PLMZ.STLNR=STPO.STLNR and PLMZ.STLKN=STPO.STLKN
    And PLMZ.LOEZ<>'X'
    Select EWVGW, OBJTY, OBJID from PLFH twhere PLFH.STLTY=PLMZ.STLTY and PLFH.PLNNR=PLMZ.PLNNR and PLFH.PLNAL=PLMZ.PLNAL and PLFH.PLNKN=PLFH.PLNKN and PLFH.LOEKZ<>'X'
    USAGE=PLFH.EWVGW
    Select EQUNR from CRVE_A where CRVE_A.OBJTY=PLFH.OBJTY and CRVE_A.OJBID=PLFH.OBJID
    All the equipment number selected at this moment will be called EQUIP in the next steps
    EQUIP= Equipment number previously selected
    Select OBJNR from EQUI where EQUNR=EQUIP
    Select PARNR from IHPA where OBJNR=EQUI.OBJNR
    If PARNR = Vend then
    Select IMRC_POINT from equi where equnr=equip
    All the measuring points  selected at this moment will be called MEASP  in the next steps
    For each MEASP
    Insert into IMRG the new increment value  (USAGExMAT) in field CDIFF
    Remark: the field CDIFF is managed in floating point number, accurate to 8 bytes.
    I hope this is useful for you.
    Regards,
    Ankur Parab

  • Debugging of Material usage Variance

    Hi All,
    We have a Z report for Monthly Material Usage Variance for reporting.
    The SAP Material Variance report is not calculating the Material Usage Variance Quantity & Value correctly for production order that have a target quantity and actual quantity that are equal to each other. In this case, the MUV quantity should be equal to 0. Instead a MUV Quantity is calculated and this results in a MUV value being calculated.
    I would like to do the debugging.
    I am new to SAP ABAP. Kindly, explain me what steps should I take to proceed.
    Please give your suggestions.
    Quick response will be appreciated <REMOVED BY MODERATOR>
    Thanks & Regards
    Edited by: Alvaro Tejada Galindo on Apr 4, 2008 5:48 PM

    Hi Venkat & Amiya,
    Thanks for your quick response.
    I am not able to execute the report right now, as this is a month end report and executed in background on the month end only (on 30th or 31st of every month).
    Kindly, let me know, is there any other way to find the bug in the program in this scenario or is there any way to execute the report in between periods.
    Quick response will be appreciated.
    Thanks & Regards.

  • Monthly Material Usage Variance

    Hi All,
    We have a Z report for Monthly Material Usage Variance for reporting.
    The SAP Material Variance report is not calculating the Material Usage Variance Quantity & Value correctly for production order that have a target quantity and actual quantity that are equal to each other. In this case, the MUV quantity should be equal to 0. Instead a MUV Quantity is calculated and this results in a MUV value being calculated.
    Please give your suggestions.
    Quick response will be appreciated & points will be assigned.
    Thanks & Regards

    Hi Venkat & Amiya,
    Thanks for your quick response.
    I am not able to execute the report right now, as this is a month end report and executed in background on the month end only (on 30th or 31st of every month).
    Kindly, let me know, is there any other way to find the bug in the program in this scenario or is there any way to execute the report in between periods.
    Quick response will be appreciated.
    Thanks & Regards.

  • Date is outside the factory calendar range

    I am trying to run a BW query. When I click on the calnedar icon field. It gives this error.
    Error: Date is outside the factory calendar range
    Msg No. FK884
    What could be the problem in the query? Has anybody had the similar problem before? I tried to search in SAP notes and could not find anything close to this.
    I will  Appreciate your help. Thanks a lot.
    Abhi

    Hi Abhijit,
    We got the same error message in 2010.
    1) Check in transaction SCAL that the Factory Calendar ID 01 (i.e. German) is valid to 2009. This explains the error message.
    2) Found SAP Note 1136142 about the configuration of default factory calendar ID of F4 Help and hierarchy for Time-characteristics in BI 7.0.
    SAP Note Solution:
    The key figure attribute obtains its value from the default work calendar as it is maintained in transaction RSRHIERARCHYVIRT (General Settings -> Default Factory Cal. ID).
    This setting is valid across the entire system and does not permit any variable selection of the factory calendar for each query.
    Furthermore, a value for 0NUMWDAY is calculated only for the period in which the default factory calendar is valid.
    3) Check in transaction SCAL that the Factory Calendar ID of our location is valid to 2050.
    The problem is solved after changed the Default Factory Cal. ID from 01 to the ID of our location in transaction RSRHIERARCHYVIRT.
    Regards,
    Ricky

  • Changes to Factory Calendar Not reflected in work schedule

    I have updated the exsisting factory calendar in PRD .
    Yet the changes do not seem to have taken effect. I have tried to regernerate the work schedule. However I'am not sure I have done that properly.
    Any assistance would be greatly appreciated.
    Thank you

    Hi.. you cant expect any change in the Factory calender affecting work schedules. If you want the work schedules to be updated with the holidays you need to be updating the holiday calender.
    Factory calender is mainly for Plant Schedules, Bank transfers in finance , etc

  • Note 1529649 - Factory Calendar expires 2010

    Hi Experts,
    Need a clarifications. Does it affect any work schedule, when we extend the validity of factory calendar.
    when Public Holiday Calendar are used in factory calendar does it affect any work schedule .
    Please let me know if it affects anything related to HR.
    Regards,
    M Bharath

    We don't use Factory Calendars, only our own Holiday Calendars, but they must be valid in the future if we want to generate the Work Schedules. 
    Our Holiday Calendars are currently valid until 2020, and our Work Schedules have been generated up to December 2015.
    This allows the system to "count" the number of absence days (and quota utiliization) for long-term absences (provided they have an end date smaller than 01.01.2016).

  • Factory calendar doesnt exist

    Hi,All........
    We are creating production order manually with matrl, Prod. Plant and order type as input...When we  enter required quantity for Production and finish date as we are using Backward Scheduling.
    The system throwing a messgae that factory calendar Z3 does not exist.
    Message no:co034......
    Pls guide me to resolve the issue.
    what needs to be checked in the system.
    Rgds,
    Yogesh.....

    Hi Yogesh,
    It seems that you have assigned the factory calendar Z3 to plant or to the workcenter used in the routing for the material.
    This customizing you may have carried forward but probably you have not carried the factory calendar Z3 customising to the client where you are trying to create the order.
    Hence create the factory calendar in customising (SCAL-Tcode) in the client you are working.
    I hope this will help resolve your problem once the factory calendar has being defined in the client you are working.
    Thanks & Regards.
    Santosh Joshi

Maybe you are looking for

  • Follow up material with different base unit of measure

    Hi all, I have the BOM with material Mat1 as a component. The base unit of measure of Mat1 is KG. Is it possible to replace Mat1 with Mat 2 material in MRP once the Mat1 warehouse stock is depleted. The base unit of measure of Mat 2 is KGK. The requi

  • Your email address has changed or is invalid -iTunes won't let me change it

    Help. I've tried everything including logging a request with Apple iTunes support - through the usual means, filling out the online request form. Still to no avail. The story goes like this, I changed my ISP about three weeks ago. I'm pretty sure my

  • Bpm send abap proxy problem

    BPM send abstract interface sd025proxy (bapa proxy). in sproxy only message interface outbound and inbound can create proxy, abstract interface can't  create proxy. so how can I handle this in ID?

  • Safari upload issues

    Issues with uploading pictures with Safari, recently on both our computers PC we have had issues with Safari uploading pictures let's say to facebook, yet tried with internet explorer and it worked.  I can select the photo but then it does nothing, o

  • Why won't my photoshop update?

    I have Adobe Photoshop CS5. Adobe is telling me that I have updates available. So I try update, but right before it finishes it says update failed and to contact support. What is going on? P.S. I have a PC and I have tried to update multiple times an