Skip to Content
author's profile photo Former Member
Former Member

Issue with Custom Time Evaluation PCR

Gurus-

Our customer has a requirement that only a maximum of 4hrs will be counted towards the flextime calculation. To do this, I have created a custom rule that will adjust skeleton time once the PCR TR11 has processed. I have begun the rule by looking at the value in the time type Travel(Z001) and then comparing the value to 4. If the value is greater than 4 I have the rule going down one path and if the value is less than 4 I have the rule going down a different path. As it stands If the value of Travel is greater than 4, the path chosen is that of the value is less than 4 and that isn't correct. Please review the rule and give any suggestions of changes I can make.

Z001=TRAVEL

Z004=S-ATTENDANCE

Z005=Z004+ATTENDANCE

Z006=TRAVEL-Z004

0940=ATTENDANCE

0003=SKELETON

HRS=Z001

HRS?4

<

GCY ZR12:

HRS=S

HRS-D0940

ADDDBZ004

HRS=Z004

HRS+D0940

ADDDBZ005

HRS=Z001

HRS-Z004

ADDDBZ006

HRS=0003

ADDDB0003Z

HRS=S

HRS+Z006

ADDDB0003

>

HRS=D0940

HRS?S

<

GCY ZR212:

HRS=S

HRS-D0940

ADDDBZ004

HRS=Z004

HRS+D0940

ADDDBZ005

HRS=Z001

HRS-Z004

ADDDBZ006

HRS=0003

ADDDB0003Z

HRS=S

HRS+Z006

ADDDB0003

>

HRS=D0003

ADDDB0003Z

HRS=4

ADDDB0003

HRS=D0940

ADDDB0003

Thanks in advance,

Donna

Edited by: Donna Motsinger Scott on Jul 19, 2011 10:45 PM

Edited by: Donna Motsinger Scott on Jul 19, 2011 10:47 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2011 at 05:48 AM

    Hi,

    While your calling daybalance use HRS=Dz001, if month balance hrs=mz001, when yr comparing hrs?Dz001 for day balance, HRS?Mz001,

    In first line only your written HRS=Z001..

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 20, 2011 at 01:46 AM

    Hi Donna,

    When your comparing the hours against 4 for each response, your branching out to the same logic

    D HRS=Z001 HRS?4

    < GCY ZR12

    > GCY ZR12

    You need to do:

    D HRS=Z001 HRS?4

    < GCY ZR12 "Less than, call different rule

    > GCY ZR13 "Greater Than, call different rule

    Hope this helps.

    Cheers,

    Brad

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Brad-

      Thanks for your reply. I took your suggestion and created an additional rule. I discovered the bulk of my problem was that I was not phrasing certain statements correctly. Where I had HRS=Z001....it should have been written as HRS=DZ001.

      Thanks for your help!

      Donna

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.