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.
User | Count |
---|---|
87 | |
9 | |
7 | |
6 | |
6 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.