cancel
Showing results for 
Search instead for 
Did you mean: 

If employee active in full month

0 Kudos

Generate wage type 3t02 with value 1 on last day if employee active full month

How to write a pcr?

Accepted Solutions (0)

Answers (2)

Answers (2)

BGibbons
Active Contributor
0 Kudos

Hi,

Some thing along the lines of (in a PCR) - use a time type (ZACT) as a flag to indicate active

If its the first day of the period (VARSTFDYPP or some such like) write out 1 to the time type ZACT - HRS=1 ADDDBZACTZ

if it is not the first day read the previous day HRS=DZACT and write the value back out to the current day under the same time type.

If it is the last day of the period and ZACT from the previous day is 1 then employee has been active all period.

bg

former_member193210
Active Contributor
0 Kudos

You will probably need more than one pcr for that, namely one that will generate Time Type 9INA (as in INActive) with number 1 if employee is "inactive" on a given day of the month and cumulate that in Tables TES and SALDO, and a second pcr that will generate WT 3T02 on the last day of the month if TT 9INA exists in the current month.

And don't forget to test with an employee who is inactive only on the last day of the month.