Skip to Content

If employee active in full month

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

How to write a pcr?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 21, 2019 at 04:32 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 21, 2019 at 04:36 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.