OTL Holiday Worked Hours

I am trying to configure a premium eligibility policy so that if an ee works on a holiday, they get time and a half for working that day (plus any holiday pay that they manually enter because they also get 8 hours of holiday pay). Therefore, an ee working a holiday would get a total of 2.5 times their rate of pay.
Under Element Time Information I have "Hol Hrs Wkd Prem" setup with an absence category of "Other Premium" (eff date 1/1/07).
Under Premium Eligibility Policy I'm not sure what my "base hours type" and "authorized premium" should be set at.
Thanks for your help.

base type would be regualr hour and premium would be the Holiday premium.
--Shiv                                                                                                                                                                               

Similar Messages

  • Calculate Date/Time Difference in a Calculated Column Omitting Weekends, Holidays and Non-Working Hours

    I am looking for a formula to use in a calculated column that calculates the difference between two date/time fields while excluding weekends, holidays and non-working hours
    6/1/2010 9:43 AM - 6/7/2010 1:45 PM
    Here is the closest that I have gotten; however, this formula gives me a result of 96:
    =IF(AND((WEEKDAY([Resolved Date],2))<(WEEKDAY(Created,2)),((WEEKDAY(Created,2))-(WEEKDAY([Resolved Date],2)))>1),(((DATEDIF(Created,[Resolved Date],"D")))-(FLOOR((DATEDIF(Created,[Resolved Date],"D")+1)/7,1))-3),(((DATEDIF(Created,[Resolved Date],"D")))-(FLOOR((DATEDIF(Created,[Resolved
    Date],"D")+1)/7,1)*2))*24)
    Any and all assistance is greatly appreciated!

    I don't know how to exclude holidays but i exclude weekends(Sat&Sun)-
    IF(ISERROR(DATEDIF([Start Date],[End Date],”d”)),””,(DATEDIF([Start Date],[End Date],”d”))+1-INT(DATEDIF([Start Date],[End Date],”d”)/7)*2-IF((WEEKDAY([End Date])-WEEKDAY([Start
    Date]))<0,2,0)-IF(OR(AND(WEEKDAY([End Date])=7,WEEKDAY([Start Date])=7),AND(WEEKDAY([End Date])=1,WEEKDAY([Start Date])=1)),1,0)-IF(AND(WEEKDAY([Start Date])=1,(WEEKDAY([End Date])-WEEKDAY([Start Date]))>0),1,0)-IF(AND(NOT(WEEKDAY([Start Date])=7),WEEKDAY([End
    Date])=7),1,0))
    -Thanks
    Swapnil

  • Worked hours code

    Hello everyone,
    I need some help with an ABAP code:
    I have records coming in with Employee ID, Date and Worked hours along with some other fields.
    I need to look up the employee id against another table to figure out if the employee depends to a particular region or not and the date is holiday or not from different table.
    Also I would like to see if worked hours are more than 8 and put the extra hours into a differemt field for calculating if the total hours in a week exceed 40.
    Can you please help with this code?

    Sorry. here the Post again (complete )
    Hi Raj Coppar,
    try this code:
    this should be implemented in the End-Routine if you're working with BI 7.0.
    first you need to define the internal tables that have same structure as table where comparing information is stored.
    Code:
    Data: it_table TYPE TABLE OF /n42/YOURTABLE,
             li_table  LIKE LINE OF it_table.
    DATA:
               KALENDER      LIKE SCAL-FCALID,
               with_ATTRIBUTE LIKE SCAL-INDICATOR,
               lc_holiday_found    LIKE SCAL-INDICATOR.
    DATA: BEGIN OF FEIERTAGE OCCURS 5.
                INCLUDE STRUCTURE THOL.
              DATA: END OF FEIERTAGE.
    *Store needed information for comparison
    select * from /n42/YOURTABLE into table it_table.
    sort it_table by /n42/employeeID.
    Loop in the Data_PAckage
    LOOP AT SOURCE_PACKAGE ASSIGNING <source_fields>.
    *Check if Date is a Holiday
          CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
               EXPORTING  DATE                 = <source_fields>-Date.
                           HOLIDAY_CALENDAR_ID  = KALENDER
               IMPORTING  HOLIDAY_FOUND        = lc_holiday_found
               TABLES     HOLIDAY_ATTRIBUTES   = FEIERTAGE
               EXCEPTIONS HOLIDAY_CALENDAR_ID_MISSING       = 1
                            DATE_AFTER_RANGE                  = 2
                           DATE_BEFORE_RANGE                 = 3
                           DATE_INVALID                       = 4
                           HOLIDAY_CALENDAR_NOT_FOUND        = 5.
    *read internal table and make your checks
    READ TABLE it_table BINARY SEARCH INTO  li_table
          WITH KEY /n42/employeeID = <source_fields>-/n42/employeeID.
    if record was found.
          IF sy-subrc EQ 0.
    *if region is.....
             if li_table-/n42/REGION = "Whatever" and
    *Date is a Public Holiday
             lc_holiday_found = 'X' .
    *Claculate Overtime
                 if <source_fields>-Hours > 8.
    *write overtime to Overtime Field
                  <source_fields>-overtime = <source_fields>-Hours - 8.
                 endif.
          ENDIF.
    modify Result_Package.
    endloop.
    hope this helps.
    BR,
    Younes

  • Code for employee worked hours calculation

    Hello everyone,
    I need some help with an ABAP code:
    I have records coming in with Employee ID, Date and Worked hours along with some other fields.
    I need to look up the employee id aginst another table to figure out if the employee depends to a particular state or not and the date is holiday or not from different table.
    Also I would like to see if worked hours are more than 8 and put the extra hours into a differemt field for calculating if the total hours in a week exceed 40.
    Can you please help with this code?
    Thanks,
    Raj

    >
    Raj Coppar wrote:
    > Hello everyone,
    >
    > I need some help with an ABAP code:
    >
    > I have records coming in with Employee ID, Date and Worked hours along with some other fields.
    >
    > I need to look up the employee id aginst another table to figure out if the employee depends to a particular state or not and the date is holiday or not from different table--- u can use FM BKK_CHECK_HOLIDAY to find out the given date is holiday or not ? Also I would like to see if worked hours are more than 8 and put the extra hours into a differemt field for calculating if the total hours in a week exceed 40.
    >
    > Can you please help with this code?
    >
    > Thanks,
    > Raj

  • Resource availability during Non-Working Hours and Weekends

    Hi Gurus,
    Aim: Make the Resource available during Non-Working Hours and Weekends
    Requirement: CRP functionality enabling
    In CRC2 I have selected capacity tab and in capacity header under 'Change Interval and Shifts' button. I have Inserted a new Interval period and given the validity from/to dates(Non-Working day - Saturday) and Saved.
    When i execute the Capacity Planning CM01, there is no change. The Resource availability still shows as "0"hrs for this particular date and for rest of the days it shows as 8hrs.
    I have checked the same even after executing the MRP, No change in Capacity Planning Overview - Still the available Capacity Showas as 0
    Please guide me, how can i use my resource during the holidays. Means make the system understand that the defined day is a working day though it is holiday as per factory calendar
    Please correct me whether am i missing any settings or i should follow some other logic
    Regards,
    Tam

    Hi Partha,
    In workdays i dont have any such option "2"
    As per standard list I could see only 3 entries in the possible values(F4) popup
    "Blank" - Working days according to factory calendar
    "0" - Non-Working days(Overrides factory Calendar)
    "1" - orking days(Overrides factory Calendar)
    I have even tried with option "0" and "1" its still the same, when i enter the period From and To date the fields for the entries Shift start and end date, workday, Shift Seq, Length of the shift, No.of shifts.........are jumping to the next line item.
    Because of which i understand that the entered values is not corresponds to the newly defined period
    Pls guide me to how to make the resource available during non working days
    Regards,
    TamNen

  • Working Hours Calculation possible ?

    Anyone know if there is a FM to calculate the Working Hours that exist between two dates.
    For instance ...entire year may = 2080 working hours.  User wants to know Working hours between
    any two dates ....  like....   July 1, 2007 and   May 5, 2008.....
    Thanks
    MPersson

    Rob,
    Thats a valid point.  In my case I am only determining the total possible working hours for a budget report.
    Prior to this, the supervisors were simply using a full year of 52 weeks x 40  hrs = 2080.  This report takes
    the hours captured on the CATS timesheet and processes them accordingly. So Holidays and any leave
    time is identified within the program code and handled then.
    Thanks
    MPersson

  • Actual Working Hours

    Dear All
    In BW there is a info object DUR_ACTUAL - which represents Actual working hours. Please let me know
    1) Is this working hours including the leaves ( emergency sick leaves, absences)
    2) how can i get this data in ECC in hours of actual working
    Please give let me know if you any details on this
    Regards
    Gajesh

    HI GAJESH,
    Actual working hours info is fed from many HR sources including attendances/absences/personnel work schedules/holiday calendars,etc. In BW system, actual working hours data is fetch using the function module HR_BIW_GET_DATA. Please examine this FM more closely.
    Regards,
    Dilek

  • Working hours of an employee between a given date range

    Hi Everyone,
    how to calculate working hours of an employee between a given date range
    Please anyone qive me some idea..
    Thanks in advance

    Hi Lathessh,
    Thanks for the reply here is the sample data. Actually we have two datetime field and i want to calculate the Ageing of an employee , by excluding of sunday and holiday between startdate and endDate.
    Ageing should be in hours.   Thanks
    StartDateTime
    EndDateTime
    HolidayList
    2/24/2014 11:55
    3/1/2014 16:45
    1/1/13 0:00
    2/24/2014 12:08
    2/28/2014 12:55
    1/14/13 0:00
    2/24/2014 16:16
    2/28/2014 15:20
    1/25/13 0:00
    2/14/2014 12:56
    3/4/2014 16:20
    3/27/13 0:00
    2/14/2014 12:56
    3/4/2014 16:20
    3/29/13 0:00
    2/14/2014 12:56
    3/4/2014 16:20
    4/24/13 0:00
    2/14/2014 12:56
    3/4/2014 16:20
    5/1/13 0:00
    2/26/2014 13:53
    3/4/2014 16:20
    8/9/13 0:00
    2/27/2014 12:13
    3/5/2014 13:05
    8/15/13 0:00
    3/3/2014 14:42
    3/5/2014 17:05
    8/20/13 0:00
    3/3/2014 14:42
    3/5/2014 17:05
    8/28/13 0:00
    3/3/2014 14:42
    3/5/2014 17:05
    9/18/13 0:00
    3/6/2014 12:28
    3/6/2014 17:55
    10/2/13 0:00
    3/6/2014 12:59
    3/7/2014 13:55
    10/16/13 0:00
    3/6/2014 14:37
    3/7/2014 11:15
    11/5/13 0:00
    3/6/2014 14:57
    3/7/2014 12:10
    11/15/13 0:00
    3/4/2014 17:21
    3/10/2014 15:55
    12/4/13 0:00
    3/4/2014 17:21
    3/10/2014 15:55
    12/25/13 0:00
    3/6/2014 12:08
    3/10/2014 14:10
    12/31/13 0:00
    3/6/2014 13:31
    3/10/2014 13:05
    1/1/14 0:00
    3/6/2014 13:14
    3/11/2014 13:20
    1/14/14 0:00
    3/6/2014 13:14
    3/11/2014 13:20
    3/17/14 0:00
    3/11/2014 14:29
    3/13/2014 11:20
    4/8/14 0:00
    3/11/2014 14:29
    3/13/2014 11:20
    4/14/14 0:00
    3/12/2014 12:56
    3/13/2014 11:45
    4/18/14 0:00
    3/12/2014 12:56
    3/13/2014 11:45
    5/1/14 0:00
    3/12/2014 14:02
    3/12/2014 18:10
    7/29/14 0:00
    3/12/2014 14:22
    3/12/2014 18:05
    8/15/14 0:00
    2/24/2014 16:49
    3/14/2014 12:10
    8/18/14 0:00
    2/24/2014 16:49
    3/14/2014 12:10
    8/29/14 0:00
    2/24/2014 16:49
    3/14/2014 12:10
    10/2/14 0:00
    2/24/2014 16:49
    3/14/2014 12:10
    10/3/14 0:00
    3/12/2014 11:31
    3/14/2014 15:55
    10/6/14 0:00
    3/12/2014 13:31
    3/15/2014 12:20
    10/23/14 0:00
    3/12/2014 15:31
    3/15/2014 11:10
    10/24/14 0:00
    3/12/2014 15:49
    3/14/2014 13:55
    12/25/14 0:00
    3/12/2014 16:19
    3/14/2014 15:05
    12/31/14 0:00

  • Shift Time (working Hour) of Shipping Point

    We have created a new shift(working hour) and the shift is assign to tthe  shipping Point. As the requirement is that for delivery schedulling the shipping point should consider the timing of shipping point but the system instead of taking timing from the shipping point is taking the timing of the users desktop.
    Is there something can be done about it ? or I am missing out on something.?
    Please help

    Hi ,
             I think system is calculating the Loading time properly.Loading time is determinaed based on the availability of material after it has been picked/packed. As your shipping point calender has working days/hrs on every alternate day , even though the material is available on 1 st and 2 nd being a holiday, loading will happen on 3 rd. Kindly please let me know If you need any more information on this.
    Regards
    Ram Pedarla

  • Std report for viewing emp working hours

    Hi all,
    I want to know what is the standard report available in HR module to view the Employee aproved working hours and Unapproved working hours...?
    Regards,
    Shanthi

    Hello,
    maybe you can find this data, at the PT62, PT64, PT65, PT90_ATT and PT91_ATT TRANSACTION CODES.
    Regards

  • In iCal, "Available Meeting Times" greys out working hours one day off, MS Exchange

    I am using iCal, accessing an MS Exchange server. When setting up a meeting, "Available Meeting Times" greys out the non-working hours of potential meeting participants. However, the days are one day off. E.g. the working hours of my collegues are displayed are Tuesday-Sunday instead of Monday-Friday. The dates and times of meetings are relayed correctly. Only the display of the working hours seems to be off.
    Needless to say that my collegues are using Windows Outlook, and everything works there.

    I still have the same issue. Had it ever since at least 2010 and meanwhile we switched Exchange-Servers and I'm on Mavericks, but still. Looks to me as if iCal requests something like "getWorkDays" from teh Server. The Server probably replies [2,3,4,5,6]. When the week starts on Sunday, this is perfectly fine. But if the Week starts on Monday, this will give you Tue-Sat as available Days. So it might be a bug in either Exchange or iCal to treat that information correctly, but I'm not obv. not sure about that.

  • Project 2013 - entering work hours at a monthly level

    Hi all, 
    Any help with this 'hopefully small' problem will be hugely appreciated. It's not so much a problem, but
    me still being new to Project - sorry! As a summary of what I am working with:
    I have entered a list of tasks (all set to Manually Scheduled).
    I have entered a number of resources into the Resource List. 
    I have also assigned relevant resources to the tasks. 
    Using the Task Usage view, I would now like to begin entering Work hours for the resources assigned to the
    tasks. We are planning at a monthly level, so I know how many hours each resource is expecting to be spending on each task over each month. 
    I have set the Timescale of my Task Usage screen to a monthly scale, thinking that this would allow me to
    enter total hours for each month. As an example, one of the resources assigned to a task is set for 15 hours of Work in April. It all seems to look OK on input. 
    My problem is however, I would like the Start and Finish fields to reflect this, and span over the months
    in which the Task's resources will be doing work. It doesn't seem to pick up the month accurately. Although I have entered the 15 hours in the column labelled April, the Start and Finish dates have come out as 30/04/14 and 30/05/14 respectively. I was hoping
    the Start and Finish times of that row to be 01/04/14 and 30/04/14 respectively, but they are a month out of line, and has show the work to be happening over May, not April. Is there y way I can change this?
    I hope this makes sense as a question? Any help at all would be brilliant. Please do let me know if I've
    missed any detail and you need some more info. I'll also continue looking through the forums to check if this has already been asked. 
    p.s. I tried to upload an annotated image, but my account needs to be verified first. Do I need to do anything to request this? I didn't receive any usual 'verification' links in MS's email on opening this account.
    Thanks very much, 
    ac18

    Hi John, Julie,
    Thank you both very much for the help! Yes good spot, I did post it on both forums (http://www.msofficeforums.com/project/21190-project-2013-entering-work-hours-monthly-level.html) - it's been years since I've used forums of any kind, and it's great to see
    experts being active across multiple sites! 
    I have given both suggestions a try, but unfortunately am still not quite there yet. 
    John, although your tip seems to work OK, I think I was hoping to find a way for the Start and Finish times to automatically span across the Work hours I have entered. If I was to then enter another 5 hours, but this time for March, the Start-Finish dates
    should auto update to be 01/03/14 - 30/04/14. I understand now that this may require me to be on an Automatically Scheduled project? 
    Julie, your screen shot on the msofficeforums.com website is exactly what I am looking to achieve! I would like to enter month-level Work data, and that looks to be exactly that. I did try entering a zero in the month immediately after the last month that
    had hours in it, but Project seemed to simply ignore it, with no visible change to the dates. 
    I have done some further investigating, and there does seem to be something different happening with my Project version (it's Proj Prof 2013). I have access to another computer with Project 2010 installed on it, and this doesn't seem to cause an issue. Note,
    I did need to have set the tasks as Auto Scheduled. 
    Essentially, if I try and exactly replicate Julie's example on both versions with the following steps, I get slightly different results:
    Tasks set to Auto-Scheduled. 
    Set Project Start Date to 01/01/14
    Enter some resources. 
    Switch to Task Usage view. 
    Set the Timescales on the right hand side to: Bottom tier=Months, Middle tier=Quarters. 
    Enter a task. 
    Assign resources to the task. At this point, by default 8 hours worth of work appears for each assigned resource. In 2010, these hours appear in the January 14 column. But on my 2013 laptop however, these hours appear under the December 2013 column. Strange?
    Anyway, in both cases I clear these default hours by entering zeros in their places.
    I now enter 15 hours under April 2014 for one of the resources on the task.
    In 2010, the Start and Finish dates of the assigned resource's row update to 01/04/14 - 30/04/14.
    In 2013 however, the Start and Finish dates update to 30/04/14 - 30/05/14. 
    I have a feeling that this discrepancy is perhaps at the heart of my problem? Is there a setting with the application that I am not making?
    Thanks again, 
    Arjun

  • How can i do a proper calculation of working hours?

    I have tried doing a calculation of my working hours using the ABS formula but it still gives me the wrong answer.
    5:00 PM
    1:00 AM
    16h
    the formula is =ABS(A1-A2)
    the resulte shoulb be 8h but it shows 16h....

    giltober wrote:
    Jerry,
    I start working at 5pm and finish in 1am which means i worked for 8 hours.
    the only way to get the correct answer is to enter the dates also?
    is there a formula that i can enter that will take in consideration that every time i work i start at the afternoon and finish after midnight?
    i have a cell that i enter the date..
    im still new to numbers and i dont know i to put that into consideration...
    thank you for your help
    Gil.
    That's right, my mistake on the detail. I must have been distracted. I stand by the rest of my post.
    Here's my approach to solving the problem:
    This will take care of the situation where you sometimes input both times on the same day even though they represent different days.
    Jerry

  • CRM 5.0 - IC WebClient - Due Date - Working Hours for Service Ticket

    Hi Gurus
    We're using a Service Ticket Transaction which has a Date Profile which provides a 48 Hour window for which the user must complete the Service Ticket Resolution.
    The issue is I want to tie this up to the Business working Hours. I just cannot figure out where I define the Business Working Hours.
    This is a Standalone CRM Implementation. Maximum points for the right answer.
    Many Thanks
    Panduranga

    Hi,
    The response time of 48 Hours must be maintianed in response profile... right?
    Similarly there is a availability profile in which you maintain the business hours/ availablity of your resources.
    These both together make a service profile.
    The availability profile is maintained in SAP Easy Access> Service> Service Contracts and Service Plans --> CRMD_SERV_SLA - Maintain Availability and Response Times
    Hope this will help
    Regards
    Rekha Dadwal

  • Calculation of working hours

    Hi all,
    I need a function module for the calculation of working hours. supose in the selection screen if i give 01.02.2007 to 01.10.2007 i need the calculation of working hours in that given range depending upon the personal number. Suppose if the employee is absent for 3 or 4 days within particular period of theat given range that days needs to be eliminated and should calculate for the rest of the days. Please find the below code iam finding a problem in this piece of code. Please this issue is very urgent please reply ASAP.
      gv_day = sy-datum - 7.
      CALL FUNCTION 'HRWPC_BL_DATES_WEEK_INTERVAL'
        EXPORTING
          datum    = gv_day
          week_pst = 0
          week_ftr = 0
        IMPORTING
          begda    = gv_begda
          endda    = gv_endda.
      IF sy-subrc <> 0.
      ENDIF.
    *AT SELECTION-SCREEN OUTPUT.
      pnpbegda = gv_begda.
      pnpendda = gv_endda.
    START-OF-SELECTION.
      SELECT sachn
             usrid
        FROM t526 INTO TABLE git_tmadmin
       WHERE sachn NE space
         AND usrid NE space.
      IF sy-subrc EQ 0.
        SORT git_tmadmin BY usrid.
      ENDIF.
    GET pernr.
      rp-provide-from-last p0001 space pn-begda pn-endda.
      IF pnp-sw-found <> 1.
        REJECT.
      ELSE.
        IF p0001-kostl NOT IN s_cctr.
          REJECT.
        ELSE.
          rp-provide-from-last p0007 space pn-begda  pn-endda.
          IF pnp-sw-found = 1.
            MOVE p0007-wostd TO gs_empdtls-wostd.
          ENDIF.
          MOVE :  p0001-pernr TO gs_empdtls-pernr,
                  p0001-kostl TO gs_empdtls-kostl,
                  p0001-ename TO gs_empdtls-ename,
                  p0001-sachz TO gs_empdtls-sachz.
        Employee Position from PA0001
          MOVE: p0001-plans TO gs_empdtls-plans.
          APPEND gs_empdtls TO git_empdtls.
          CLEAR gs_empdtls.
        ENDIF.
      ENDIF.
    Regards
    Mahesh

    What error are you getting?

Maybe you are looking for

  • How do I use more than one email address via Thunderbird

    I have had only one AOL email address that I used via Thunderbird. I have now created another AOL email address for a specific reason. How do I start to use this new email address via Thunderbird?

  • No Internet acces or only one computer at the time

    Hi everybody, I'm a freelance IT supported and I'm new to Apple. I studied and always worked with PC but with people having more and more Mac at home I had to adapte. I have a problem at a customer's place which is kinda hard to explain. I'm unable t

  • CLI Mode won't work

    I use JBuilder 8 to develop Java projects and everything's fine. however when I try to compile / run a java file in DOS CLI mode, error pop-up: C:\>java Error opening registry key 'Software\JavaSoft\Java Runtime Environment\1.4' Error: could not find

  • How is the attendence marked .

    Hi all How is the attendence marked when we are using the access card system in the company. The question here is do the last in and last out accessed at the company enterence in one perticular day is considered or if we take a break of few minutes o

  • Fuzzy Lookup SQLDUMP when run in 32 bit

    I'm running a SSIS package on a 64 bit machine that has to run in 32 bit runtime as several data sources are from excel. After I've loaded the source data into SQLServer EE [64 bit] I run a fuzzy lookup to match & append some columns. The data flow r