cancel
Showing results for 
Search instead for 
Did you mean: 

Time Management

Former Member
0 Kudos

Hi

I have a requirement , we have earned leave split in two leave ie PL & MPL

Written PCR for splitting Earned Leave please check below.

ZFUP Split PL & MPL

*

****

HRS=0

Set HRS+D9P44 Addition

HRS?10 Decision op.

HRS * COLOP* TIP >TOP curr.TType >

HRS=0 Set HRS+D9P44 Addition

HRS-10 Subtraction

ADDDB9P02 Add to day balance

HRS=0 Set

HRS+D9P44 Addition

HRS-D9P02 Subtraction

ADDDB9P75 Add to day balance

My client wants it has to split when employee joins on 01.01.2016 to 15.01.2016

If employee joins on 16.01.2016 doesnt want to split this leave

Please help!!!

Regards

Srinivas Naidu

former_member193210
Active Contributor
0 Kudos

Please clarify your requirements. What happens if the employee joins on 30.01.2016, on 12.02.2016, or on 19.10.2016?

Is the Earned Leave given Daily, Monthly, or Annually?

As implied by Praneeth, could a Date on IT0041 be used to identify who gets what?

Also, when posting a pcr, try to include the return values to the decisions (as in after HRS?10, what part or the pcr is for >, <, = or *) and explain what the Time Types mean (example: ADDDB9P02 Add to day balance ... of Personnal Leave).

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member193210
Active Contributor
0 Kudos

If the only period when you have to "Split" PL and MPL is between 01.01.2016 and 15.01.2016, then you could create a Constant in table view V_T511K with a value of 1 for that period and a value of 0 before and after that period. You could then use that constant in a Time Evaluation pcr to query the date being processed (as in HRS=CZZZZZ HRS?1 ), and if the return value is 1 then you do the split, and if the return value is something else (*) then you don't split the Quotas.

If the Quota Splitting Rule is to be applied every year and/or every month, then perhaps some other Operations would be more suitable for the Query, such as one on the Month and on the Day (as in VARSTCURMO and VARSTREDAY).

Former Member
0 Kudos

Hi Srinivas,

In this case you have to maintain the Employee DOJ in the IT 0041 and in the PCR you have to check with the condition that DOJ is < or > the 15th of month and if the condition is > then you have to go with the above written PCR. If the condition is </= then you have to write the another PCR to add to the one abs quota only.

Former Member
0 Kudos

Dear Sir,

People mostly joins in between 01.01.2016 to 15.01.2016 only, so it has to split after 16th it has not to split.

Please let me know what to write in my PCR which I mentioned in my earlier.

Regards

Srinivas Naidu