on 10-21-2019 2:59 PM
Generate wage type 3t02 with value 1 on last day if employee active full month
How to write a pcr?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.