cancel
Showing results for 
Search instead for 
Did you mean: 

Earned Leave (How to convert Hours in to Days)

Former Member
0 Kudos

Hi Experts,

I have an Issue With Earned Leave.

Scenario:

If the employee Works One Day Say Saturday or Sunday Employee will get 1 Leave Shown in Earned Leave Quota which is Valid for 40 Days.

Problem:

I have Created a Time type and i am able to capture the Number of hours in to that time type and Earned leave is getting Generated With validity for 40 days .But when i book attendance for 8 hours the time type is taking the number of hours ie 8 Hours and the Earned leave is getting Generated as 8 days .What i want is 1 day for 8 hours of attendence booked in 2002. .how can i make that earned leave as 8 Hours = 1 day..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Need inputs Experts

Former Member
0 Kudos

your absence quota type time unit should also be in hours and also check Generation rule in T559L table.

Former Member
0 Kudos

your absence quota type time unit should also be in hours and also check Generation rule in T559L table.

Hi Vasehgal,

My absence Quota type is in Days and i want it to be in days only.and As we have Casual leave sick leave in days so Earned leave should be in days Only.buy unfortunately Time type stores only number.if i have the 8 number in time type when that time types goes to earned leave quota it is taking the 8 as number as i want the quota to be in Days i have to say earned leave as in days .so that time types is becoming as 8 days So.. we need to convert the time type to 1 day..

Can you tell me usually how do they do the Earned leave with out using PCR.if not how do they do with PCR waiting for your valuable Inputs.

raghu_c
Active Contributor
0 Kudos

Create a new time type, write a PCR to convert the number of hours to days. This can be achieved through comparison of the time type you have already used. Compare it with 8 if it is > then add 1 to the new timetype created. Build your logic based on this. Update quota from the new time type

RAghu

Former Member
0 Kudos

Hi Raghu Thanks for that immediate Reply

*Ok then i will go with PCR .Can You provide me any sample PCR .*

*Can you provide the area where i have to insert this PCR in TM04 and with which function i have to call this.*

I appreciate your valuable and immediate reply..

raghu_c
Active Contributor
0 Kudos

Can you be a bit more elaborate on your requirement, like what happens when employee works for more than 8 hrs, on a working day, etc......

Raghu

Former Member
0 Kudos

Hi

Scenario:

If the Employee works on 8 Hours extra time (Over time ) he should get 1 Earned leave ( In Quota that should Show as 1 day leave ).

Former Member
0 Kudos

Hi

Need inputs.

raghu_c
Active Contributor
0 Kudos

Is this time going to be cumulative....i.e if on day-1 it is 4hrs, then day-2, it is 5 grs then 1 leave will be added?

Raghu

Former Member
0 Kudos

Hi Raghu

Its like this if employee works Say Saturday=4 hrs and on Sunday=4 hours 4+4=8 .then one day should be added to earned leave

i hope you have got the required information.

And suppose if the employee works Saturday=4 hrs and on Sunday=4 hours 44=8 foe next week also then 44=8 and earned leave should be 2 Days with the earlier lave earned last week.

Edited by: Srikanth Reddy Munugala on Nov 25, 2011 2:09 PM

Edited by: Srikanth Reddy Munugala on Nov 25, 2011 2:11 PM

Edited by: Srikanth Reddy Munugala on Nov 25, 2011 2:12 PM

raghu_c
Active Contributor
0 Kudos

HRS= Lxxxx(xxxx is the time type where the Overtime hrs are calculated)

HRS? 8

<

leave

*

hrs=1

adddb yyyy(yyyy is new time type created for transfer)

updqta zz(zz is the quota type)

write a logic for reducing day alance of time type XXXX

Raghu

Former Member
0 Kudos

Hi Raghu

write a logic for reducing day alance of time type XXXX can you please be more Explanatory on Thus line What exactly you want me to do after writing the PCR, and where should i place the PCR in TM04 withe what function i have to call it.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I thik the you shold be able to do this in time evaluation.

one of the following logic can be followed.

Erned leave = Number of hours of overtime worked/ planned working hours.

e.g.

if a employee is working for 8 hours of overtime then

Earned leave = 8/planned working hours considered as 8 = 1 day.

Then depending upon the rounding rules you can decide if you want to credit the less than 1 day as leave or not.

Regards,

Umesh Chaudhari

Former Member
0 Kudos

Hi

Umesh but the Problem is the Earned leave is showing as 8 days .So employee is getting 8 days for 8 hours of work worked on Saturday .Which is not right.As you said if i book for 8 hours the system takes planned working time and takes as one day but the remaining is 7 days again. If we according to your scenario.may be there should be some thing we need to do to convert that one day over time as one day earned leave ..