cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sick leave quota

Srikanth02
Active Contributor
0 Kudos
2,308

Hi Friends,

I have a requirement for Sick leave based on biweekly Payroll period and Maximum of 80 hrs per year and total entitlement should not exceed 280 hours.

So, every payroll period when Time evaluation runs it should update of 3.333 hours and based on Pro-rate basis.

Now my question is, we gone live in 2013 and we have sick leave of 80 hrs which updates one time for every employee at the beginning of  the year and whoever joins after that will calculate accordingly based on the hiring date it calculates the hours. There is no maximum entitlement limit.

This requirement starts from next year 2014 and if I change the sick leave in the base entitlement to 3.333 hours (Constant) and removing the day balances created earlier.

1. Do I need to create a new Quota type for Sick leave Or can I make changes in the existing quota type. Will it affect anywhere ?

2. What will happen to the employees who have more than 280 hours of sick leave.

3. Can I use Total entitlement field in " Define generation rules for quota type selection" or do I need to write a PCR to limit the total entitlement to Max 280 hours.

Please help.

Srikanth

View Entire Topic
Srikanth02
Active Contributor
0 Kudos

Hello Friends,

When I included the PCR for Sick quota based on Payroll period, it is getting updated twice for the same payroll period and it is calculations going going wayward.

Please find attached screenshot. Need your help.

Srikanth


former_member207885
Contributor
0 Kudos

What is the function you are using for the PCR?Is it P2006?Can you please attach the screen shot of the rule and please let us know the function you are using.

But My understanding is that you are using the fuction P2006.And in the input table there might be two quotas 1.Vacation and 2.Sick.This rule will be executed two times creating quota two times each.So if this is the case,If you are using P2006,you can avvoid this by checking the quota type in the rule and generating quota for each quota type.

Please let me know.

Thanks

Srikanth02
Active Contributor
0 Kudos

Hi Venkat,

Please find attached schema and rule screenshot. Please let me know if you need further information.

In the rule I have used Ydate as Hiring date to get the seniority.

former_member207885
Contributor
0 Kudos

In the rule ZSMU,check the quota type before checking the last day of the pay period.In this way you can restrict this for a particular quota.

If you check the processing of the ZSMU rule,I think the rule is executed two times as there are two quotas in the input.

Try with checking the quota hope it helps.

Thanks

Srikanth02
Active Contributor
0 Kudos

Hi Friends,

Is there any user exits to restrict the quota updation if employee has more than maximum of hours.

E.g: Employee has 520 hours and maximum is 280 hours as per client. Till it goes below 280 hours, sick quota should not get updated.

I tried going with PCR and it is not working fine.

Regards.

Srikanth

Srikanth02
Active Contributor
0 Kudos

Its urgent.

sikindar_a
Active Contributor
0 Kudos

can you paste the PCR , i feel the issue is with PCR which you have written  it should be like this  HRS=FRXXC HRS?520 < * > and your logic

Srikanth02
Active Contributor
0 Kudos

Hi Sikander,

Yes, I know something is wrong in my PCR, but I don't know what I am missing. Can you please help me out on this how to proceed further.


rajasekhar_reddy3
Active Contributor
0 Kudos

Hi,

Please write the PCR as below and let me know.

             D VARSTLDYPP

N

Y           D HRS=FR04C  HRS?280

Y *

Y >           HRS-280        HRS*-1    UPDTQA04

Write this PCR above QUOTA function.

And let me know if you are facing any error .

Srikanth02
Active Contributor
0 Kudos

Hi Rajasekhar,

Thanks for your suggestion. But it is not working.

But when I updated and ran Time Evaluation, employee had 600 hours and it reduces to 283.33 hours.

Whereas what I wanted is, till the employee applies leave and his quota reduces to below 280 hours, then it should get updated. I have kept 3.333 hours as Constant.

E.g 1. Employee has 278 hours of sick leave. When Time evaluation runs, it should update of 2 hours (278 +2 = 280 hours).

2. Employee has 600 hours of sick leave. When time evaluation runs, it should not update quota, because it already has more than 280 hours.

Srikanth

rajasekhar_reddy3
Active Contributor
0 Kudos

Hi,

It should work.

if the quotas is 291 then 291-280 is 11  we are doing it by HRS*-1 which reduce the quotas by 11 days and quota will be as 280 only .

Can you show me in the log how PCR processing on the last day of the payroll period ?

Regards,

Raja Sekhar

Srikanth02
Active Contributor
0 Kudos

Hi Rajasekhar,

I don't want the quota to get reduced by 11 hours as mentioned above when employee has 291 hours.

Quota should update only if it less than 280 hours and anything above 280 hours (It shoudn't get reduced or update hours) when Time evaluation runs.

Srikanth

former_member207885
Contributor
0 Kudos

in the T559L table,please try to put 280 Hours in the maximum entitlement and try.

Srikanth02
Active Contributor
0 Kudos

Hi Venkat,

I tried that option and that will work if you are going live first time. But we already went live and employees have sick quota of 300,450,1200,2000 hours etc. And from 01.01.2014, for them if I run Time Evaluation sick quota of 3.333 hours should not get updated as their maximum limit of 280 hours is already exceeded. Only, if their quota goes below 280 hours, then it should get updated.

Quota should update only for employees who have sick quota below 280 hours and for them every payroll period, it should update of 3.333 hours.

Srikanth

former_member207885
Contributor
0 Kudos

In the rule ZSQR,you started with Hrs?280

Which hours system should consider?

Please change that as HRS=FR04C

HRS?280

Srikanth02
Active Contributor
0 Kudos

Hi Venkat,

As mentioned,  I changed to HRS=FR04C but still it didn't work and it is getting updated with 3.333 hours for employee who has 4468 hours.


sikindar_a
Active Contributor
0 Kudos

it shd be like this   * **** HRS=FR04C HRS?280 * <  you have built the PCR in wrong way , kindly correct it

Srikanth02
Active Contributor
0 Kudos

Hi Sikander,

You mean to say the PCR should be like below.

*

     *

     ****

          HRS=FR04C

          HRS?280

     *<

It should be like this or do I need to go further.

Srikanth

sikindar_a
Active Contributor
0 Kudos

yes

Srikanth02
Active Contributor
0 Kudos

Hi Sikander,

I am getting the following error.


Woody_Nguyen1
Active Contributor
0 Kudos

Hey it's very clear logic right? after COMPARING, you have to check return value right?????

after HRS?280, you will have 3 return values as below:

=

>

<

If you use

HRS?280

=

* => * mean otherwise: > or <

It's quite easy

You should check these link below to understnaad how to create 1 simplest PCR

http://www.sd-solutions.com/SAP-Payroll-Time-Schemas.html

http://www.sd-solutions.com/SAP-Payroll-Schemas.html

http://help.sap.com/saphelp_470/helpdata/en/8a/98566c46c411d189470000e829fbbd/content.htm

     => understanding The Interanal Table TIP.

PCR:

Understanding HR Schema and PCR with an Example

Personnel Calculation Rule and Schema - An Understanding

Simple way of writing a PCR

Operations in PCR

Function:

Understanding HR Schema and PCR with an Example

Changing Absence Valuation Rule Dynamically

Or check the document: http://scn.sap.com/docs/DOC-32043 comparing with some constants.

Srikanth02
Active Contributor
0 Kudos

Hi Woody,

Thanks for the documents. Can you please look into the below rule and tell where I am making mistake.


sikindar_a
Active Contributor
0 Kudos

woody , please paste the screen shot of the PCR i am not able to do so  Srikanth the syntax of the PCR is wrong  once again  * **** HRS=FR04C HRS?280 < HRS=0 ADDDDXXX = HRS=0 ADDDXXXX >HRS=0 ADDDXXX   this is sample one

Srikanth02
Active Contributor
0 Kudos

Hi Friends,

Any suggestion, it is still not working.

Srikanth

former_member193652
Active Contributor
0 Kudos

Hi Srikanath,

I had a look at your original requirement and as a long discussion I could not understand which part is not working still.

About your ZSQR pcr. What you would do in this pcr? You are checking the remain part of quota 04 but it seems a bit strange why you are check HRS against 280.01?

Regards,

Omid

Srikanth02
Active Contributor
0 Kudos

Hi Omid,

The one which is not working is if employee has more than 280 hours in the quota for sick. When Time evaluation runs, it should the quota of the employee and check whether he has more than 280 hours or less than.

If employee has more than 280 hours of sick leave quota in IT2006, it should not update with 3.333 hours. If employee has less than 280 hours then it should update the quota with 3.333.

Please let me know, how to proceed further.

Srikanth

former_member193652
Active Contributor
0 Kudos

Hi Srikanth,

Is 280 hours limit for whole EE life cycle in company or just for a year?

I would have a screen shot of IT2006 for an EE who is not eligible for more quota. You mean generated quota should not more than 280 or used quota?

Anyway, In both case, limit for a year for whole life cycle you can control with the same pcr. I mean HRS=FXXXX. We should consider a case in detail.

Regards,

Omid

Srikanth02
Active Contributor
0 Kudos

Hi Omid,

Yes, 280 hours is for whole EE cycle. I have attached screenshot of the pt50 for quota. We have quota which is valid till 12.31.9999.

Please do let me know if you need further information.