Factory calender date

Hi,
To the existing date i need to minus 10 days .
It should return the factory calender date.
10 days to be considered as factory calendar days.
i mean it should not consider sat, sund and hoildays for the facoty calender id.
ex 30/03/2008 - 10days
should return 14/03/2008 not 20/03/2008(exclude sat, sun and hoildays)
could you let me know the function module available
Thanks
Edited by: sudha vuppala on Feb 27, 2008 11:47 PM

what is the solution for this. I am facing a similar situation

Similar Messages

  • Regarding factory calender

    hi experts,
                   what is factory calender,and how do u maintain and see  our own factory,s calender.
    plz help me..

    Hi Ravi,
    here you can find sample which I've used to convert date to factory calender date..might be useful for you...
    reward points if useful
    thanks
      data : ret_date like scal-date,                                 " ''
             fac_date like scal-facdate,                              " ''
             workday like scal-indicator,                             " ''
             temp_date like scal-facdate.                             " ''
      loop at display_tab.
        select single * from t001w where werks eq p_werks.          " ''
        call function 'DATE_CONVERT_TO_FACTORYDATE'                 " ''
             exporting                                              " ''
                  correct_option               = '+'                " ''
                  date                         = display_tab-eindt  " ''
                  factory_calendar_id          = t001w-fabkl        " ''
             importing                                              " ''
                  date                         = ret_date           " ''
                  factorydate                  = fac_date           " ''
                  workingday_indicator         = workday            " ''
             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.                 " ''
        temp_date =  fac_date + ( display_tab-webaz - 2 ).          " ''
        call function 'FACTORYDATE_CONVERT_TO_DATE'                 " ''
             exporting                                              " ''
                  factorydate                  = temp_date          " ''
                  factory_calendar_id          = t001w-fabkl        " ''
             importing                                              " ''
                  date                         = ret_date           " ''
             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.                 " ''
        move ret_date to display_tab-delvdate.                      " ''
        modify display_tab.                                     "C12K926660
      endloop.                                                  "C12K926660

  • 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.

  • How to get past date based on duration and factory calender?

    Hi All,
    when i enter the duration ,i want to get the past date based on factory calender w.r.t current date
    i.e if current date is 26th jun and duration is 10 , the past date should be 12th jun (which should exclude all holidays and weekends).
    Thanks
    Vasumathi

    Hi,
    Please check this FM: I think this will resolve ur issue.
    END_TIME_DETERMINE
    Cheers,
    Vijay.

  • Segment: 3.314 date comes after end of valid factory calend

    Hi all,
    One infopackage load failed while extracting data from R/3 to system t oBW .
    The failed message show
    +*Errors in source system     +
    +Segment: 3.314 date comes after end of valid factory calend+
    Can any one help me how to rectify this error

    Plesae share any inputs on below error
    puru

  • Factory calender next billing date

    Hi all,
      I want to get next factory calender billing date. is there any FM is avaialbe for that.
    If so please let me know.. else give me some idea to find out how i can get that date..
    below is example...
    factory calender id UC means that need to run on every month 2nd work day...
    i want to get the next UC billing date for the next month..
    Thanks,
    Suresh

    Use these function modules
    FACTORYDATE_CONVERT_TO_DATE Calendar function: Returns date for a factory calendar date
    LAST_FACTORYDATE_GET Calendar function: Return last factory date for a factory calendar

  • ME078 delivery date outside period covery by factory calender

    Hi All,
    I am trying to upload some PRs and I have maintained delivery date as 05.12.2008 but system is showing the error message ME078 delivery date outside period covery by factory calender.
    Please suggest.
    Thanks in advance
    Pavan

    hi,
    Check whether the delivery date matches with the that defined in the MMR(MM03) ie. GR processing time...
    You can check the factory calender from OB08...check whether the del. is permitted for the given day...
    Regards
    Priyanka.P

  • 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

  • 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

  • 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.

  • Factory calender issue

    Hi all,
    Here goes a problem with factory calender in project systems.
    The Project performed by the client are flexible. in some projects they work considering sunday as holiday and in some cases they work on  sundays.
    we have only one plant assigned to the projects which has only one factory calender assigned. e.g plant 1000 to factory calender F1(considering sunday as holiday)
    when i create a new project if i change the factory calender at project definition to F2(considering sunday as working) and then if i go futher creating activities. system will still take the default factory calender assigned to plant i.e F1 and not F2.. the factory calender F2 can be seen in project definition, wbs element and activities.
    but when i change dates at network header level and try to schedule.. system is considering factory calender F1.
    can anyone pls tell me how to solve this problem.
    thanks in advance,
    steve

    Please go to work centre --- capacity --- assign required calendar there.
    As in the activity calendar will be picked up from work centre

  • Problem in Factory Calender

    Hi,
    When creating the sales order the system shows the messege" Date 05.02.2009 occurs after the end of factory calendar IN from plant X".
    So when i tried to change the validity period for factory calender IN to 2009, then the system again showing the messege "Please enter validity area between years 2007 - 2007"-The validity period specified for the factory calendar exceeds that of the selected public holiday calendar.
    So how can i change the Year in Factory Calender.
    Regards
    JYOTI

    Hi,
    under SAP Netweaver - General Setting - Maintain Calendar check which holday calendar is assigned to your factory calendar IN. In the secons step change the validity for your holiday calendar.

  • How to extend factory calender to a plant ?

    Hi Ranga:
    How to extend factory calender to a plant ? ( Tcode: SCAL, The calender is not client specific)
    I check marked US factory calender, where after can you tell how to extend factory calender to plant
    Note: I am using IDES ( International Demonstration & Education System)
    Thanks

    Hi Sandeep,
    you need to use the following path
    Go to SPRO>ENTERPRISE STRUCTURE->DEFINITION> LOG GENERAL>DEFINE COPY,DELETE AND CHECK PLANT>DEFINE PLANT
    Here you need to assign the factory calendar. The assignment in work center will only applicable for capacity not for MRP and others.
    <b>For information how to create a factory calendar</b>
    Pl follow the steps
    1.Go to SCAL transaction
    2.there will be three options.
    Click first public holidays and go in change mode.
    Click create and create your holidays there and save.(Generally fixed date will be used in the pop up)
    3.Now click Holiday calendar and go in change mode.
    Click create and give holdiay cal id and description.
    Click assign public holiday and add your holidays one by one and save
    Now holiday cal is created.
    4.Now come out and choose fact calendar and go in change mode
    Click create and give Factory calendar id and description, and validity period.
    Give the holiday calendar ID.
    If you want to give special rule like any of the specific date/ day is the holiday or work day (which is different from holiday calendar you can define)
    and save.
    5.You have to assign factory calendar to PLANT
    Go to SPRO>ENTERPRISE STRUCTURE->DEFINITION> LOG GENERAL>DEFINE COPY,DELETE AND CHECK PLANT>DEFINE PLANT
    Choose your plant and go to details-
    You have to define factory calendar there
    Hope this will help you
    Regards
    Ranga

Maybe you are looking for

  • Brush strokes show in history but not reflected on mask

    I have CS4 Extended, Dell Precision M0, WinXP 64bit and 20GB of Ram (overkill I know). This issue happens most often in the 32bit version of PS which I need to use for certain filters. It also happens in the 64bit version but takes longer to manifest

  • Cutting and piecing together video files

    Hi, I'm currently working on a project where it will be necessary to take small segments of video from several different video files, and piece them all together to make a single video file. This splicing will generally be done in terms of times base

  • Possible to do ADR in SoundBooth?

    So for whatever reason I was under the impression I would be able to do ADR no problem in Soundbooth given it was part of the Production package. Apparently I should have looked into this more - but I digress. I can easily record audio but I cannot h

  • Safari 5.0.1 update is out, fixed my problems

    Had regular crashes related either to javascriptcore.dll or safari.exe on my Win7 box. This update seems to have resolved thoose problems, not crashing on the sites that used to give me problems, at least not yet. Recommend this upgrade for all, incl

  • Can't stop applications automatically starting in user account

    I created accounts for each kid. Parental control is active, but no restrictions on which applications they can use; just website restrictions and time limits. Allowed them to modify the dock. Each time they log in various applications automatically