Академический Документы
Профессиональный Документы
Культура Документы
Cindy Lumbert
HR Focal Point
Produced by Wellesley Information Services,
LLC, publisher of SAPinsider. 2015 Wellesley
Information Services. 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
Using custom functions and operations
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
Using custom functions and operations
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
Using custom functions and operations
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.
10
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
11
PCR = ZCAL
This Rule verifies that we are looking at employees in a
California Personnel Area
12
PCR = ZCAL
This Rule verifies that we are looking at employees in a
California Personnel Area (cont.)
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
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.)
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
VARSTDAYTY asks what is
the value in Day Type field
such as working day, day
off, holiday
17
PCR = ZOTC
This rule distinguishes working day vs. holidays or days off for
8 hour daily overtime (cont.)
PCR = ZO02
This rule determines daily double time. It is a modified copy of
the delivered daily over time rule.
Time Type and Processing
Type are changed for new
processing
19
20
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
Using custom functions and operations
Wrap-up
21
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
22
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
23
Main Schema
New Personnel Calculation Rules have been incorporated here
to query time worked before and after a holiday (cont.)
24
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
25
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
26
PCR=ZHOL
This rules verifies that the employee worked the day before the
Holiday (cont.)
27
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
28
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
29
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
31
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
Using custom functions and operations
Wrap-up
32
33
34
35
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
Using custom functions and operations
Wrap-up
36
37
38
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
Using custom functions and operations
Wrap-up
39
http://help.sap.com/erp2005_ehp_07/helpdata/en/da/34e153a21742
4de10000000a174cb4/content.htm?frameset=/en/0e/36e153a21742
4de10000000a174cb4/frameset.htm¤t_toc=/en/0e/36e153a2
17424de10000000a174cb4/plain.htm&node_id=301
SAP Help Portal Personnel Calculation Rules and Operations
in Time Evaluation
http://help.sap.com/erp2005_ehp_07/helpdata/en/e6/34e153a21742
4de10000000a174cb4/content.htm?frameset=/en/da/34e153a21742
4de10000000a174cb4/frameset.htm¤t_toc=/en/0e/36e153a2
17424de10000000a174cb4/plain.htm&node_id=302
SAP Help Portal Operations VARST, HRS, and ADDDB
40
http://help.sap.com/erp2005_ehp_03/helpdata/EN/8a/98550346c41
1d189470000e829fbbd/content.htm?frameset=/en/8a/9854c246c41
1d189470000e829fbbd/frameset.htm
SAP Help Portal Using Functions and Operations to Edit Work
Tables
http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=62259
Time Management (Schema, PCR, Functions and Operations)
(SAP Community Network, February 2013).
41
42
Your Turn!
Disclaimer
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or
an SAP affiliate company) in Germany and other countries. All other product and service names mentioned are the trademarks of their respective
companies. Wellesley Information Services is neither owned nor controlled by SAP SE.
44