Suggestions on calculating work days instead of Calendar days

Hi there,
I would like for someone to suggest how would I approach a project in calculating a date that would consider if a date is a holiday or a work day. For example: If I take current date + 7 normally it would be a week (7 days). However, if a day in that week is a holiday, then it would return the 8th day. If the 8th day falls into a weekend, then, get the next work date.
Any ideas would be greatly appreciated.
Thanks for your assistance in advance.

Thanks. This give me a pretty good start. I am thinking that I need a table that store holidays (Non-work days excluding weekend). Once I load this table into memory, then I would check the first date + 7. Then compare the two dates against the array to see if there is a holiday. If there is, then I would increment the end date by 1 and validay if it is a weekend date. If it is, I would continue to incurement until it is nolonger an weekend date. Once I have that, I would check the date against the array (where I left off) and continue to validate to see if there are more holidays.
What do you think about this approach?

Similar Messages

  • To change hospitalised quota to absence days instead of calendar days

    Hi experts,
    Current setting hospitalised quota in my company is 40 days per annum. However, it is included non-workings days (Saturday& Sunday). I want to change the setting so that hospitalised qouta will deduct only absence day. Not Calendar days. Where the config that I can change it. Thanks in advance

    Hi,
    You need to change the Counting Rule and check on the option Planned Hours>0.
    After this the couting rule will take into account only the weekdays.
    Let me know if it resolves the issue.

  • Dunning interest calculation - taking 360 days instead of 365 days

    Dear Friends,
    I have done the dunning customization and forms are generating properly including the days in arrears.  But for the dunning interest calculation, it is taking only 360 days instead of 365 days. Because of this, there is a difference in interest amount in dunning (F150 tcode) and interest calculation (FINT tcode).
    Please guide me how to resolve this issue.
    Thanks in advance for your help.
    Regards,
    Dwarak.

    hi
    check the below configuration.
    spro-
    interest calculations- global settings-
    prepare item interest calculation/prepare balance interest calculations.
    here you select calender type : G(365 days)
    chandra

  • 366 days depreciation instead of 365 days

    Hi,
    In the year 2008 system is calculating depreciation for 366 days instead of 365 days due to feb 28 days. How to calculate 365 days depreciation? Can any one guide me on this.
    govind

    Hi,
    sorry. as per config settings 366 days (feb we have given 29 days default) but system want to calculate 366 days only in 2009 fiscal year not in 2008 fiscal year. becuase it is 365 days only. so system need to calculate 365 days in 2008 fiscal year. how to achieve this?
    govind.

  • Calculating the planned delivery time in calendar days or working days

    Hi,
    It seems that there is a way to calculate the planned delivery time in calendar days instead of working days.
    When I use the "Planned delivery time calculation" (WPDTC), in Evaluation Options, I got the message :
    "Note that follow-on applications are currently interpreting the planned delivery time as calendar days.
    If they should be interpreting the planned delivery time as working days, you need to modify these applications. If the planned delivery time should be calculated in working days, there needs to be a factory calendar in Customizing with the calendar ID Country of vendor."
    When MRP create a PR -with MDBT, MD03 or MD01- I want my Planned delivery time to be in working days.
    I can't manage to make that "If the planned delivery time should be calculated in working days, there needs to be a factory calendar in Customizing with the calendar ID Country of vendor."
    I would appreciate your help.
    Thanks
    PYR

    Hi,
    I understand that it makes sense that vendors calendar has to be different (compared to my plant).
    But, I still don't understand why in the SAP help, they say "If the planned delivery time should be calculated in working days, there needs to be a factory calendar in Customizing with the calendar ID Country of vendor."
    It seems that planned delivery time may follow a calendar.
    Thanks,
    PYR

  • Why in iOS 6 (Calendar) it opens at the next day instead of today?

    Why in iOS 6 (Calendar) it opens at the next day instead of today?

    Nope... some of these are birthday all-day events created three years ago, or more. When I edit the events there is no time zone listed, but here is what I do notice:
    When I view the "repeat" information for one of the problem events in iOS, it says "Custom." When I select that I see that it says "Yearly" instead of "Every Year." The events that do not have a problem are set to repeat "Every Year"
    The two I just compared were created in 2008 (the one that works) and 2011 (the one that doesn't). I am guessing that I created one of these events using my iPhone, and the other using Google Calendar via a Web browser. I will try to create some test events using both devices to see if there is any difference.

  • Set the broadcaster to email out on work days instead of daily

    Hi Friends,
    Any one can help me to set the BEX broadcaster to email out on work days instead of daily?
    Regards
    Vishwanath

    Hi Viswa and Pravender
    I have a similar issue here:
    I'm working on BW3.5 module and I'm trying to scheule a report in BEX broadcaster with a predefined time. Eg: Every Wed day after Fisc quarter ends. I created a job with name TP_BROADCASTING_**** and included the ABAP program in step :RSRD_BROADCAST_FOR_TIMEPOINT.
    Now In the start condition I selected start date as wed day after fisc qtr close and put the period value as every 3 months and restriction in cal Id as factory calendar.
    Now I have two questions...How can I select just wed nesday after the fisc quarter close ? Is there a std SAP exit variable exist for this ? Or do I need to create one and write ABAP code in Exit ? I tried with Event and other ways but its not showing in scheduler...
    Second one is I logged in to Broadcaster and created new setting for query and filled all recipents etc...now When I tried to schedule this I can not see my Quarterly pre defined time here...But if I change this time to some other calender time period I can see that in scheduler...
    Is there any other way of scheduling the reports at a specific time period ?thanks inadvance
    Sam

  • Problem with all day events on iPad calendar spanning multiple days instead of one

    I'm having an issue editing all day events on my iPad calendar. If I reschedule an event to the following day, it now spans the two days instead of just one.
    The issue only happens on my iPad. I can reschedule appointments on my iPhone without any problems. Date and time zone are set correctly.

    I experience the same when we subscribe on calendars (ICS) from Exchange. Been testing on two iPads 3 (6.0.1). The strange thing is that everything work as normal on my iPhone 4S (6.0.1). The timezone is correct and the all same on all three devices (default setting).
    The meeting details (fetched live from Exchange) is also naturally the same. Far as I can see, this applies only the on iPads?
    Example
    https://webmail.frogn.kommune.no/owa/calendar/[email protected]/Råd_og_u tvalg/calendar.ics

  • Day link in calendar not working properly

    Hi
    i created a calendar region with
    an sql query like
    select date_column,display_column , link_column from table
    and in
    Day link :
    Target : Page on this app
    set these items : P11_DATE_ITEM
    with values #date_column#
    to redircet to page 11.
    But when i use a previews month is sep 2006 and before
    it is working.Set the P11_DATE_ITEM with the selected day value (ie 12/09/2006)
    When i select a day in current month and after that month it
    returns to P11_DATE_ITEM #date_column# text and not the selexcted day (i e 2/10/2006)
    Anyone can help me with this ?
    Regards
    Aris

    thank you.
    I managed to solve that by setting a null day record for each day and
    now i can select any day in calendar.
    Aris

  • Assign predecessors in calendar days, while working only business days

    I would like to try to put my predecessors in terms of calendar days - as this is what I'm dictated. I would like it to count calendar days and schedule business days.  i.e. Task #1 needs to happen 10 calendar days after the start of the project.  
    However, I would only like tasks to be scheduled on standard working days (M-F, 8-5).  If Task #1 were to fall on a holiday or weekend it would be desirable to have the task be scheduled subsequently.
    As you can see in the attached picture, from the award date, the first weekly teleconference is not 4 days later it's been scheduled for the following monday, which works.  But for the kickoff meeting, 10 days should be the 11th, which is a Saturday. 
    Following the same logic the task should be scheduled for Monday the 13th. 
    Task                            | Duration        |  start            
    |    Finish                 |    Predecessor
    Contract Award            | 0 days          | Wed 10/1/14  |  Wed 10/1/14      |         
    Weekly Teleconference | 869.13 days | Mon 10/6/14   | Mon 3/19/14       |      1 ss+4days
    Kickoff Meeting             | 2 day?          | Wed 10/15/14 | Thu 10/16/14     |      1ss+10days
    (sorry i have to type it out, i'm unable to attach a picture)

    skikeb122,
    Enter your link information as follows:
    1SS+4edays
    1SS+10edays
    John

  • Calculating the depreciation pro days instead of periods

    Hi All,
    I've to calculate the depreciation pro days instead of periods.
    Is it possble? How to do it?
    Thanks
    G.Rossi

    Hi Rossi,
    you have to make a transfer the values to a asset with a daily calculating depreciation key. You can not change the depreciation key from normal depreciation to daily depreciation on a asset which has already values.
    If you are interested in technical details: If you create a asset ANLB-PERFY is set according to the depreciation key (T090NA-XDAILY). ANLB-PERFY can not be changed in the standard. If you change the depreciation key from normal depreciation to a daily calculating depreciation key (T090NA-XDAILY = initial to T090NA-XDAILY = X) you will get the AA 662.
    regards Bernhard

  • Where to go to see Lead Time settings? Calendar days vs working days

    Hi everybody,
    II'm trying to find the screen where details regarding Lead Time settings are shown. I'm looking specifically for information on the type of days we're using to identify Processing LT's. I'm not certain whether we're using calendar days or working days.
    I'm sure there is a simple way of finding this information out, but just don't know where to look/change the setting.
    Thanks,
    BG

    This is NOT a setting that you can view.
    Oracle always behaves like this.
    Best way to verify this is to create an item with PreLt=5, Processing LT=7 and Post-processing lt=5.
    Then create a sales order with a due date of say 9/21. Make sure 9/1 to 9/21 is regular 5 days week.
    Assuming no holidays, it will mean that you need material on the dock on 9/15 (5 days of PPLT = 7 calendar days.)
    So when MRP/ASCP creates a Req/PO, the promised date will be 9/15.
    Also, the Days from today will point to 9/1 - which includes 7 days of processing + 7 days of preprocessing (5 working days)
    Hope this answers your quesiton.

  • Calculating Work Day Formulas

    We've recently adopted BOBJ/Webi at my company and I find the software to be rather easy to use in some instances and mind-wreckingly hard in others. One roadblock myself and other users are bumping into is calculating work days. A definition of a work day in this instance would be Monday through Friday. The monkey wrench is that we would also like to subtract out holidays, such as July 4th and Thanksgiving. Then end product would be calculating out what work day the current date is and how many days it is out of so that a simple straight-line extrapolation can be made (Metric/Current Work Day)*Total Work Days. Also, what we invoice/ship is not accounted for until the following day... for example, today (2.22.10) would be the 15th workday in February out of 20 total work days.
    Appreciate any and all help/assistance/counsel I can get on this.
    Ryan

    Hi Ryan,
    If I have understood your question then I think following solution may help you.
    Do you have your Universe created on the top of BW query or is it some other Database?
    If it is some other database then create couple of Filter at Universe level: Such as Holidays so that you can use this one to subtract holidays:
    For Example:
    ucase(Calendar_year_lookup.Holiday_Flag)
    ucase(Calendar_year_lookup.Holiday_Flag) = 'Y'
    Then you create another Dimension for Work days that would be between Monday to Friday.
    Once they are created in Universe you export Universe.
    Now create a formula where you would use month minus custom dimension workdays and minus holidays to get actual work days which would be from Monday to Friday and son on.
    Basically we can achieve this by using filters and formulas.
    Wish you good luck.
    Bashir Awan

  • None of the Office 2010 apps will open, any suggestions.  Worked fine until about 3 days ago

    None of the Office 2010 apps will open, any suggestions.  Worked fine until about 3 days ago

    as it turns out - I think it might be Ram related... crash log has this..
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000

  • Standard variable exist for calendar day that uses current working day

    Hi
    Is there any standard range Variable that exists for info-object calendar day that uses the manual entry for the lower limit and upper limit as current working day .
    Please advise.
    Thanks.

    There are a number of standard variables 0n 0CALDAY - of processing type SAP exit, Input Allowed, Select-option or Range. You will have to check whether they give the default value of current date though as that will have to be looked up from documentation or user-exit code (or from the name of variable).
    To shorten the candidate list, SE16 on table RSZGLOBV where
    OBJVERS = D (Delivered version)
    IOBJNM = 0CALDAY
    VARTYP = 1
    VARPROCTYP = 4 (SAP Exit)
    VPARSEL = I, S (Range or select-option)
    VARINPUT = 'X' (Ready for input)
    It should give you about 6-7 variables that you can explore further. It is likely that none of these default to current date. Some of these are
    0DAY_***
    0TWB_30T
    0CDL12CM
    0I_CCMDR
    0CD_L14D
    0S_CALDAY
    0CD_L7D
    I see that you are looking for current 'working' day as default. Very likely the answer is 'no' in such case.
    Edited by: Ajay Das on Mar 1, 2011 7:39 AM

Maybe you are looking for