Skip to Content
-2

Time Management

Oct 18, 2016 at 11:17 AM

75

avatar image

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

10 |10000 characters needed characters left characters exceeded

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).

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

praneeth kumar m Oct 18, 2016 at 11:32 AM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0
Rémi Corriveau Oct 25, 2016 at 04:57 PM
0

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).

Share
10 |10000 characters needed characters left characters exceeded