42
© Copyright 2014 Wellesley Information Services, Inc. All rights reserved. Increase the Accuracy of Your Time Management Processes with Tips for Integrating Schemas and Rules Dan Capreri HR Focal Point

HR2014_Capreri_Increasetheaccuracy

Embed Size (px)

DESCRIPTION

Nice Document.

Citation preview

Page 1: HR2014_Capreri_Increasetheaccuracy

© Copyright 2014Wellesley Information Services, Inc.

All rights reserved.

Increase the Accuracy of Your Time Management Processes with Tips for Integrating Schemas and Rules

Dan CapreriHR Focal Point

Page 2: HR2014_Capreri_Increasetheaccuracy

1

In This Session

• We will walk through a simple configuration This simple configuration will be instantly re-useable

• We will walk through a complex configuration Complex use of counters will allow checking before and after a

holiday This is re-useable configuration for requirements that have

become common practice• We will review how this configuration integrates and re-uses SAP

Standard

Page 3: HR2014_Capreri_Increasetheaccuracy

2

What We’ll Cover

• 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

Page 4: HR2014_Capreri_Increasetheaccuracy

3

Overview

• Time Evaluation is complex Make it simple by using the standard Make minor adjustments to make major changes

Copying standard functionality is expected and encouraged Most of what you will see today started as standard

• Time Evaluation works Use what works the way it was intended Don’t recreate the wheel with Personnel Calculation Rules

(PCRs) when the standard uses configuration Use Simple PCRs to interact with the standard configuration

Page 5: HR2014_Capreri_Increasetheaccuracy

4

What We’ll Cover

• 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

Page 6: HR2014_Capreri_Increasetheaccuracy

5

Functions and Operations (Within the Rules of Time Evaluation) • 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

Page 7: HR2014_Capreri_Increasetheaccuracy

6

Functions and Operations (Within the Rules of Time Evaluation) (cont.)• 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

Page 8: HR2014_Capreri_Increasetheaccuracy

7

Functions and Operations (Within the Rules of Time Evaluation) (cont.)• Function IF Execute Function If a Condition Is Fulfilled

• Function COPY Copies front-end sub-schema

• Function PTIP Process Time Data Table TIPFunction ACTIO Rule-controlled execution of an action

Page 9: HR2014_Capreri_Increasetheaccuracy

8

What We’ll Cover

• 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

Page 10: HR2014_Capreri_Increasetheaccuracy

9

Writing a Simple Personnel Calculation Rule (PCR)• 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.

This is a Rule to determine a qualifying condition

Page 11: HR2014_Capreri_Increasetheaccuracy

10

Writing a Simple Personnel Calculation Rule (PCR) (cont.)• 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

Page 12: HR2014_Capreri_Increasetheaccuracy

11

Writing a Simple Personnel Calculation Rule (PCR) (cont.)• PCR = ZCAL This Rule verifies that we are looking at employees in a

California Personnel Area

OUTWPEMPLR asks what is the value in Work Contract field

Page 13: HR2014_Capreri_Increasetheaccuracy

12

Writing a Simple Personnel Calculation Rule (PCR) (cont.)• PCR = ZCAL This Rule verifies that we are looking at employees in a

California Personnel Area (cont.)

OUTWPPLANT asks what is the value in Personnel Area field

Page 14: HR2014_Capreri_Increasetheaccuracy

13

Writing a Simple Personnel Calculation Rule (PCR) (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

Page 15: HR2014_Capreri_Increasetheaccuracy

14

Writing a Simple Personnel Calculation Rule (PCR) (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.)

This is a Rule to determine a qualifying condition

Page 16: HR2014_Capreri_Increasetheaccuracy

15

Writing a Simple Personnel Calculation Rule (PCR) (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.)

This is a Rule that executes a calculation

Page 17: HR2014_Capreri_Increasetheaccuracy

16

Writing a Simple Personnel Calculation Rule (PCR) (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 …

Page 18: HR2014_Capreri_Increasetheaccuracy

17

Writing a Simple Personnel Calculation Rule (PCR) (cont.)• PCR = ZOTC This rule distinguishes working day vs. holidays or days off for

8 hour daily overtime (cont.)

VARSTFREE asks whether we are scheduled to work this day

Page 19: HR2014_Capreri_Increasetheaccuracy

18

Writing a Simple Personnel Calculation Rule (PCR) (cont.)• PCR = ZO02 This rule determines the 4 hours over 8 and under 12 for further

double time processing

OUTTPVTYPE asks what processing type is assigned to the time pair

Page 20: HR2014_Capreri_Increasetheaccuracy

19

Writing a Simple Personnel Calculation Rule (PCR) (cont.)• The result of these rules is: We qualify whether our employee is in the appropriate

Personnel Area We determine what type of day it is so we can pay OT over 8

hours in the day We calculate time over 12 hours in a day so we can pay double

time over 12 hours Therefore we satisfy California Overtime rules

Page 21: HR2014_Capreri_Increasetheaccuracy

20

What We’ll Cover

• 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

Page 22: HR2014_Capreri_Increasetheaccuracy

21

Writing a Complex Series of PCRs

• 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

Page 23: HR2014_Capreri_Increasetheaccuracy

22

Writing a Complex Series of PCRs (cont.)

• 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

Page 24: HR2014_Capreri_Increasetheaccuracy

23

Writing a Complex Series of PCRs (cont.)

• 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 has further processing for the day after a holiday

Page 25: HR2014_Capreri_Increasetheaccuracy

24

Writing a Complex Series of PCRs (cont.)

• PCR=ZHOL This rules verifies that the employee worked the day before the

HolidayHere we check conditions today vs. whether we set a “counter” indicating we did work the day before the holiday

Page 26: HR2014_Capreri_Increasetheaccuracy

25

Writing a Complex Series of PCRs (cont.)

• 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

Page 27: HR2014_Capreri_Increasetheaccuracy

26

Writing a Complex Series of PCRs (cont.)

• PCR=ZHOL This rules verifies that the employee worked the day before the

Holiday (cont.)

And if we had an approved absence, we move the counter forward

Page 28: HR2014_Capreri_Increasetheaccuracy

27

Writing a Complex Series of PCRs (cont.)

• PCR=ZHO2 This rule checks if we were paid for the Holiday

Here we check if it’s a holiday today and if the employee was paid the holiday wage type

Page 29: HR2014_Capreri_Increasetheaccuracy

28

Writing a Complex Series of PCRs (cont.)

• 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

Here we check if it’s a holiday today and moves the holiday hours paid “counter” along for future processing

Page 30: HR2014_Capreri_Increasetheaccuracy

29

Writing a Complex Series of PCRs (cont.)

• 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

These absence types are considered “approved” and therefore are considered as “worked” on the day before and after the holiday

Page 31: HR2014_Capreri_Increasetheaccuracy

30

Writing a Simple Personnel Calculation Rule (PCR)

• The result of these rules is: We look at the day before the holiday to make sure we pay the

holiday time We pay the holiday time if appropriate We check the day after the holiday using “counters” to get past

multiple holidays and weekend(or non-working) days We allow the holiday to be paid or reverse the pay if we did not

work the next working day after the holiday Therefore we satisfy “worked before/after the holiday” criteria

Page 32: HR2014_Capreri_Increasetheaccuracy

31

What We’ll Cover

• 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

Page 33: HR2014_Capreri_Increasetheaccuracy

32

How to Integrate with SAP Standard

• Much of what you’ve seen today integrates directly with SAP standard or is a copy of standard

Standard Modified

On the left are sections we reuse. On the right is what we modified.

Page 34: HR2014_Capreri_Increasetheaccuracy

33

How to Integrate with SAP Standard (cont.)

• Much of what you’ve seen today integrates directly with SAP standard or is a copy of standard (cont.)

Standard Modified

On the left are sections we reuse. On the right is what we modified.

Page 35: HR2014_Capreri_Increasetheaccuracy

34

How to Integrate with SAP Standard (cont.)

• Much of what you’ve seen today integrates directly with SAP standard or is a copy of standard (cont.)

Standard Modified

On the left are sections we reuse. On the right is what we modified.

Page 36: HR2014_Capreri_Increasetheaccuracy

35

What We’ll Cover

• 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

Page 37: HR2014_Capreri_Increasetheaccuracy

36

Where to Find More Information

• http://help.sap.com/saphelp_470/helpdata/en/8a/9854b546c411d189470000e829fbbd/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)

Page 38: HR2014_Capreri_Increasetheaccuracy

37

Where to Find More Information (cont.)

• http://help.sap.com/erp2005_ehp_03/helpdata/EN/8a/98550346c411d189470000e829fbbd/content.htm?frameset=/en/8a/9854c246c411d189470000e829fbbd/frameset.htm Using Functions and Operations to Edit Work Tables

Page 39: HR2014_Capreri_Increasetheaccuracy

38

7 Key Points to Take Home

• Use standard configuration first• Copy standard configuration next• When using rules, do as little as possible then let standard

configuration take over• Copy standard rules and modify to your needs• Use the system, automation takes manual entry errors out of the

equation• Know your operations• Know your functions

Page 40: HR2014_Capreri_Increasetheaccuracy

39

Your Turn!

How to contact me:Dan Capreri

[email protected]

Please remember to complete your session evaluation

Page 41: HR2014_Capreri_Increasetheaccuracy

40

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.

Page 42: HR2014_Capreri_Increasetheaccuracy

Wellesley Information Services, 20 Carematrix Drive, Dedham, MA 02026 Copyright © 2014 Wellesley Information Services. All rights reserved.