cancel
Showing results for 
Search instead for 
Did you mean: 

PCR to overwrite ZL table WT values

Former Member
0 Kudos

Dear All,

Schema is designed with many PCRs for LOP generation for many group of employees. But now, LOP is getting generated .50 days for all the type of clock data for across the Organisation.


Say for example ,


Current Situation:

employee's planned working hour is 9 hours and he/she worked for 7 hrs in that day. Our PCRs generate 0.50 LOP and if he/she works for less that 4.5 hrs (which is half of planned hours) also 0.50 lop gets generated.


Expected:

What ever the Planned working hours may be, if employee works for less than half of the planned hours, then system should generate 1 day lop and if works for more than half of planned hours or equal to half of planned working hours but less than planed hours, then system should generate .50 LOP.


Instead of changing the existing PCRs,I want to write a new PCR where the value of ZL table will be overwritten.

So how should be the PCR is written, plz suggest.

Regards

Sujata

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear All,

There is not a single PCR used to calculate LOP. There are minimum 20 PCRs for many group of employees. Hence, not able to share ...or else I could have done the changes in those PCRs. For calculating LOP for different type of employees, the PCRs are written very complex. And, for example to calculate Actual working time for few group of employees, we have included On Duty (All Type)+half day leave+ short leave etc and for few groups not included. LOP is getting generated for Early Going, Short of time, Onduty+actual working time<planned time etc.

Since, I was trying to write a new PCR instead of changing all those 20.

Plz suggest whether I should try to make changes in all those PCRs or I should write a new one...

Regards

Sujata

Sanky
Active Contributor
0 Kudos

Ok Sujata.

I am sharing the Pcr details but with out seeing your all pcrs and schema design would be difficult to say where to insert in the Schema.

ZTST (Calculating actual working hours in a day)

*

  ****

       OUTTPORIGS

               *

                     COLOP *

               P

                     HRS=PNUM

                     ADDDB 1000Z

                     HRS=S

                     ADDDB 1001Z

                     COLOP *

               E

                     HRS=PNUM

                     ADDDB 1000Z

                     HRS=S

                     ADDDB 1001Z

                     COLOP *

Insert this pcr after P2002 function in th etime schema like below

PTIP ZTST GEN

ZCHK (Check worked less than half day dws or more)

*

   ****

          HRS=D1000

          HRS?S

                *

                   HRS=D1001

                   HRS/2

                   ADDDB 1002Z

                   HRS=D1000

                   HRS?D1002

                        <

                             HRS=1

                             ADDZL 9000

                        *

                             HRS=0.50

                             ADDZL 9000

               >

                  LEAVE

Insert this PCR before CUMBT function with ACTIO function like below

ACTIO ZCHK

Check and tell me.

Regards,

Sankarsan

Sanky
Active Contributor
0 Kudos


Hi,

Please share that PCR which is currently calculating wrong calculation.

Regards,

Sankarsan

venkateshorusu
Active Contributor
0 Kudos

As far i understand, Instead of writing, Introducing a new PCR you can manipulate the existing one with minor adjustments if it is not possible to manipulate the PCR then we have to think about writing, introducing new one.

Regards

Venkatesh