Skip to Content

how to split 16 hours of continuous work in 2 diferent days

Hi Experts!

I have an issue when an employee clock-in (P10) from Sunday (FREE day) 09:00 pm and complete his plan (05:00 am to 01:00 pm.) clocking-out (P20) on Monday 01:00 pm, but on Monday RPTIME00 shows me "Error entry no. 01 Employee not at work".

I need to process 8 hours as overtime on Sunday and 8 normal hours on Monday.

I tried to split on 00:00 am and store on ZANT time type.

But I couldn’t get and set as a normal pair.

I tried GENTG in order create the pair on Monday

But it set only 8 hours as his Daily work schedule; I need 13 hours; 8 normal and 5 as overtime 0310.

It's the only idea I have for now.

You know if it is realistic and how?

1.png (50.3 kB)
2.png (7.7 kB)
3.png (5.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jul 28, 2016 at 06:05 PM


    Finally I set the time type ZANT:



    Then I split the overtime

    ZH20 * **** VARSTFREE Programa diar. LIBR

    ZH20 * **** N VARSTPRSNT Empleado presente

    ZH20 * **** N N HRS=LZANT Fijar

    ZH20 * **** N N HRS?0 Operac.decisión HRS

    ZH20 * **** N N > VARSTFIRST Primer par

    ZH20 * **** N N > Y HRS=IDAHRS Fijar

    ZH20 * **** N N > Y GENTPE Divid.fin.par.tiemp

    ZH20 * **** N N > Y FILLPV Tipo de tratamiento

    ZH20 * **** N N > Y COLOP 0310 TIP >TOP ZA

    Now I need to customized version of the PCR in order to evade the error.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2016 at 01:07 AM

    1. Check if current day is off day or Phol.

    If so, split pair ending past midnight; for current day set as OT.

    - - For next day if holiday set it as OT, else as normal time

    Else collect pair

    2. Insert following lines in schema

    IF ZDWS If today off or PHol

    PTIP ZOTC GEN Generate OT


    3. PCR ZDWS Check if today off or PHol



    N 0 SCOND=F IF

    N * SCOND=T IF


    4. PCR ZOTC Generate OT


    DHRS=PEND HRS?24 pair end past midnight?

    * COLOP* -no;

    > DHRS=PBEG HRS?24 -yes;pair start before midnight?

    > * FILLPVS COLOP* - -no; set pair as normal

    > < * - -yes; split pair, create OT



    Add a comment
    10|10000 characters needed characters exceeded

    • Pl note the operation to split the pair using the last character (10th char for the op'n) 'S' in GENTP op'n is for planned work:


      NEXTR is the nextbop'n, to indicate to go to next line; alternatively you can use '*'. with NEXTR and blank or '*' the next lines will be numbered sequentially as 1, 2, 3, etc.

      If you use NEXTR A, NEXTR B, etc, the lines will need to be alphabetically sequential.

      NEXTR is for both PT & PY ocr's.

      See the help info enclosed.

      For your problem re: next day, you may be able to use 3 time types to store normal attendance hrs(using proc type normally 'S') or DWS hrs, start time and end time and query them each day in another PCR. If a day's normal attendance is split into more than one pair due to break times, then you need two PCR's to store the earliest start time and latest end time.

      See the link below

      Further you have another post re: next day free in the link below. I have given a similar response.

  • Posted on Jul 25, 2016 at 08:57 PM

    Thank you very much!

    How can I avoid the error "Error entry no. 01 Employee not at work"? I don’t know how to set the pair on Monday from the time type ZANT.

    I need to set 13 hours altogether; 8 normal and 5 as overtime 0310.

    Add a comment
    10|10000 characters needed characters exceeded

    • I suggest using a customized version of the PCR which is checking and giving the error.

      In this pcr, if the previous day's time type created from the overnight attendance is not zero, create pairs with those hours - one for OT and one for normal attendance; else give error message.

      You can use the OT attendance to create a OT w/t either on the previous day or the day normal attendance exists.

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.