cancel
Showing results for 
Search instead for 
Did you mean: 

How to write carry forward PCR to pick quota balances based on IT0041 date specifications

former_member215500
Participant
0 Kudos

Hi Team,

We have a requirement of rotational carry forward, I mentioned is the carry forward start date and period will differ for each and everyone in the same entity/employee group depends on the hiring date.

For example, Employee XX is joining in the Mar-2018 then his quota validity period in from Mar-2018 to Feb-2019. Then we have to collect the Annual leave balance on last day of Feb-2019 and need to generate the Annual Leave carry forward with the Mar-2019 to Feb-2020. Then for employee XY joined in Sep-2018 then his quota validity period is from Sep-2018 to Aug-2019, we have to collect the AL bal on last day of Aug-2019 and generate the AL carry forward with the validity of Sep-2019 to Aug-2020.

So the each and every employees will have different quota cycle, that is quotas with different validity and deduction periods in same entity/EGs. Have used date specifications for start and end date. In this situation, Kindly let me know how to write the PCR to pick the balances on end date and passing on start date as AL quota carry forward values.

Regards,

Boopathy

Accepted Solutions (0)

Answers (6)

Answers (6)

former_member215500
Participant
0 Kudos

Hi Team,

I tried with below with below enclosed PCRs and finally able to generate the quota carry forward for first year alone. And from second years onward quota C/F is not generating. Can anyone share the operation of fetching month value from the date types, then on that month it will be easy for me to compare current month value with the month operation value to generate the C/F every year.

former_member193210
Active Contributor
0 Kudos

In pcr ZA02, between Operations HRS=YDAAS1 and HRS?0, add Operation ADDDBxxxx, where xxxx corresponds to an Information Time Type "Days of Quota". Everyday, Time Type xxxx should be created, and you will be able to confirm if, on the day that Date S1 on IT0041 = "Today", the value of xxxx is zero.

After making sure that the test employee has an IT0041 with valid dates S1 and S2 in IT0041, please to a test execution, with the "Display log" box checked (starting at least one day before the S2 date and up to at least one day after the S1 date), and drill down into your schema to see the processing and output to ZA02, and the input, processing and output to ZALO.

former_member215500
Participant
0 Kudos

Hi Remi,

I have included PCRs in schema as enclosed below for your reference. And kindly let me know that my PCRs are correct or to be modified further.

Regards,

Boopathy

former_member215500
Participant
0 Kudos

Hi,

I have tried with the operation HRS=YFGHJJ to load AL leave balance on end of the validity date (S2 date specif) maintained in infotype 0041 and S1 as start date. Enclosed below my PCR screenshot for your reference and provide your inputs to make it correct.

Kindly help me to correct my PCRs.

Regards,

Boopathy

former_member193210
Active Contributor
0 Kudos

What Function did you use to call these PCRs, and where in your Time Evaluation Schema did you insert them?

Execute Time Evaluation for one employee, with the following parameters:

Forced recalculation as of "the Quota Validity End Date"

Evaluation up to "the following day"

Display log - check this box

Once you have the log on-screen, drill down until you find your PCRs, and double-clic on them to look at the Inputs, Processing and Output.

former_member193210
Active Contributor
0 Kudos

Through a pcr, you can check the Date Specification of the employee, and if "Today" is the Last Day of the corresponding Month. If the condition is met, then read the Quota Balance and save it into an Information Time Type.

On the First Day of the month, read "Yesterday's" value of that Information Time Type. If it exists, it means that the employee's Quota ended yesterday, and you have the value to betransfered.

former_member182377
Active Contributor
0 Kudos

Hi,

see there is a operation HRS=YFGHJJ if you press F1 you can get idea on this.. where it will calculate the difference in years,months,days.. so i suggest you to have a date type where hiring date should be maintained.. and using the above operation you need to compare the date of time evaluation run and the hiring date maintained in IT41.. with the return value you can the day and compare and you can carry forward ..

i have no system or else i would show you with screenshots .. please check the operation.. that would help you a lot for sure..

thanks

Sriram