Calculation of Factory Calender

Hello Gurus,
I am working on DRP(Distribution Resource Planning). My problem is,
I need to add some days to the current date and get the resulatant date in factory calender.
Ex: Current date - 07/20/2009
Days: 8
Resultant date = current Date + Days
= 07/30/2009 (This is excluding week ends).
Basically date needs to be calculated w.r.t factory calender(excluding week ends and holidays defined in factory calender).
Could someone let me know how to acheive this?
Thanks in advance!!!!

Use this function module.
BKK_ADD_WORKINGDAY
Hope this will solve your problem.

Similar Messages

  • Set factory calender and user requirement date calculation

    Hi Gurus,
    I've requirement to do calculation for start user requirement & end user requirement. The calculation must exclude public holiday and weekend. Therefore factory calender need to be maintained.
    Please guide me into doing this.
    regards,

    Dear
    Based on your business requirement ,  you should have the following set up :
    1.One Factory Calender  with Work Days Monday-to-Friday  Let say FC1 .This will be used on all the organisational level starting from Materials Planning to Sales  .But will not be assinge to Capacity Requirement Planning Purpose or Any Production Activity in Work Centre .
    2.You should have one more Factory Calander with work Days Monday to Monday ( 7 days week ) with some special rule like Plan Shutdown Days , Breakdown Maintainnece  etc  and this should be assinged to  all the work centres -CR02-Capacity Tab -Capacity Header -Factory Calader ID -Let say it is FC2.
    You need to ceate Calander in OP03/SCAL .It does nto have any transport and  it will be a Cleinet level changes  which requires proper approval .Please rememeber , you need to assing only FC1 to Plant assingement in OP03 where as FC2 will be asisnged only in Work Centre level  .
    Steps : Goto -OP03
      1.Identify all those Public Holidays frist with Fixed or moveable as per business requirement
      2.Goto Holiday Calander -Hit the pencil -Hit Create option -Enter ID , Description , Valid To/From Year ( shd be 20 yrs differnce )
       Add all those holidays as per Public holidays as applicable in your business  with proper valididty  and finally SAVE
    3.Goto Factory Calander -Hit the pencil -Hit Create option -Enter ID , Description , Valid To/From Year ( shd be 20 yrs differnce )
       Asisng Hioliday Calander . In case of FC2-Work centre Calander , here you can hit the Special Rules .Include Special Activity like Plan Shut down of factory with Validity  etc and SAVE .
    4.Come back to OP03 main screen -Assing the factory Calender in plant .
    5.Goto -CR02-Capacity -Capacity Header -Available Capacity Header -Factory Calander-Assing FC2
    I do not  think you should have planning calander seperately if you do not have any specific reason .
    Hope it helps
    Regards
    JH

  • Factory Calender and Time Stream

    Hi,
    I Maintain a factory calender A
    where monday to friday is working
    and holiday on 1/1/2009
    My Distribution centre is working 1/1/2009
    How do i set up in APO?
    thx

    Maintain Production calendar (For Factory) and Distribution calendar (For DC) using transaction
    S_AP9_75000138 - Maintain Planning Calendar (Time Stream)
    In calculation rule maintain 5 days as working day using calculation rule "Weekdays"
    then go to bucket delete day 1/1/2009 if showing as working day in Production calendar and keep this day as working for Dist calendar.
    Then go to Location master in Calendar tab
    assign Production calendar for factory location and distribution calendar (in shipping and recving) for DC.

  • Urgent ***  Is No. of Planned delivery days depends on FACTORY CALENDER DAY

    Hi ,
    I question for all .  Is No. of Planned delivery days calculated on <b>FACTORY CALENDER DAY or  normal difference between PO delivery and GR date .</b>
    Please let me know ,its urgent.
    Regards ,
    Amarnath Reddy.<b></b>

    Hi,
    Planned delivery period is CALENDAR days NOT Work days.
    It does not use the factory calendar and you should not even TRY to make it do so.
    Steve B

  • Factory Calender and Planning Calenderr

    Hi,
    i want to plan my production for 7days a week. and want to plan for Raw materials also 7 days a week.
    but here my requirement is that i dont want to receive raw materials on weekends. i mean no one will be in Factory to receive raw materials on Weekends.
    If i maintain Planning Calender for 7 days and assign to Raw materials in MRP View 2 and Factory Calender for 5 days can i achieve this requirement?
    for in house production i have to plan for 7 days a week. (Scheduling and Capacity Calculation)
    i dont want to receive rawmaterils in weekends.
    Please suggest.
    Thanks
    Nag

    Dear
    Based on your business requirement ,  you should have the following set up :
    1.One Factory Calender  with Work Days Monday-to-Friday  Let say FC1 .This will be used on all the organisational level starting from Materials Planning to Sales  .But will not be assinge to Capacity Requirement Planning Purpose or Any Production Activity in Work Centre .
    2.You should have one more Factory Calander with work Days Monday to Monday ( 7 days week ) with some special rule like Plan Shutdown Days , Breakdown Maintainnece  etc  and this should be assinged to  all the work centres -CR02-Capacity Tab -Capacity Header -Factory Calader ID -Let say it is FC2.
    You need to ceate Calander in OP03/SCAL .It does nto have any transport and  it will be a Cleinet level changes  which requires proper approval .Please rememeber , you need to assing only FC1 to Plant assingement in OP03 where as FC2 will be asisnged only in Work Centre level  .
    Steps : Goto -OP03
      1.Identify all those Public Holidays frist with Fixed or moveable as per business requirement
      2.Goto Holiday Calander -Hit the pencil -Hit Create option -Enter ID , Description , Valid To/From Year ( shd be 20 yrs differnce )
       Add all those holidays as per Public holidays as applicable in your business  with proper valididty  and finally SAVE
    3.Goto Factory Calander -Hit the pencil -Hit Create option -Enter ID , Description , Valid To/From Year ( shd be 20 yrs differnce )
       Asisng Hioliday Calander . In case of FC2-Work centre Calander , here you can hit the Special Rules .Include Special Activity like Plan Shut down of factory with Validity  etc and SAVE .
    4.Come back to OP03 main screen -Assing the factory Calender in plant .
    5.Goto -CR02-Capacity -Capacity Header -Available Capacity Header -Factory Calander-Assing FC2
    I do not  think you should have planning calander seperately if you do not have any specific reason .
    Hope it helps
    Regards
    JH

  • Factory calender for Shipping Point

    Dear,
    if we change the Factory calender for Existing shipping point, Can i know what are the provlems will face??
    Thanks in adv.

    You can do this by using tcode:OVXD ( Define Shipping Point) -Initial step to create Shipping Point in Enterprise structure.
    Select your shipping Point & Click on Details button - you will find Factory Calender field.
    It will have impact on following:
    - confirmation dates of Qty(Lead time)
    - Need to check Public holidays.
    - Confirmation Date on sales document items, may get re-calculated as the shipping point may have less/more days now to do backward/forward scheduling
    - If you are on a MTO environment, the start/finish date of the manufacturing order may change, as now you may have more/less days than previously estimated
    -The MRP demand may change, now requesting certain product to be available (material Availability Date) either earlier or later
    -Your "Route" (Transit Time) may be off and if you have any "D" Incoterms that drive revenue recognition at different times after PGI, then they may be off now that the date is different.
    One suggestion. Copy your client to a temporary sand box client, then do the change there and then try to ship some orders on the date that is/was marked as a holiday, also change some sales orders (anything that will re-trigger the scheduling like quantity or delivery date) and take a look not only to the sales document, but to the manufacturing order as well as get the MRP folks to be aware of the impact on their side . Having the compare client, you will be able to see what happen in your production system vs. how it behaves on your new sandbox with the new calendar.
    Hope it can assist you.
    Thanks & Regards
    JP

  • Invalid factory calender error in creating subcontrating po

    hello all,
    during creation of subcontracting po,system shows the error message "invalid factory calender error".
    i have checked the assignment in oy05.seems ok.
    pls provide some input.
    regards
    sumit simran.

    Hi,
    Please check the path.
    IMG>Enterprise Structure>Definition>Logistics - General>Define, copy, delete, check plant-->Define Plant.
    Here you can find the which factory calender is assigned to your plant.
    Then go to  Tcode SCAL ,  select the Holiday calender and edit it . Double click on your holiday calender   and change it  i.e valid From year to To year. Go back , select the factory calender and edit it ,  give  valid From year to To year.
    Thanks.

  • Factory Calender, Where Can I see it?

    Hi Experts,
    Pls. let me know that, Where Can I see the Factory Calender?
    thanq

    Hi srinivas,
                   You can use FM FACTORY_CALENDAR_GET to get factory calender.
    <REMOVED BY MODERATOR>
    Thanks,
    Srikanth.A
    Edited by: Alvaro Tejada Galindo on Apr 24, 2008 10:49 AM

  • Consideration of factory calender in threshold values

    Hi,
    I need to consider the factory calender in the threshold values to check the due date of a task or a checklist item.
    For example:
    The task/or checklist item is due in 11 days (and the factory calender should be condsidered)
    Does anybody know how to implement these checks in the threshold values of cprojects?
    Thanks for your help!
    Isabella

    Dear Friend,
    Ideally you should not change anything on Production server directly.
    The normal & universally acceptable way is to transport the changes from Development or Quality to Production.
    Still if you want to make changes on Production Server Directly (which even i dont recomend) you need to make Production Server in change mode thru T-Codes SCC4 & SE03 & make necessary changes.
    Let me know if you need to know how to use T-Codes SCC4 & SE03.
    Thanks,
    Jignesh Mehta

  • How to define a new factory calender?

    Hi guys,
    I want to have a factory calender that I can use for scheduling batch jobs to run each last sunday in the month. Such factory calender doesn't seem to exist in the system and I'm wondering how I could create it?! Is there a transaction that I can use to create a new factory calender?
    BR,
    Armin

    Hi,
    1. In TCode: SCAL, initially check the public holidays existing in the system, whether those public holidays are sufficient or not, if not create your own public holidays.
    2. Then Create public holiday calender and attach your public holidays to this public holiday  calender.
    3. Then create your own factory calender and attach your public holiday calender to the factory calender and select the working days in a week and then save.
    The above are the steps involved in creating a new factory calender.
    Hope this helps.
    Thanks,
    Viswanath

  • ABAP HR- table for factory calender id at employee level..

    Hi,
    i have a requirement in which i need to retrieve Factory calender ID against holiday calender ID at employee level.
    I am able to retrieve Holiday calender ID for an employee.
    Now i need a table to where i can get factory calender for an employee against holiday calender Id.
    Appreciate your help!
    Regards
    Aleria

    Hi Aleria 
    Pass the holiday calendar retrieved to the table TFACD to get the Factory Calendar.
    Regards
    Bala

  • Getting factory calender weekly duration timings

    hi all,
    I have a scenario to get the factory calender weeky avaialable(working) timings like
    MONDAY - 8:00 TO 17:00 etc.,
    how to get these values is there any function module associate to get those value by passing date rule id.
    Appreciate ur help
    thanks
    viswa

    check below code...
      DATA: W_FACTORYDATE          LIKE  SCAL-FACDATE.
    Convert Delivery Date to Factory Date
      CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
           EXPORTING
                CORRECT_OPTION               = '-'
                DATE                         = I_EINDT
                FACTORY_CALENDAR_ID          = I_FABKL
           IMPORTING
                DATE                         = E_EINDT
                FACTORYDATE                  = W_FACTORYDATE
           EXCEPTIONS
                CALENDAR_BUFFER_NOT_LOADABLE = 1
                CORRECT_OPTION_INVALID       = 2
                DATE_AFTER_RANGE             = 3
                DATE_BEFORE_RANGE            = 4
                DATE_INVALID                 = 5
                FACTORY_CALENDAR_NOT_FOUND   = 6
                OTHERS                       = 7.
    Find the Lower Limit of Delivery date
      E_LOWER = E_EINDT.
      IF I_VINT1 NE 0.
        W_FACTORYDATE = W_FACTORYDATE - I_VINT1.
        CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE'
             EXPORTING
                  FACTORYDATE                  = W_FACTORYDATE
                  FACTORY_CALENDAR_ID          = I_FABKL
             IMPORTING
                  DATE                         = E_LOWER
             EXCEPTIONS
                  CALENDAR_BUFFER_NOT_LOADABLE = 1
                  FACTORYDATE_AFTER_RANGE      = 2
                  FACTORYDATE_BEFORE_RANGE     = 3
                  FACTORYDATE_INVALID          = 4
                  FACTORY_CALENDAR_ID_MISSING  = 5
                  FACTORY_CALENDAR_NOT_FOUND   = 6
                  OTHERS                       = 7.
      ENDIF.
    Find the Upper Limit of Delivery date
      E_UPPER = E_EINDT.
      IF I_VINT2 NE 0.
        W_FACTORYDATE = W_FACTORYDATE + I_VINT1 + I_VINT2.
        CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE'
             EXPORTING
                  FACTORYDATE                  = W_FACTORYDATE
                  FACTORY_CALENDAR_ID          = I_FABKL
             IMPORTING
                  DATE                         = E_UPPER
             EXCEPTIONS
                  CALENDAR_BUFFER_NOT_LOADABLE = 1
                  FACTORYDATE_AFTER_RANGE      = 2
                  FACTORYDATE_BEFORE_RANGE     = 3
                  FACTORYDATE_INVALID          = 4
                  FACTORY_CALENDAR_ID_MISSING  = 5
                  FACTORY_CALENDAR_NOT_FOUND   = 6
                  OTHERS                       = 7.
      ENDIF.

  • Tables for plant , factory calender & calender validity period

    In which tables we find the data of plant , facory calender & calender validity period.If anybody knows please tell.

    I want the combination of plant , factory calender  & validity period tables to extract the data.In TFACD table we don't get plant & validity details to know exactly what was done during configuration.

  • Factory Calender - Help Needed

    I am getting this messges when i try and transaction MICN...PID for cycle count...
    The date 14.07.2009 comes after the end of the validity period of the factory calendar that is assigned to the given plant
    Could someone tell me how i fix this

    See if your factory calender is properly maintained in 'SCAL' tcode.
    If it is maintained properly, see if that is assigned to your plant in 'OX10' tcode. If this doesn't solve your issue, tell the detailed error message.

  • Date is not Defined in Factory Calender

    Dear all,
    We are facing some issue while releasing Process order. It states that Date is not defined in factory calender. and it throws out dates of for particular process order from 21.05.2014 to 15.07.2017.
    Please check the attached screen shot & revert your thoughts.
    Thanks in advance.

    I have found the issue. Actually operation quantities in the phases in the recipe was maintained improperly. Hence the charge quantity was getting multiplied with huge number hence resources allocated to them was considering that huge amt of quantity to be processed on it. Hence dates were coming the ranges of period 2014.
    Deep Dave.
    However thanks for your all prompt response.

Maybe you are looking for