cancel
Showing results for 
Search instead for 
Did you mean: 

Time PCR using constant

former_member1331311
Participant
0 Kudos

I have a scenario where client wants number of working days to be 26 - the PL, CL. We are not using time, so cannot use the tksoll etc.

I have written a time PCR where i have kept a constant 26 in T511K table. Now i am reading that constant through time evaluation and when i am doing so, the system is calculation value of 25-1-2 = 22 but it is doing for every day the time evaluation runs. I just want system to take the value once in a month. Can anyone please tell why this is happening. Instead of value 22 coming at end of month, it is coming out to be 600, or 500 coz it is again and again cumulating.

I amc alling my rule iwth ACTIO and in time type have selected only add to period balance as i thought adding to daily balance may be raeson but still not working.

HRS=CZTWRDHRS-MY-RL HRS-MY-PL HRS-MY-PE HRS-MYSLC NEXTR A

HRS-MYSLX HRS-MY-OL ADDMBYPRD

where ZTWRD is 26 and all other are my leave type time types for RL, PL, PE SLC, SLX, OL.

I jus want a value of 26 - leave types once at end of month, not on a daily basis. No selected ADDDB. Please guide.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

glad to help:)

kr

Jacob

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Tarunsarpal

what about embedding it in an IF EOM(end of month) statement. should solve your issue about evaluating every day.

kind regards

jacob

former_member1331311
Participant
0 Kudos

Thanks Jacob. Your insight was helpful. I just used the function VARSTLDAYP and checked the values and rule is working fine now. Really appreciate your help making me think the logic and actually doing it.

D VARSTLDAYP

N HRS=DZPRD HRS*0 ADDDBZPRDZ

y

i JUST MADE ALL THE DAYS WHICH ARE NOT END OF MONTH AS ZERO VALUE and the last day of month excluded.

former_member1331311
Participant
0 Kudos

Hi Sujith

I am just using Positive time evaluation without the payroll component. So i can just place this rule in ZM00 schema only. Is there any way we can manage in this schema and the constant is not daily calculated. WILL APPRECIATE. Not using Payroll schema at all.

Sujith_EM
Active Contributor
0 Kudos

*Your that constant and rule is used in daily process of time evaluation , because of that the calculation is happening every day *

The placement of PCR is wrong in SCHEMA

you can use this(TKAP*. Paid absence and TKAU* Unpaid Absence ) in your rule instead of mentioning each and every absence type

Please check PCR INP1 , that is the PCR for your requirement(if it is india payroll)(otherwise please check XPPF, XPP0 & XFF1)

Check processing type in processing class 10 (table v_512d_w ) for basic pay