Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
of Your Time
Management Processes
with Tips for Integrating
Schemas and Rules
Dan Capreri
HR Focal Point
Copyright 2014
Wellesley Information Services, Inc.
All rights reserved.
In This Session
Overview
Functions and operations within the rules of time evaluation
Writing a simple Personnel Calculation Rule (PCR)
Writing a complex series of PCRs
How to integrate with SAP standard
Wrap-up
Overview
Overview
Functions and operations within the rules of time evaluation
Writing a simple Personnel Calculation Rule (PCR)
Writing a complex series of PCRs
How to integrate with SAP standard
Wrap-up
Operation VARST
Operation VARST is only used as a decision operation
You can use it to query general status fields (values from
tables, infotypes, data on the weekday, and so on) or to enter
them in the variable key of the personnel calculation rule
Operation HRS
Operation HRS processes the number of hours field
You can use it to enter a particular value in the number of
hours field and/or provide values from tables, infotypes,
results from tables SALDO, TES, and so on
Operation OUTWP
Operation OUTWP is only used as a decision operation
You can use it to query work center data or to enter them in
the variable key of the personnel calculation rule
Operation ADDDB
Operation ADDDB is an operation that is used to store values in
table TES
It enters the value of the number of hours field for the
specified time type in table TES (day balances)
Operation ADDZL
Operation ADDZL adds the current number field to the internal
table ZL
6
Function IF
Execute Function If a Condition Is Fulfilled
Function COPY
Copies front-end sub-schema
Function PTIP
Process Time Data Table TIP
Function ACTIO
Rule-controlled execution of an action
Overview
Functions and operations within the rules of time evaluation
Writing a simple Personnel Calculation Rule (PCR)
Writing a complex series of PCRs
How to integrate with SAP standard
Wrap-up
California Overtime
A new Personnel Calculation Rule and a Sub-Schema have
been incorporated here to distinguish Overtime Rules for
California vs. the rest of the U.S.
California Overtime
A new Personnel Calculation Rule and a Sub-Schema have
been incorporated here to distinguish Overtime Rules for
California vs. the rest of the U.S. (cont.)
This is a sub-schema to
calculate overtime
10
PCR = ZCAL
This Rule verifies that we are looking at employees in a
California Personnel Area
11
PCR = ZCAL
This Rule verifies that we are looking at employees in a
California Personnel Area (cont.)
12
Sub-Schema = ZW15
This contains 2 modified rules for further processing of
overtime after 8 or 12 hours
This is a copy of standard sub-schema TW15
13
Sub-Schema = ZW15
This contains 2 modified rules for further processing of
overtime after 8 or 12 hours
This is a copy of standard sub-schema TW15 (cont.)
14
Sub-Schema = ZW15
This contains 2 modified rules for further processing of
overtime after 8 or 12 hours
This is a copy of standard sub-schema TW15 (cont.)
PCR = ZOTC
This rule distinguishes working day vs. holidays or days off for
8 hour daily overtime
PCR = ZOTC
This rule distinguishes working day vs. holidays or days off for
8 hour daily overtime (cont.)
PCR = ZO02
This rule determines the 4 hours over 8 and under 12 for further
double time processing
19
Overview
Functions and operations within the rules of time evaluation
Writing a simple Personnel Calculation Rule (PCR)
Writing a complex series of PCRs
How to integrate with SAP standard
Wrap-up
20
Main Schema
New Personnel Calculation Rules have been incorporated here
to query time worked before and after a holiday
This is a Rule to determine
a qualifying condition
21
Main Schema
New Personnel Calculation Rules have been incorporated here
to query time worked before and after a holiday (cont.)
This is a Rule that checks
whether we worked the day
after the holiday
22
Main Schema
New Personnel Calculation Rules have been incorporated here
to query time worked before and after a holiday (cont.)
23
PCR=ZHOL
This rules verifies that the employee worked the day before the
Holiday
Here we check conditions
today vs. whether we set a
counter indicating we did
work the day before the
holiday
24
PCR=ZHOL
This rules verifies that the employee worked the day before the
Holiday (cont.)
Then we check if the
counter is set indicating we
worked the day before the
holiday
25
PCR=ZHOL
This rules verifies that the employee worked the day before the
Holiday (cont.)
26
PCR=ZHO2
This rule checks if we were paid for the Holiday
Here we check if its a
holiday today and if the
employee was paid the
holiday wage type
27
PCR=ZHO4
This rule directs processing to an additional rule if today is not
a holiday or continues the counter if it is a holiday
PCR=ZHO3
The combination of ZHO4 and ZHO3 verify if we worked the day
after the Holiday and if we already got paid the Holiday
If we got paid for the Holiday but then did not work the
following day after the Holiday we reverse the Holiday hours
30
Overview
Functions and operations within the rules of time evaluation
Writing a simple Personnel Calculation Rule (PCR)
Writing a complex series of PCRs
How to integrate with SAP standard
Wrap-up
31
32
33
34
Overview
Functions and operations within the rules of time evaluation
Writing a simple Personnel Calculation Rule (PCR)
Writing a complex series of PCRs
How to integrate with SAP standard
Wrap-up
35
http://help.sap.com/saphelp_470/helpdata/en/8a/9854b546c411d18
9470000e829fbbd/content.htm
Help portal Personnel Calculation Rules and Operations in
Time Evaluation
http://help.sap.com/saphelp_erp60_sp/helpdata/en/8a/9854e946c4
11d189470000e829fbbd/content.htm
Help portal describing the common operations: VARST, HRS,
ADDDB
http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=62259
SAP Community Network page describing Time Management
(Schema, PCR, Functions and Operations)
36
http://help.sap.com/erp2005_ehp_03/helpdata/EN/8a/98550346c41
1d189470000e829fbbd/content.htm?frameset=/en/8a/9854c246c41
1d189470000e829fbbd/frameset.htm
Using Functions and Operations to Edit Work Tables
37
38
Your Turn!
Disclaimer
SAP, R/3, mySAP, mySAP.com, SAP NetWeaver, Duet, PartnerEdge, and other SAP products and services mentioned herein as well as their
respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and
service names mentioned are the trademarks of their respective companies. Wellesley Information Services is neither owned nor controlled by SAP.
40