Differentiate PL entitlement based on the joining date
Recently encounter with issue related to the PL generation based on the joining date. you can check the below thread Differentiate PL entitlement on the basis of Date of Joining on which i have prepared the process design and solution.
I am explaining step by step process design for this isuue.
Step 1. 1st we have to differentiate who has joined before 01.04.2012 and after 01.04.2012. For this i have created two date type one is hiring date (PH) and another is Cap date type(PI) which is storing 01.04.2012 date in the Infotype 41. Also i have taken two time type one for joining date comparison value store(9MAR) and another is quota generation (9SEP). Both time type would be period balance.
Step 2. Using period balance concept in base entitlement and quota accrual is monthly in generation rule. Monthly quota accrual value suppose 10 and it’s passing to time type through below PCR.
Step 3. Compare the hiring date with Cap date through PCR and insert this PCR in the time schema before CUMBT function. in this pcr i am checking the date comparison as well as passing month quota value to time type.
In this PCR we will get the below Update if employee joins before 01.04.2012 then time type 9MAR will generate with 1 value but if employee joins after 01.04.2012 then time type 9MAR will generate with value 2. In this pcr i am also passing monthly constant quota value 10 time type 9SEP for quota type 90 updation.
Step 4. For this scenario i am taking that quota should not be reached if employee joins before 01.04.2012 then his PL quota of 90 should not be 300 (would be two constant one would be for 300(ZCAPV) and another would be for 60(ZCAPP) in T511k table).
Below is the PCR which will cross check the QUOTA functions update value on absence quota type 90 and cross checking with the capping value based on the 9MAR time type value.
Step 5. PCR placing in schema.
Hope so you all understood the process design and solution on the issue. If do you have any query feel free to comment and give suggestion to make the document better.