Prorate absence Quota monthly based on number of days worked.

Hi All,
I need to Generate Absence Quota Prorated Monthly on the following criteria.
4.5 days Per month.
0 - 5 day = 0.5
6-10 days = 1.5days
11- 15 days = 2.5 days
16-20days = 3 days
21 - 25 = 3.5 days
26 and above = 4.5 days
54 Quota Yearly entitlement
Negative Time evaluation -
Time evaluation run at end of the month.
If use Base Entilement as .15 / days and daily accural in Table T559L ,
then without any PCR quota is generated but for 31 days it generates 4.65 days and people joining middle of the month is not as per the criteria mentioned above ie as per number of day worked.
Can any one guide me with the steps and PCR's required if any.
Thanks
Sethu

Hi Dinesh,
Thanks for your response. I have already created and  assigned it in T559L. The below is the Rounding rule.
Lower inc     Upper     Target     Rollout
0.00000 X     0.75000      0.15000 X
0.90000 X     1.50000      1.50000 X
1.65000 X     2.25000      2.50000 X
2.40000 X     3.00000      3.00000 X
3.90000 X     4.65000      4.50000 X
As per my earlier thread description when i make it daily accural and assign this rounding rule then for 31 days it calculates 4.65 days and for people joining middle or last week of the month it is not prorating as per the requirement,
Thanks
Sethu

Similar Messages

  • How to calculate the number of days worked for a given period

    I need to calculate the number of days worked by contractor employees for a time period to be entered by a user. I am building a query on an infoset which contains employee information including contract start date and contract end date for the employee.
    Ideally I'd like the user to enter the time period which should be reported on e.g. 01.08.2009 to 31.08.2009
    The report should then identify all the contractor employees which were working during this period and to work out how many days they worked during this period. Obviously the contract start and end dates could fall both inside and outside the reporting period.
    Can this be done and if so, do you have any suggestions as to how to do it?
    Thanks.

    hi
    So here you will first have to load the master data table employee in one internal table and read this table with the variables entries.
    Your code in the reporting exit should look like that.
    bye
    data : wa_employee type /bi0/pemployee.
    When 'ZDATE1'
    if i_step = 2.
    LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZDATE2'.
    clear l_s_range.
    clear wa_employee
    1- select the entries from table employees
    select single employee dateto datefrom
    from /bi0/pemployee
    into corresponding fields of wa_employee
    where dateto le loc_var_range-low
    and datefrom ge loc_var_range-high.
    if sy-subrc eq 0.
    CALL FUNCTION 'FIMA_DAYS_BETWEEN_TWO_DATES'
       EXPORTING
           i_datum_von  = wa_employee-datefrom
           i_kz_ult_von = 'X'
           i_datum_bis  = wa_employee-dateto
           i_kz_ult_bis = 'X'
           i_szbmeth    = '1'
       IMPORTING
          e_tage       = no_days.
           l_s_range-low  = no_days.
           l_s_range-sign = 'I'.
           l_s_range-opt  = 'EQ'.
          APPEND l_s_range TO e_t_range.
              ENDIF.
            ENDIF.
    endloop.
    ENDIF.
    Boujema

  • Absence Quota to be generated on basis of Working Day

    Hi Experts,
    I have got a scenario in Time management ( negative time management, no time evaluation) where the client wants absence quota to be generated on the basis of working days of employee. I have checked the configuration for creating base entitlement V_t559E but the following options are available:
    Currently i have done the cofiguration on the basis of Accrual period, leave entitlement is 22 days in a year. Wherein entilement each month is coming to 1.83 leaves, but client wants that in case employee is come for only 5 working days in a month the leave generation should accordingly get prorated and in case of 0 working days in a month there should be no entitlement.
    Calendar year
    Accrual period
    Time evalution period
    Payroll period
    Other period
    Please help.
    Regard,
    Jyoti

    Firstly Update the Period Parameters as per ur dates this has to be done manually T549Q
    later generate the Pay Roll Periods useing this Period Paramter
    and Change the evaluation Period parameter  in T559L to the Period paratmeter  which you have generated
    a lot of threads has been raised on the same issue please check

  • How to get planned % complete based on number of days

    Hello:
    I a trying to figure out a way(best way) to determine a "planned % complete" simply based on the number of days in a task.
    For example:
    Task Start Date = 3/1/15
    Task Finish Date = 3/20/15
    So the task is 20 days long
    Today is 3/10/15 so "planned % complete" should be 50%
    (Today-Start) / (Finish-Start)
    =
    ((3/10/15)-(3/1/15)) / ((3/20/15)-(3/1/15))
    =
    (10) / (20)
    =
    50%
    Do I just enter this into a custom field as a formula or is there a better way of doing this?
    Also, when I tried to do this with a formula, it did not apply to the roll up tasks. So, the bolded tasks were blank.
    I am trying to get to a calculated number of the % I should be completed based on the current date and length of the task. I realize this might not be the best way so any
    suggestions are greatly appreciated.
    I would like to be able to look at my project and see that I am 35% complete, but I should be 50%.
    Any guidance is greatly appreciated.
    I am using MS Project 2010.
    Thanks
    kp

    Hi kp,
    You are typically asking for Earned Value indicators. You could of course use the kind of formula you are refering to, but have in mind that MS Project proposes by default a large number of EV fields, such as CPI, SPI and all variance fields. Although it
    requires a certain maturity in scheduling (cost, baselines, status date, tracking), it will provide you a large set of EV indicators out of the box.
    See an excellent article
    here.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Generate Absence Quota based on certain condition

    Hi Experts,
    I'm new in Time Management. I have requirement in generation quota where new employee would have their quota after december in hiring year.
    For example
    A join in 01/06/2010. In 01.01.2011 we generate absence quota and A would have 6 days in year 2011, and normal 12 days in year 2012 and 12 days in the following years.
    B Join in 01/11/2010. In 01.01.2011 we generate absence quota and B would have 2 days in year 2011 and normal 12 days in year 2012 and 12 days in the following years.
    in other word the employee must earn the absence quota first and use it in the following years.
    Can this be achieved without using PCR because i dont have any experience in PCR? Many Thanks
    Regards

    Hi,
    Thanks for the table, I've found temporary solution with this setting:
    Validity/Deduction Interval
    Deduction from End of validity Interval   - 1 days
    Deduction to end of validity interval  + 12 months
    Enter previous year period for generating quota this year.
    Best REgards
    Edited by: Hendri Salim on Nov 5, 2010 1:58 PM

  • Absence days vs payroll days - their implications to absence quota counting

    Hi Gurus
    Would like to understand why is absence quota deduction based on payroll days instead of absence days?
    If there is a scenario in which the officer applied for a leave period which encompasses a Saturday (ws at that time is on alternate saturday), absence days and payroll days stored in IT2001 are the same.
    However, if the same officer later backdates a change in work schedule in which his new working hours are from Monday - Friday, the IT2001 records would be recalculated and payroll days for that period with a Saturday would be 0 which is different from the absence day value.
    Since so, wouldn't there be cases in which employees overtook leave when in fact they have really consumed the leave?
    Thanks.

    Hi,
    Absence counting is driven by legislation. For example, in some countries leave entitlement is given in calendar days, in others in working days. In general absence days reflect calendar days, and payroll days reflect days that are paid. Obviously depending on legislation (if it gives entitlement in calendar days) absence and payroll days can be the same.
    Cheers

  • I want to get number of days in the month I've chosen from Timeline slicer.

    I want to get number of days in the month
    I've chosen from Timeline slicer,
    does anyone know how to do?
    The problem I want to solve is to divide
    the number of customer visits as a salesman
    made during a month by the number of
    days in the month.

    Excel 2013 Pro Plus with PowerPivot.
    Count working days per month
    considering weekends and holidays.
    With help from book:
    "Building Data Models with PowerPivot"
    by Alberto Ferrari and Marco Russo.
    Easy. Not.
    http://www.mediafire.com/view/rw78t1y3bg8vm0c/04_10_15.xlsx

  • Absence quota prorate by monthly basis

    Hi Experts,
    I have an issue regarding the absence quota for the new joiner or leaver. My client wants the leave earned to be given upon completion of the month. My current configuration is base on calendar days.
    For example, when a new joiner join the company at 2nd or mid of the month then the leave entitlement will be given for the following month. That mean when an employee join at 3rd or any other days in January 2010, the leave will be prorated starting from February. This same to the leaver, if the employee is leaving the company at 3rd or any other days in April, then the leave will be prorate till March. The entire April will not be take into account.
    My question is how can I configure this scenario?
    Appreciate the input.
    Thanks

    Hi,
    If you are not using TE then you will can always write an ABAP program which will run and load data on the first of every month.
    For Hire:
    The program can check the hire date from IT 0041. If the hire date is less than the first of previous month then you can add the monthly entitlement to the absense quote in IT 2006. If it is in the middle of the previous month then you can prorate according to the formula and then add to the monthly entitlement to the absense quota in IT 2006.
    For Termination:
    You can base the above logic with the termination date in the IT 0041
    If you maintain IT 0041 well and good or else you will have to base it on IT 0000 Actions infotype.
    Hope this helps.
    Ajay

  • Issue with PCR to restrict absence quota

    Hi Experts.
    i have a requirement where the absence quota should never be over 24 at any particular time.
    for this absence 24 leaves per annum with 2 leaves accumulate monthly.
    we are using -ve time mgt and written a PCR to restrict absence to 24 by using Time type
    VARSTLDYPP
    N
    Y
    HRS=FR55C
    HRS?24
    <
    HRS-24
    HRS*-1
    HRS?2
    HRS=2
    ADDDBXXXX
    <
    ADDDBXXXX
    now the issue is when i run the simulation of time evaluation it is generating 2 leaves per year instead of
    2 per month. can anybody help me solve the issue
    Thanks & Regards
    ramayya

    I need a PCR for the below scenario.  I created two types to store day balance and max entitlement to 25 days.   We are not processing payroll from SAP.   Any help writing PCR  with details would be appreciated.
    Schema we are copying TM04
    Time types - storing  daily balance one for below 60 days &  one for after 60 days planned working time.
    Vacation per calendar year 25 days not based on seniority.
    Scenario:
    2.       Prorated entitlement for employees who will work fewer than 60 work days for company in a given year are calculated as follows:
    a.     1/12 of annual vacation for every 21 days s/he performs work
    b.    For these purposes (60 days worked rule) the following is also considered as work performance: Planned working time from IT0007 and public holidays. 
    c.     e.g. if hired on Nov 11, 2011, there < 60 wd remaining. They get 1/12 (25/12 = 2.1d) for every 21 work days remaining - in this case 2 periods of 21 wd, since RIM days and holidays are included as work days, for a total of 4.5 days (round up to half-day).
    3.       Prorated entitlement for employees who will work 60 or more work days for RIM in a given year are calculated as follows:
    a.     1/12th of annual entitlement for every calendar month of completed work
    b.    E.g. If George is hired on July 15 2011, he gets 10.5 days of vacation entitlement.
    c.     The number of full months George will have worked by the end of the calendar year is five u2013 Aug to Dec incl. George gets no entitlement from the 16 days from July 15 to July 31st.
    5 / 12 * 25 days = 10.4 days, rounded up to 10.5 days.
    Thanks,
    Mani.
    Edited by: saphrtime on Apr 21, 2011 5:19 PM
    Edited by: saphrtime on Apr 21, 2011 5:21 PM

  • Absence Quota - Negative Deduction to

    We are currently configuring Absence Quotas in SAP 4.6C but are also in the process of upgrading to ECC 6.0 Enhancement Package 1. 
    For annual vacation, we are accruing on a daily basis so that only the balance accumulated to date is displayed as the Quota number.  However, employees are allowed to record their absences for the entire year in advance.
    We are trying to use the "Negative Deduction to" field but have encountered two situations that are not working in alignment with the business requirements.
    1.  Since there are differing levels of entitlement based on years of seniority, the number of hours each employee can go "negative to" is based not just on Quota type but also on the employees grouping & seniority.  The Negative Deduction to field in T556A is only at the level of the Absence Quota.
    - Is there a mechanism for applying additional logic to the decision on what the Negative Deduction to value should be?
    2.  When the entitlement does start to accrue to the Quota Number field, this is added to the "Negative Deduction to" value.  In our business requirements, the Negative Deduction to value would represent the fixed cap for the employee not one that is over and above the guaranteed number of the entitlement.
    - Is there a way to cap the hours taken at a maximum, not add to the entitlement?
    We have reviewed the user exits in HRPTIM03 but none of these appears to be functioning on the deduction side of the evaluation.
    The function module that is performing the edit checks where the Negative Deduction to is evaluated is HR_DEDUCE_QUOTA but we have not located any user / customer exits in this code.
    Any suggestions would be appreciated.

    Point 1: one quick solution I think about is you could use MODIF Q in the schema  to set the Quota selection grouping based on what you want (in your case seniority) but it means you need to generate the quota from time eval, and you may still have the problem when employee "upgrade" in the middle of the quota period.
    Point 2:  I must admit I don't have much good ideas right now, the easiest would be to check in a schema rule and generate an error message, but the inconvenient is you know it too late, when the absence has already been saved.  I'll keep thinking about it..
    For your info I've been in 2 projects with 2 diffrerent ways to handle the problem (none is a perfect solutions):
    A) Give in advanced the full entitlement, and re-calculate in Time eval every month (so the real part increase and the "estimated" part decrease)
    B) Have 2 quotas: one with full entitlement with the absence deductions and another one with the real "cumulated" amount. The link bewteen the 2 of them is also driven by time eval and error/info messages...
    If any one has the perfect solution (well, without 6 months of Abap development), I am also interest in knowing it.
    Regards,

  • How to Update Absence Quota with Time Evaluation

    Dear Friends,
    I would like to know how do we update absence quota within time evaluation. Currently i'm using UPDTQAXX, it works but when i search this forum everybody was using this simple code:
    HRS=something
    ADDDBxxxx
    and the quota is updated. I just dont get it, with adddb its only update the daily balance table, how does that enable us to updated the 2006 infotype? Many Thanks

    ADDDBxxxx adds the value of the number of hours field to the specified time type in the table of day balances (TES), it does not update the quota.
    You can use function QUOTA  to accrue absence entitlements periodically based on this customizing: Personnel Time Management>Time Data Recording and Administration>Managing Time
    Accounts Using Attendance/Absence Quotas>Calculating Absence Entitlements>Rules for
    Generating Absence Quotas>Define Generation Rules for Quota Selection.  
    You can use a time type to prorate that accrual

  • Employee Joined in Mid of Year : Absence Quota Generating wrongly

    Hi Experts,
    Below is my query ...
    Employee joined in the month of April...  Absence Quotas should calculate on prorate basis...
    In a year there are 20 Casual Leaves for an employee...
    So employee joined in the month of 1st april  or 4th of april 6 Leaves should deduct from 20 that is on prorate basis
    what I did was I have selected Prorate basis in accrual entitlements and selected month in Accrual period When I generate RPTQTA00 it is showing 13.2456 something instead of 14 leaves Do I need to do rounding rules or should I have to configure something else? How can I do that If it is rounding or if it is something else how Please let me know

    Hi,
    When you generate RPTQTA00 it is showing 13.2456 something instead of 14 leaves is correct, because you have selected month in ACCRUAL PERIOD tab.
    please select the month in accrual period tab. and try..
    might be when you have saved it, it might not got saved in to that table.
    so please save the table again by selecting month and see it has to get stored in the table by asking you request no.
    regards,
    mohammed

  • Absence Quota generation / Accruals

    Hi Gurus,
    I am trying to configure Absence Quotas with the below mentioned rules.
    1. To be eligible for PTO you must be on the payroll at least 6 months at which time 20 hours of Paid Time Off is granted.
    2. In the second year of employment an employee will receive 5.58 hours of PTO per pay period.
    3. The accrual rate increases with continued years of service. After 5 years of employment the accrual rate is 7.11 hours per pay period. See the chart below:
    Years     PTO Hours
    1                  20 Hours
    2 - 4            145 Hours       (5.58 hours per pay period)
    5+               185 Hours       (7.11 hours per pay period)
    A maximum of 240 PTO hours (6 weeks) may be accumulated.
    Can you please advise if it's possible to automatically (using Time Evaluation) generate 20 hours of quota in one go after 6 months, and then after 1 year is completed, the quota accrual starts happening every pay period. If it's possible, then please advise me how can this be achieved.
    Any kind of help is really appreciated.
    Thanks in Advance,
    Ashish Maini

    Hi,
    In table V_T559L you can set up to do the accrual based on a time type and using a rule, you can check based on infotype 41 when to generated it.
    Regards
    Frederick

  • Time Management - Work Schedule /Absence Quota / Part-time quota generation

    Hi Experts,
    Need your help!
    We have a requirement where we need to create distinct work schedules for each irregular / part-time work pattern and the number of work patterns we have identified is more than 1000.  We are using report RPTQTA00 to generate quota. We have used work contract, employee sub-group & employee payscale group in the QUOMO feature to get the base entitlement picked up. We have defined base entitlement for the full time workschedules with 37.0 / 38.5 hours and there is a reduction rule which reduce the absence entitlement for part time employees as per the employement percentage in IT0007. Now we have a scenario where we have created a work schedule with different no of hours for each day of week (M-4, T-6, W-4, TH-6, F-4, S-OFF, SU - OFF); this work schedule is treated as full time work pattern by the system and quota is generated as full time work schedule refering to the QUOMO settings, but as per my client employees with this work schedule have reduced hours of working hours (24 hours, not 37.0 or 38.5 hours)and hence it should be treated as part-time employees, and the quota generated should be proportionately reduced. I have very limited scope to create any ESG or PSG as we do not have any distinct emplyee sub-groups maintained for full-time and part-time employees and the project has already gone-live with payroll/time. It is worth mentioning over here that we are recording absence through ESS and it takes into account the daily planned working time maintained in IT0007, so we are very particular to keep it as accurate as possible.
    I would really appreciate if somebody can please suggest any possible solution for the above issue, or guide me on what would be the best way to tackle it. I can give more details in case anybody need to have a better understanding of the issue to suggest a solution.
    Thanks in advance
    Sujit

    Hi Kathy,
    Yes, i have found the solution to it. I do not know whether it will fit into your situation or not, but i got two solutions for my issue mentioned above, please check it may help:
    1) To use capacity utilization field in IT0008 to get the FTE hours and defining the reduction rule of absence quota based on the capacity utilazation percentage.
    2) There are three user exits available in the standard report RPTQTA00, i have used one of them to write my own rules for the calculations (deduction rule)
    Do let me know if i can help you in any respect. Thanks.
    Regards,
    Sujit

  • Error in Absences Quota Generation

    Dear All,
    I have generated absences quota for all the employees. But its generating and showing the same kind of absences in terms of no of days for newly joined employees also. For example if an employee joined on nov for him also Earned leave is generating for the full quota but he is not eligible for the full year of E.L.
    How to reslove this.
    Thanks and Regards
    Suresh.V

    Hello Suresh
    use the tab allocation of quota based on pro-rata basis - and in quota type selection rule - use "decrese the quota based on inactive days"
    and for earned leave - use different quota type selection rule - and use accrual period - for that you have to allocate the qouta on monthly basis (ie based on there presence they will get the leave quota).
    Thanks and Regards
    Jaydeep Jadhav

Maybe you are looking for