Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

https://www.youtube.com/watch?v=I7NMyD47fCQ&feature=youtu.

be

Requirement : Earned Leave yearly 25 days. Monthly should get accrued to employees (25/12 =
2.08333 ) . 25 days or the balance of current EL quota will get carried forwarded to next year. When
quota accumulate to 65 days, only 65 days will get carry forwarded to next year and balance should get
encashed. (No payroll integration, negative time management).

Issue : the quota of previous year balance is not getting carried forwarded to next year. In the absence
quota in 31.12.2011 25 days are available, when i run PT60 for 31.01.2013 the absence quota should be
25 (previous year) + 2.08333 (current month) 27.08333.

for eg:

01.01.2011 to 31.12.2011 = 25 days (Current Year)

01.01.2012 to 31.12.2012 = 50 days ( Previous Year 25 get carried forwarded and added to next year
quota of 25 so 50)

01.01.2013 to 31.12.2013 = 75 days ( previous year entire balance 50 get carried forwarded and added
to next year quota of 25 so 75).

Out of 75 days, 65 days should get carried forwarded to next year and 15 days should get encashed.

01.01.2014 to 31.12.2013 = 90 days ( Only 65 days should get carried forwarded from previous year
balance to next year quota of 25 so 90).

Out of 90 days, 65 should get carried forwarded to next year and 15 days should get encashed.

01.01.2015 to 31.12.2015 = 90 days ( Only 65 days should get carried forwarded from previous year
balance to next year quota of 25 so 90).

Realization :

1) In Table V_T511K created period parameter ZPLEL as 25 days.

2) Created two Time types 9SEC with save as day balance as 1 and 9WEL save as day bal 1, cumulate in
period balance 1, transfer prev period and prev year as 1.

3) In Table V_T559L 1) base entitlement used day balance as 9SEC, selected time evaluation period.

2) Accrual period Monthly.

3) Accrual Entitlement No pro-rata

4) Transfer time - Per time evaluation period.

4) PCR 1

ZCR1 Personnel Calculation Rule (Checking dec 31)

*
****

HRS=BCURMO Set

HRS?12 Decision op. HRS

SCOND=F IF If condition false

LEAVE Stop with PC Rule

HRS=BCURDY Set

HRS?31 Decision op. HRS

SCOND=F IF If condition false

LEAVE Stop with PC Rule

SCOND=T IF If condition true

5) PCR 2 (condition on 65 days)

ZCR2 Personnel Calculation Rule

****

HRS=0 Set

HRS+FR04C Addition

HRS?65 Decision op. HRS

HRS+FR04C Addition

ADDDB9SECZ Set day balance = 0

LEAVE Stop with PC Rule

<

HRS+FR04C Addition

ADDDB9SECZ Set day balance = 0

LEAVE Stop with PC Rule


6) PCR 3 (previous year carrying forward to jan next year)

ZCR3 Personnel Calculation Rule

****

HRS=BCURMO Set

HRS?01 Decision op. HRS

LEAVE Stop with PC Rule

HRS=BCURDY Set

HRS?01 Decision op. HRS

LEAVE Stop with PC Rule

HRS=L9SEC Set

ADDDB9SECZ Set day balance = 0

LEAVE Stop with PC Rule

7) PCR 4 ( monthly accrual as no pro-rata in v_t559L)

ZW6C Personnel Calculation Rule ZW6C

****

HRS=CZPLEL Set

HRS/12 Division

HRS+M9WEL Addition

ADDDB9SECZ Set day balance = 0

HRS=0 Set

ADDDB9WELZ Set day balance = 0

8) SCHEMA (ZF04 from TM04)

000720 IF EOM
000730 ACTIO ZW6C

000740 ENDIF

000750 CUMBT

000760 IF ZCR1

000770 P2006 ZCR2

000780 ENDIF

000790 ACTIO ZCR3

000800 CUMBT Update balances, wage types...

000810 QUOTA Generate absence quotas

000820 BLOCK END *********************************

Kindly help on the Schema and PCR as i am new to PCR and schema. If you can suggest another way to
enable the scenario kindly help.

Hi,

Please check the below PCR for Carry forward and leave encashment

First i am checking the balances from Quota type 76 is greater than 65 days.

If the quota is less than 65 days then i am adding the balances to a Time type which holds quota
balances equals or less than 65 days .

If the balances are greater than 65 days (67-65) is 2 days and it will be encashed using wage type 9204
and then those 2 days, and i am reducing from the 2 days of quota using HRS*-1 UPDTQA76 .

Again i am adding the balances 65 balances to a time type 9000 which will have the quota of 65days .

The same time type can be read on the next day and pass the remaining balances to the quotas as per
you PCR ZCR3 .

Regards,
Raja Sekhar

carry over.JPG (36.5 kB)

Share

Alert Moderator

You already have an active moderator alert for this content.

Close

Add comment

Top of Form

a1700868054126

Insert linkRemove link

10|10000 characters needed characters left characters exceeded

Submit

Cancel
10028239

Bottom of Form

4 Comments

Former Member Trong Minh (Woody) Nguyen

May 24, 2013 at 04:48 PM

Dear Woody,

Thank you so much and it was a great help!!..

Best Regards,

Jeev

Like 0

Share

Show all

Comment

This answer has been deleted.

This answer has been undeleted.

Trong Minh (Woody) Nguyen

May 24, 2013 at 06:54 AM

Please re-check my document: Carry Forward Absence Quota

I believe you are following my guidance here but still miss somewhere �

1. ZCR2 Personnel Calculation Rule

****

HRS=0 Set

HRS+FR04C Addition

HRS?65 Decision op. HRS


*

HRS+FR04C Addition => DUPLICATE

ADDDB9SECZ Set day balance = 0

LEAVE Stop with PC Rule

<

HRS+FR04C Addition => DUPLICATE

ADDDB9SECZ Set day balance = 0

LEAVE Stop with PC Rule

2. PCR ZW6C

HRS=0 Set

ADDDB9WELZ Set day balance = 0 => ADDMB not DB

Actually look at your question I only see 2 unlogical points, you should run Time in display log mode and
check carefully.

Regards!

Woody

Share

Alert Moderator

You already have an active moderator alert for this content.

Close

Add comment

Top of Form

a1700868054126

Insert linkRemove link


10|10000 characters needed characters left characters exceeded

Submit

Cancel

10027740

Bottom of Form

0Comments

Comment

This answer has been deleted.

This answer has been undeleted.

SAP_Learner ASPIRANT

Mar 25, 2014 at 07:26 AM

Hi Woody,

For my case, I have written a PCR where if it is equal to or less than 33 days, then only 33 get carried
forward. If it is more than 33, then say 50, then 50-33=17 will get carry forward....but the problem is all
the time it is forwarding 33 only!!!

Share

Alert Moderator
You already have an active moderator alert for this content.

Close

Add comment

Top of Form

a1700868054126

Insert linkRemove link

10|10000 characters needed characters left characters exceeded

Submit

Cancel

10782632

Bottom of Form

8 Comments

Former Member SAP_Learner ASPIRANT

Mar 27, 2014 at 05:17 AM


It will take the periods as per T549Q Table ....

Like 0

Share

Show all

Comment

Find us on

Privacy

Terms of Use

Legal Disclosure

Copyright

Trademark

Cookie Preferences

Newsletter

Support

Privacy Statement

Allow use of SAP Web Analytics Save

You might also like