It is not possible to define overtime reasons when the overtime is not entered via I2002 or I2005, but instead, through integration with time management, via a clock-in/clock-out system (RPTIME00)
Cause and prerequisitesSolution
The solution described here is available in an LCP. Please look below for the correction number.
The LCP includes:
- new PCR PCTP
- new PCR PCT1
- new PCR PCT2
The LCPs are the preferred method for implementing standard changes into
your system. Still, if you wish, you can implement them yourself by
performing the source code corrections as indicated below.
- 1. Create personnel calculation rule PCTP with the following code:
Rule : PCTP EE subgroup grpg: * Wage/time type: ****
-------------+---------+---------+---------+---------+---------+------
D OUTTPVTYPE
* COLOP*
M D OUTTPORIGS
M * Z GCY PCT1 "2005, 2011(WITH APPROVAL OF 2007)
M P Z GCY PCT2 "2002 FOR BOTH STRATEGIES
- 2. Create personnel calculation rule PCT1 with the following code:
Rule : PCT1 EE subgroup grpg: * Wage/time type: ****
-------------+---------+---------+---------+---------+---- -
D OUTTPCLTYP
* COLOP* FILLWTTPA ADDZLM/65A
1 COLOP* FILLWTTPA ADDZLM/65A
2 COLOP* FILLWTTPA ADDZLM/65A
3 COLOP* FILLWTTPA ADDZLM/65A
5 FILLPC COLOP* FILLWTTPA ADDZLM/65B
6 FILLPC1 COLOP* FILLWTTPA ADDZLM/65B
7 FILLPC2 COLOP* FILLWTTPA ADDZLM/65B
8 FILLPC3 COLOP* FILLWTTPA ADDZLM/65B
- 3. Create personnel calculation rule PCT2 with the following code:
Rule : PCT2 EE subgroup grpg: * Wage/time type: ****
-------------+---------+---------+---------+---------+---------+-
D VAOFF 2 OUTTPPRTYP
* Z GCY PCT1 "IF SPECIAL LOGIC FOR 2002 IS NOT
** Z GCY PCT1 "IF SPECIAL LOGIC FOR 2002 IS NOT
A0 FILLPVM FILLPC COLOP* FILLWTTPA ADDZLM/65A
A1 FILLPVM FILLPC1 COLOP* FILLWTTPA ADDZLM/65A
A2 FILLPVM FILLPC2 COLOP* FILLWTTPA ADDZLM/65A
A3 FILLPVM FILLPC3 COLOP* FILLWTTPA ADDZLM/65A
B0 FILLPVM FILLPC COLOP* FILLWTTPA ADDZLM/65B
B1 FILLPVM FILLPC1 COLOP* FILLWTTPA ADDZLM/65B
B2 FILLPVM FILLPC2 COLOP* FILLWTTPA ADDZLM/65B
B3 FILLPVM FILLPC3 COLOP* FILLWTTPA ADDZLM/65B
Additionally, the following manual changes need to be done:
- 1. Copy the schema TM00 to your name range and change it, to call rule PCTP, as indicated below:
.......
GWT S DZL *
GWT M ZML *
PTIP PCTP GEN <-----------NEW LINE
COPY TW00 *
**
POVT TC20 GEN
.......
- 2. Create the following entries in table T555R:
0 OT: reason=A/compens.=b
1 OT: reason=A/compens.=1
2 OT: reason=A/compens.=2
3 OT: reason=A/compens.=3
5 OT: reason=B/compens.=b
6 OT: reason=B/compens.=1
7 OT: reason=B/compens.=2
8 OT: reason=B/compens.=3
Once this is done, reasons can be assigned to overtime via infotype 2007.
NOTES:
- Rules PCTP, PCT1 and PCT2 must be created with program class "T"
- The values created in T555R are the standard example, but can be changed by the client, provided that the rule PCT1 is changed accordingly.
Additional key words
overtime ; TM00 ; RPTIME00 ; reason
No comments:
Post a Comment