on 10-19-2015 2:17 PM
Dear Experts,
Please refer the below PCR's, I wrote the below time PCR's and edited the time schema these PCR's to run time evaluation..
I have got success in Time evaluation but the function which is the quota accrual doesnt happend.
i would like to know the possible causes to correct the errors.
But still the time quota is not yet generated i dont know the reasons...but by referring the blogs i tried and updated time type in selection rules and base entitlement as mentioned in the attachment.
I require all your expertise in where i have to do the correction to get the leave accural..
Thanks in Advance
Regards,
Sridharan.K
Hi Sridhar,
Where are the PCR's
Thanks
Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my requirement is to count the no of days and employee worked during the month..
if it accumlates to 23 days automatically 2 days leave balance to be accrued as leave quota for him..
for which i have written PCR's and inserted those PCR's in schemas and made the time evaluation is success for the personnel number.. but eventhough it is success the leave accrual i am not able to find in 2006(abs.quota)..
for your references you can find my PCR's in earlier msgs and data on selection rules i have entered..
Request to please guide me further how to make it working
Thanks & Regards,
Sridharan.K
Hi Sridhar,
Use daily balance rather than Monthly balance , since you are storing the attendance details in P2011, your first PCR is right. do modifications like this .
In T555A - choose 1 in both save as day balance and cumulate in Period Balance , so SALDO also will be generated , have two time types called 8003 and 8004
VARSTABSCE
N
VARSTP2011
Y
ADDDB8003 - where 8003 is your daily balance time type
N
Leave
Y
Leave
So everyday when attendance is there those value will be stored 8003 infotype, finally at the end of the month you will have SALDO Table with overall Attendance counting day.
Then in the second PCR, Use HRS=M8003 so it will read the value from SALDO and and move that to 8004 Time Type, and in selection rule in the day balance give 8004. so at the end of the month it will generate the quota.
Thanks
Sriram
Hi ,
Once you have got the 23 days in a time type.. hope you have another time type placed in the selection rules which is base of creating a quota.
so second would be like this
HRS=M8003 -> assume 8003 has 23 days.
HRS ?23
<
Leave
>
Leave
=
HRS=2
Adddb8004 - where 8004 is placed in Selection rules.
8004 will have 2 now and quota will be created.
Thanks
Sriram
Hi Sridhar,
Can you show the error in another view.. i ma not comfortable in this view as well..
Anyway let me explain my PCR's once again , hope you get an idea..
Have two time types one is to calculate the working days and another one is to pass the calculated days to another time type which you place in Selection rules during the configuration have accrual as monthly , so every month at last quota accrual takes place .
So in your first PCR it should be like this
VARSTABSCE
N
VARSTP2011
Y
ADDDB8003 - where 8003 is your daily balance time type
N
Leave
Y
Leave
In the second PCR write like this
HRS = D8003
HRS+M8003
HRS ?23
<
Leave
>
Leave
=
HRS=2
Adddb8004 - where 8004 is placed in Selection rules.
8004 will have 2 now and quota will be created.
Thanks
Sriram
HI,
Sridharan, Lots of thread are available regarding your requirement.
IN your requirement there have two part. 1st part check the 23day's actual present and in the 2nd part if employee has worked more than equal to 23day's then 2 day's leave quota will be credited to his account on which date.
Before design this you have to check some of the condition's like if you will count employee's working day's if he is working on weekly off or public holiday's.
I am taking only working day's as per WSR(excluding Weekly off and Public Holiday's).
ZWRK (Check employee is present on working day's and will update to time type)
*
****
VARSTFREE
Y
LEAVE
N
VARSTHOLCL
1
LEAVE
*
VARSTPRSNT
N
LEAVE
Y
HRS=1
ADDDB1000Z
Here 1000 is the time type and for this time type you will maintain 1 in the period cummulation balance field.
Insert this PCR with ACTIO function after P2002 in the time schema.
In the next PCR we will check the Time type 1000 value 23 or not.
ZCHK
*
****
HRS=M1000
HRS?23
<
LEAVE
=
HRS=M1000
HRS-M1000
HRS=2
ADDMB1010Z
Here time type 1010 will be used in the base entitlement of quota type in the period balance. Select the accrual period in the base entitlement and select the monthly radio button the accrual period tab in the quota generation rule.
Insert this PCR with ACTIO function after CUMBT function and after this PCR line again add CUMBT function in the time schema.
Check and let me know.
Regards,
Sankarsan
Hi,
Remove the time type 8004 under accrual entitlement tab in the generation rule of the quota type.
Select the no multiplication radio button.
In the PCR add the below things.
in the 1st PCR
VARSTP2011
N
LEAVE
Y
ADDDB8003Z
in the 2nd PCR
Use constant instead of 23 for decision parameter and also add ADDDB8004Z.
If still your requirement is not coming then Share the SALDO table and ZES table details from CUMBT function.
Regards,
Sankarsan
Hi Sridharan,
Please remove 8004 from selection rules and choose no pro-rata calculation.
Did you run the schema was it successful, can you please let me know what is the current value in 8003 time type incase if you have two days of attendance.
Show me what 8004 has , where did you place the PCR in the schema?
Thanks
Sriram
Hi,
Please find all details required by you..
1. I have attached the entire schema where z903 & z904 @ line 430 & 440.
2. Selection Rules i have made change please refer whether it is correct or not.. and there is also screen shot of base entitlement where 8004 time type is there. see whether it is necessary or not..
3. Time evaluation is success when it is running with Test run . and if i run with only the display log tree you can see in the attachment the red highlighter area where the error is..
4. There is the time event avaialble according to Work schedule where sat and sun holiday.. if i run it on whole 15.09.15 to 14.10.2015 total working days(without public holiday and sat,sundays) are 22 ( i have added few saturday in & out timings to count one extra day) where i should get 2 days accrual for 23 days.
4. Hope all the required informations are available.. if any info req pls revert.
Need your advice..
Thanks & Regards,
Sridharan.K
Hi,
In the ZES table and SALDO table there have no time type 8003 or time type 8004 is generated.
In your 1st PCR Z903, could you tell me how you are giving input in the system about employee's present.
In the 2nd PCR Z904 placing is not correct. You have to place it after CUMBT function and after this PCR line again you have to add CUMBT function in the time schema.
Check my reply on the 23oct Oct, at around 1:29 pm. Will get an idea.
Regards,
Sankarsan
Hi,
Thanks for your support..I am trying to use the PCR's which u sent on 23 Oct @ 9.59am..if you could sent that in the attached format which will be help ful to understand that in a betterway..and also i believe u aware of my requirement. 2 days of leave accrual for every 23 days.. irrespective of holidays and saturdays and sundays also..if there is In and Out time it should calcualate it.
Please do the needful
Thanks & Regards,
Sridharan.K
Hi Sankarsan / Sriram,
Please find attached the Saldo table output for the PCR which i wrote earlier..
now time type 8003 & M003 are generated in saldo table .
you can find the PCR as attached herewith .. and also i have attached the time type, selection rules configuration for your reference..
i request your advise now where i have to cross check exactly to get the leave accural.. or where i have left importantly.
need your advice. i believe now that based on your update it will certanily workout for me..
Thanks in advance
Regards,
Sridharan.K
Hi,
Its not correct.
Create two time type say 8003 & 8004. Here 8003 will be used as day counter and 8004 will be used as quota accrual which will be used in quota type base entitlement.
Time type 8004 characteristics would be Day balance as 1 in table V_T555A and where time type 8003 characteristics would be Day balance as 1 in the table V_T555A.
In the Base entitlement you will insert time type 8004 in the Day Balance field and select the accrual period radio button. In the selection rule you will use day accrual radio button under accrual period tab and (not do not use any time type in the accrual entitlement tab in the selection rule).
Now write your PCR.
ZWRK
*
****
VARSTP2011
N
LEAVE
Y
HRS=1
ADDMB8003Z
Insert this PCR after function P2002 in the time schema with function ACTIO.
ZQUO
*
****
HRS=M8003
HRS+D8003
HRS?23
*
LEAVE
=
HRS=2
ADDDB8004Z
HRS=M8003
HRS-M8003
ADDMB8003Z
Use this PCR before the CUMBT function with ACTIO function.
Check and let me know.
Regards,
Sankarsan
Hi Sridharan
Please follow up the step which was given by Sankarsan, since in 8004 you are storing the numbers for quota that should be in Selection rules.. Since employee reaches whenever 23 days you are giving 2 days.. incase if employee is present for 25 days then what is the requirement here.. still 2 days will be given if thats case..
Then in the second PCR after >
you have to copy the same what you have written under this =
Thanks
Sriram
Dear Sankarsan,
I have followed the PCR and as run the time evaluation as per your advise but still i am unable to get the generation of leave accrual.
for your reference, i have attached the PCR, Schema, Selection rules, timetype, saldo , zes table for your reference..
i dont know where is the remaining left out in configuration . please guide me.
looking fwd.
Thanks & Regards,
Sridharan.K
Hi,
After 850 line no add the CUMBT function once again.
Also share the attendance entry of this employee and I think you are evaluating only 1day or the employee. Evaluate full time evaluation period and check the TTime type 8003 value from SALDO table on that day when 22day's working day's is completed from time log and on the same day check Ttime type 8004 from ZES table.
Regards,
Sankarsan
Dear Sankarsan,
I have done the changes, and again i run the time schema the saldo table did not change even after the CUMBT function aftetr 000850.
my time evaluation period is 24.08.2015 to 14.10.2015..
and i also tried running it from 01.09.2015 to 30.09.2015 but still no changes happened
Thanks & Regards,
Sridharan.K
Ok.
Run with display log tick in PT60.When you are running from 01.09.2015 to 30.09.2015 then check on the 28.09.2015 date's SALDO table and ZES table details from time log and share the details.
Also make it 1 for the time type 8003 in the transfer previous period field in table V_T555A.
Regards,
Sankarsan
You have run from 28.04.2015 to 14.10.2015????
I think you have maintained the time entry from 28.09 to 14.10. Change the PCR ZWRK like below
ZWRK
*
****
VARSTP2011
N
LEAVE
Y
HRS=1
ADDDB8003Z
For the time type characteristic of 8003 changed to 1 as Period Cumulation balance rather than the day balance in table V_T555A.
After done this changes.
Only run on the 28.09.2015 and go the time log expand the above PCR then share the Processing details of this PCR. Also share the function P2011 TOP table details for date 28.09.2015.
Regards,
Sankarsan
You have already show many times. On the check on the 26th September what is Time type 8003 value on which date's become 23 based upon the SALDO table entry of time type 8003????
Also share the schema details of these PCR placement????
Why TType 8004 is not generated you will get an clue... Please share the above information....???
Regards,
Sankarsan
Dear Sankarsan / Sriram,
First of all thank you very much for your kind patience and guidance to me until i generate this quota leave accrual.
i have now got the absence quota generation 2 days in 2006 infotype.. it all happened and credit goes to you...
But still have so many doubts in that..i will come to those doubts later on.. and now please find the attachment of leave quota generation and Schema. as requried by Mr.Sankarsan
I run the time eval from 01.09.2015 to 30.09.2015 and I found on 27.09.2015 there was no of days worked is 22 days in saldo table..and on 28.09.2015 it chanted to zero , i dont know the reason for that.
our actual requirement is every 23 days leave accrual of 2 days. i think it takes from 22 working days.. ...
pleae guide and looking fwd
Thanks a LOT
Thanks & Regards,
Sridharan.K
Hi,
On the 27th it's completed 22 day's worked. On the 23th it would be 23 day's working so once it's reached to 23 day's working on that day quota should be generated as 2 and all values of Monthly time type should be Zero since from 29th of the month day's on wards it will again start checking the working day's of 23 concept.
Hope so it's clear now.
Please close the thread with proper helpful and correct answer marking that other's from the SCN will get a benefit by this issue's related discussion.
Regards,
Sankarsan
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
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.