cancel
Showing results for 
Search instead for 
Did you mean: 

PCR -For 20days ,one day leave should be accrued

0 Kudos

Hi Gurus,

Scenario for this PCR,

if the employee attend 20 days consecutively,he should get 1 day leave .

how to write PCR ?

Regards

Thiru

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

This you can achieve with RPTIME00

Warm Regards,

Kapil Kaushal

vikram_n
Contributor
0 Kudos

hi

Can u explain ur scenario so i can help u out

whether it for one month or it for days or years?

With Regards

Vikram.N

Edited by: Vikram N on Dec 10, 2008 12:49 PM

0 Kudos

Hi

I want to wright the PCR for this scenario.

if the employee attends the office for 20 days consecutively ,he should get 1 day leave.

Ex: 1)Employee is coming to office from 01.01.2008-20.01.2008-continuosly-he should get 1 day leave.

then again the employee is coming to office from 21.01.2008-10.02.2008- he should get another 1 day leave.

regards

muthu

former_member207885
Contributor
0 Kudos

1.You have to create a quota which is to be generated through TE.You will be adding 1 day to that quota after 20 days of work.and when absence is recorded that 1 day will be deducted from the quota.

2.You have to write a rule to add this 1 day.

The logic goes like this

I have a question here if he doesn't work on weekends(if he has day off) then do you want to add these 2 days also to the num.of days worked?

I assume that you have to consider them and I will give you the logic

i)Create a time type in the table T555A to store these days of attendances.Let's say its ZT01 here.Create another time type ZT02 to generate the quota.

ii) HRS=LZT01

HRS?0

  • (leave blank)

(greater than symbol)

VARSTPRSNT

N

varstweday

  • (leave blank)

6

HRS=1

ADDDBZT01

7

HRS=1

ADDDBZT01

Y

HRS=1

ADDDBZT01

iii) Write another rule to check the total number of days and to create the quota

HRS=DZT01

HRS?20

  • (blank)

=

HRS=1

ADDDBZT02

HRS=0

ADDDBZT01Z

iii) Call both of these rules with the function ACTIO

Hope this helps

0 Kudos

PCR u had given is not generating.

You wrote that HRS=L9010(new time type for attendence)

but where this time type is reading from ,actually L mention ZES table,obviously this table comes in CUMBT function.

u had given HRS=1,ADDDB9010,but it start adding 1 in 9010 for frequent days.

whats the concept of your PCR.

former_member207885
Contributor
0 Kudos

HRS=L9010 :Get the last days hours from 9010 and add 1 today.

It should work.