on 11-03-2012 6:34 AM
Hi Gurus,
I am new to SAP and having no idea for how write a PCR for leave carry forward (Privilege Leave) for following conditions:
Check the Date of joining if DOJ is between 01.01.2012 and 31.12.2012 then carry forward the entire (PL) remaining quota.
If not then, check the leave (PL) taken (here can we check the deduction -IT2006) for current calendar year is equal to 15 for greater than 15.
If yes, then carry forward the entire (PL) remaining quota.
If not, then subtract (15-leave (PL) taken for current calendar year) = what ever is the nos (A)
Subtract A from the available quota and carry forward the leave.
Or please suggest if there is some other way to do this
Regards,
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In his example, Siva creates time type Z=04 on the 31st day of the 12th month in PCR ZTE1 (using operation ADDDBZ=04)
In PCR ZTE2, activated on the first day of the first month, Siva uses operation HRS to look at the last result of Time Type Z=04, meaning yesterday's value (using operation HRS=LZ=04)
If the time type would be xxxx, then the operation would be ADDDBxxxx and HRS=Lxxxx
Look at the documentation for operation HRS (through F1 in the PCR or through t-code pe04)
Next, select the hyperlink to operation HRS1 and look for the hyperlink to "Retrieving data from Infotype", where you should find an hyperlink to Operation HRS1F.
On the 31st, you should add a decision on the Quota (OUTAQTYP), and accorging to the return key, read the Remaining Quota and transfer it to a Time Type (as Siva showed you), and then read the Quota Used (HRS=FCqqv or HRS=FFqqv ?) and transfer it to an other Time Type. On the following day you'll be able to read these values and create the operations that will transfer what is required.
Dear Gurus,
Can you please help?
regards,
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What will happen in 2013, in 2014, and so on, or only at the end of this year?
If the requirement is only valid for 2012, then your first PCR will need to be valid only on the 31st day of December 2012, and then look at how many days since hiring (through IT0041), and based on the return value, read IT2006 and transfer the Quota Balance into a temporary Time Type, or query the leaves taken depending on the return value either transfer the Quota Balance or the Quota Balance minus 15 into the temporary Time Type.
The second PCRs would need to be valid only on the first day of January 2013 and read yesterday's value of the temporaryTime Type (using operation HRS=Lxxxx) to create the new year's Quota.
If the requirement is to to apply the same Quota Transfer Rule every year, then you do the same but omit the query on the current year.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
8 | |
8 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.