cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in carry forward PCR

Former Member
0 Kudos

Hello ,

I have written a below PCR to carry forward maximum 10 leaves to the next year .

ZO02 Personnel Calculation Rule ZO02

*

****

VARSTCURMO Current period

**

03

VARSTREDAY Rel. day of period

**

31

HRS=FR05C Set

ADDDB9001 Add to day balance

04

VARSTREDAY Rel. day of period

**

30

HRS=9001 Set

HRS?10 Decision op. HRS

*

ADDDB9001 Add to day balance

UPDTQA05 Abs. Quota Accrual

>

HRS=10 Set

ADDDB9001 Add to day balance

UPDTQA05 Abs. Quota Accrual

Problem i am facing in this is value for remaining leaves is correctly coming in time type. but it is not updating in quota .

for example : when i am generating quota in 30 th April 2011 then quota entilment should be 2 + 10 carry forward from previous record if the remaining balance is more the 10 . In this scenario in my time type value is coming correct as 10 . but in Aprill 2011 month it is generating only 2 . it is not updating time types value .

My quota configuration is as follows :

Validity & deduction start & end date is 01042010 - 31032011 24 quota per annum , monthly 2 leaves , monthly accrual period.

Please help in solving this issue .

Thanks & Regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member193210
Active Contributor
0 Kudos

I'm not familiar with operation UPDTQ since we don't use it, but there seems to be a time gap in your PCR.

If I read your PCR correctly, if it's the 31st of March, operations HRS=FR05C and ADDDB9001 are called,

and if it's the 30th of April, you make a decision on 9001 before calling operation UPDTQA05.

It seems that the carry forward should be done between March 31st and April 1st (not March 31st and April 30th).

Former Member
0 Kudos

Hi Remi ,

Thanks for ur reply .

I tried puuting dates of carry forward as 31 march and 1 st April .

The value in time type is coming properly on 1 st April . but it is not updating the quota .

Please suggest .

Thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

What Remi said is correct, use HRS=FR05C instead of UPDTQA05 and ADDDB9001.

Now ur quota will be updated.

Regards

S.Ravi

Former Member
0 Kudos

Hi S.Ravi ,

i tried doing what you suggested but no use .

Pls suggest any other solution .

Thanks

Edited by: Anant Dalvi on Nov 11, 2010 8:30 AM

Edited by: Anant Dalvi on Nov 11, 2010 8:30 AM

Former Member
0 Kudos

Hi Anant Dalvi,

You just write two PCRs for this,

one for identifying the quota on 31st March from the Absence Quota, which is working fine and the time type is getting the value on 31st march.

Second for carry forwarding the quota from time type to Absence Quota on 1st April, for that the logic provided below.

*

****

VARSTCURMO

**

Leave

04

VARSTREDAY Rel. day of period

**

Leave

01

HRS=L9001 Set

HRS?10 Decision op. HRS

*

ADDDB9001Z Add to day balance

UPDTQA05 Abs. Quota Accrual

>

HRS=10 Set

ADDDB9001Z Add to day balance

UPDTQA05 Abs. Quota Accrual

Just put this in a Second PCR, and insert two PCRs before CUMBT in Time Schema , run time evaluation and check it.

It should work.

Regards

Venu

former_member193210
Active Contributor
0 Kudos

As Venu mentioned, on the 1st day of the Quota Validity Period (April 1st in this case), you have to read yesterday's value (with operation HRS=Lxxxx, where xxxx is the TT that was created on the last day of the Quota Validity Period)

Former Member
0 Kudos

Hi Venu Gopal ,

Thanks for your input .

I wrote Two PCRS as you suggested . Below is the logic for them .

First PCR

ZO02 Personnel Calculation Rule ZO02

*

****

VARSTCURMO Current period

**

03

VARSTREDAY Rel. day of period

**

31

HRS=FR05C Set

ADDDB9001 Add to day balance

Second PCR

ZO03 Personnel Calculation Rule ZO03

*

****

VARSTCURMO Current period

**

04

VARSTREDAY Rel. day of period

**

01

HRS=L9001 Set

HRS?10 Decision op. HRS

*

ADDDB9001Z Set day balance = 0

UPDTQA05 Abs. Quota Accrual

>

HRS=10 Set

ADDDB9001Z Set day balance = 0

UPDTQA05 Abs. Quota Accrual

And i called them in main schema using ACTIO function before CUMBT function .

On 01 April the value in time type is coming properly but same problem it is not updating the quota . Any other quota or time type configuration is missing ?

Please help .

Former Member
0 Kudos

Hi Anant Dalvi,

Check whether the time type is showing in ZES internal table,

I think you have missed one step.

You need to add this time type to TR11 PCR or best you copy the TR11 to your custom name (Ex: ZR11) and add this time type as provided below.

TR11

*

****

9001

ADDDB*

Let me know after that whether it is working or not, I think after that it should work.

Regards

Venu

Former Member
0 Kudos

Hi.

Just to confirm, did you configure the quota generation to increase acording the time type view V_T559L? And in your schema are there in your schema the function QUOTA?

Another thing, what is store in your ABWKONTI? If there's nothhing you cannot use the UPDTQ.

Regards,

Former Member
0 Kudos

Hi Venu Gopal,

Time type in Table ZES showing the correct value .

I added my time type to PCR TR11 as per your suggestion . But still it is not updating quota .

Please help .

Thanks

Former Member
0 Kudos

Hi Luciano Arashiro ,

Yes quota is configured as 'incresed ' in table T559L . Function QUOTA is there in schema after CUMBT function .

Also in table ABWKONTI quota records are exists .

Pls help in solving this issue .

Thanks

Former Member
0 Kudos

Ok, in view V_T559L at the "Transfer Time" tab, what set in this tab?

Try to inform "Upon Accrual" at this tab, and check if the transfer packages is empty, or your Transfer will occur in packages to the infotype.

In the tab "Total entitl." the field Max. entitl. should be empty as well.

Regards,

Former Member
0 Kudos

Hi Luciano Arashiro ,

in view V_T559L 'Upon accrual ' is set for transfer time . Also Transfer packages & Max entitlement fields are empty .

In time type it is calculating properly still not updating quota .

Please help in solving this issue .

Thanks