Post on 14-Apr-2018
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
1/73
2005 Wellesley Information Services. All rights reserved.
Master the Six SAP Payroll Building Blocks :Features, Schemas, Rules,
Operations, OperationParameters, and Wage Type
IntegrationCal CastleberryRowSix LLC
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
2/73
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
3/73
3
What Well Cover
HR/Payroll features (decision trees) configuration
Schemas and subschemas configuration
Payroll functions SAP ABAP
Calculation rules (or cycles) configuration
Operations within rules SAP ABAP
Parameters used for operations configuration
Parameters available for use SAP ABAP
Wage type integration tie it together Wrap-up
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
4/734
What Well Cover To the ABAP Code Level
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
5/735
What Well Cover
HR/Payroll features (decision trees) configuration
Schemas and subschemas configuration
Payroll functions SAP ABAP
Calculation rules (or cycles) configuration
Operations within rules SAP ABAP
Parameters used for operations configuration
Parameters available for use SAP ABAP
Wage type integration tie it together Wrap-up
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
6/736
The Concept of HR/Payroll Features (Decision Trees)
What are HR/Payroll features? Features are decision trees designed to allow you to configure the
logical determination of data entry values
Decision trees allow for a reduction and/or elimination of dataentry errors and required intelligent key strokes
When and where are HR/Payroll features relevant?
Features are programmatically (ABAP) executed at dialog entry
time as the various types of master data information (infotypes)
are created (not effective dated)
The features available to be used and configured for any
particular infotype can easily be determined and verif ied throughthe use of the standard SAP debugger functionality
Not directly relevant to the gross-to-net payroll accounting, but
indirectly via the stored master data
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
7/737
Example Maintain/Display HR/Payroll Feature ABKRS
Transaction PE03 is used to display and/or maintain(configure) the decision tree
Where
toFIND it
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
8/73
8
Example HR/Payroll Feature (Decision Tree) ABKRS
In this example, the decisiontree will default a payroll
accounting area value of 12
(weekly) for the FTNon-Exempt employee
A value of 13 (bi-weekly) will
be defaulted for the FT ExemptCorp employee
The features are configurable
specific to customers needs
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
9/73
9
When Do the Features (Decision Trees) Execute?
In this example, the decisiontree used the employeegroup value and theemployee subgroup value to
determine the correct payrollaccounting area when theinfotype 0001 (organizational
assignment) was created.This results in a value of 12(weekly) being defaulted forthe payroll accounting area
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
10/73
10
Feature (Decision Trees) Determination and Verification Steps
Prior to creating or changing an infotype, initiate the menupath or SE37 (function builder) transaction to display theHR_FEATURE_BACKFIELD function. Set a breakpoint.
Feature (Decision Trees) Determination and Verification
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
11/73
11
Now, createthe infotypethat you
would like todetermine andverify the
applicablefeatures
At each point
that a featureis relevant, thedebugger will
stop
Feature (Decision Trees) Determination and VerificationSteps (cont.)
Feature (Decision Trees) Determination and Verification
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
12/73
12
Execute each line until you arrive at the PERFORMCALL_549B line
Step into the PERFORM CALL_549B line
Feature (Decision Trees) Determination and VerificationSteps (cont.)
Feature (Decision Trees) Determination and Verification
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
13/73
13
Now, you canexamine and verifythe exact feature
decision tree. Usethe step into iconto verify thefeature (decisiontree) logic. In myexample, the casestatements thatarrive to a BACKfield value of 12are indicated by
the red arrows
Feature (Decision Trees) Determination and VerificationSteps (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
14/73
14
What Well Cover
HR/Payroll features (decision trees) configuration
Schemas and subschemas configuration
Payroll functions SAP ABAP Calculation rules (or cycles) configuration
Operations within rules SAP ABAP
Parameters used for operations configuration
Parameters available for use SAP ABAP
Wage type integration tie it together
Wrap-up
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
15/73
15
The Concept of Schemas Payroll Flow Control
What are schemas and subschemas? The schema controls the flow of payroll accounting
The schema is organized in a logical manner to easily reflect
the normal flow of gross to net, and the recursive loopingrequired in the case of a zero net check
The schema is configurable to allow for the flexibili ty of your
business needs and requirements. What is the RPCALCx0 program?
The RPCALCx0 program is not a top-down program, but a
warehouse of code to be chosen to be executed by theschema
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
16/73
16
Example Maintain/Display Schema Payroll Flow Control
Transaction PE01 is used to display and/or maintain(configure) the schemas and subschemas
Where
to
FIND it
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
17/73
17
Example Maintain/Display Schema Payroll Flow Control (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
18/73
18
Example Maintain/Display Schema Payroll Flow Control (cont.)
In my example, themain payroll gross-to-
net schema is Z000
This schema
determines the sub-
schemas that will beused to accomplish
the gross-to-net
payroll accounting
The schema is
configurable
Wh t A th V i T f St d d S h ?
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
19/73
19
What Are the Various Types of Standard Schemas?
Following is a list of the SAP standard schemas suppliedfor various functional reasons. Regardless of the specificschema, each controls the flow of programming to beselected from the warehouse of code stored in theRPCALCU0 program
You can copy and enhance each of these executableschemas via configuration to meet specific requirements
E l M i t i /Di l S h P ll Fl C t l
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
20/73
20
Example Maintain/Display Schema Payroll Flow Control
For example, you maynot wish to implementTravel Management atthis point in time
Or, you may requireenhancements to theway additional
payments anddeductions areprocessed
Or you may desire taxposting enhancementsto allow the use of auto-
clearing functionality inFI/CO
E l S b h UBD0 B i D t Fl C t l
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
21/73
21
Example Subschema UBD0 Basic Data Flow Control
In this example, the UBD0 subschema wil l control the flow ofpayroll accounting based on SAP-supplied logic
E l M i t i /Di l S b h P ll Fl C t l
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
22/73
22
Example Maintain/Display Subschema Payroll Flow Control
Or, you may wish toenhance the SAP-supplied subschemapayroll flow control
For example, you maynot be implementingintegrated SAP timemanagement
functionality Or you may have unique
rules regarding the way
you value shiftdifferential rates forvarious union contracts
The subschema is
configurable
What Well Cover
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
23/73
23
What Well Cover
HR/Payroll features (decision trees) configuration
Schemas and subschemas configuration
Payroll functions SAP ABAP Calculation rules (or cycles) configuration
Operations within rules SAP ABAP
Parameters used for operations configuration
Parameters available for use SAP ABAP
Wage type integration tie it together Wrap-up
The Concept of Payroll Functions (ABAP Code)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
24/73
24
The Concept of Payroll Functions (ABAP Code)
What are payroll functions? The function is a logical block of ABAP code that is
contained in the RPCALCU0 warehouse of code
When and where are payroll functions relevant? The use of a functions is configured in the schema and
subschemas and executed at payroll processing time
We wil l learn how to f ind and research the ABAP code
associated with any payroll function
The use of a parameter for a function is configured in the
schema and subschema
We will learn how to determine which parameters are
available for use with any payroll function
Example Subschema UBD0 Basic Data Flow Control
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
25/73
25
Example Subschema UBD0 Basic Data Flow Control
In this example, the UBD0 subschema will control theflow of payroll accounting based on the use ofSAP-supplied functions
Help Specific to a Function (WPBP) and Parameters
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
26/73
26
Help Specific to a Function (WPBP) and Parameters
By placing yourcursor next toany of thefunctions andusing the Helpkey (F1), youcan learn about
the variousparametersavailable for use(configuration)with this SAP-suppliedfunction
Example Maintain/Display Function WPBP
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
27/73
27
Example Maintain/Display Function WPBP
Transaction PE04 is used to display, maintain, orcreate functions
Where
toFIND it
Example Maintain/Display Function WPBP (cont )
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
28/73
28
Example Maintain/Display Function WPBP (cont.)
Here you maydisplay or maintain
(configure) the
characteristics of afunction such as the
country-specific use
and parametersavailable for use by
the function
You may create yourown functions
The standard ABAP
name begins with FU
When Are the Functions (ABAP Code) Executed?
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
29/73
29
When Are the Functions (ABAP Code) Executed?
In this example, theexecutable schemaZ000 will execute thesubschema UDB0,which will execute thefunction WPBP
The input, processing,and output resultingfrom the execution ofany function can bedisplayed by turningon the Display logfunctionality
Functions (ABAP Code) Determination and Verification
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
30/73
30
Functions (ABAP Code) Determination and Verification
The following payroll log information allows for theanalysis of the payroll subschema UBD0 and the function
inputs, the processing, and the resulting outputs
Functions (ABAP Code) Determination and Verification (cont )
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
31/73
31
Functions (ABAP Code) Determination and Verification (cont.)
To determine and understand the ABAP code that isbeing executed for any function, first you must enter thedebugger mode using the /h transaction. Then executepayroll, and set a breakpoint at the FU function.
Functions (ABAP Code) Determination and Verification (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
32/73
32
Functions (ABAP Code) Determination and Verification (cont.)
Functions (ABAP Code) Determination and Verification (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
33/73
33
You can verifyand analyzethe availability
and use ofparameters toconfigure your
use of theABAP functionvia standard
debuggerfunctionality
Functions (ABAP Code) Determination and Verification (cont.)
Run and you arrive at the FORM FUWPBP ABAP code
What Well Cover
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
34/73
34
HR/Payroll features (decision trees) configuration Schemas and subschemas configuration
Payroll functions SAP ABAP Calculation rules (or cycles) configuration
Operations within rules SAP ABAP
Parameters used for operations configuration
Parameters available for use SAP ABAP
Wage type integration tie it together Wrap-up
The Concept of Payroll Calculation Rules (Configuration)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
35/73
35
p y ( g )
What are payroll rules? Standard calculation rules are provided by SAP as a baseline for
gross-to-net payroll accounting
Rules are configurable, and customer-specific rules can easily becreated to solve complex business requirements and problems
The calculation rules can be wage type specific or generic
The calculation rules can be based on the type of employee,salary exempt, salary non-exempt, hourly non-exempt, etc.
The SAP calculation rules (cycles) are your friend and the
technical strength of flexibility
The Concept of Payroll Calculation Rules (Configuration) (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
36/73
36
p y ( g ) ( )
When and where are payroll rules relevant? The use of a calculation rule is configured in the schema and sub-
schemas and executed at payroll processing t ime
We wil l learn how to f ind and research the payroll calculation rulesassociated with any payroll function
Example Subschema UT00/ZT00 (Time Data Processing)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
37/73
37
p ( g)
In this example, this portion of the ZT00 subschema willexecute the process input table (PIT) payroll function(ABAP) using the calculation rule of Z020 (first parameter tothe function)
Help Specific to a Function (PIT) and Parameters
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
38/73
38
By placing your cursor next to any of the functions andusing the Help key (F1), you can learn about the parametersavailable for use (configuration) with this SAP-suppliedfunction
Example Maintain/Display Rule Z020 Store Gross Amt
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
39/73
39
Transaction PE02 is used to display, maintain, or create rules
Where
toFIND it
Example Maintain/Display Rule Z020 Store Gross Amt (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
40/73
40
Here you maydisplay and/ormaintain
(configure) apayrollcalculation rule
You maydeterminespecific typesof employees
and/or wagetypes for whichthis calculation
rule applies
Example Maintain/Display Rule Z020 Store Gross Amt (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
41/73
41
You may wantto evaluate awage type
attribute(processingclass value)
You canconfigurewhichoperationsshould beperformed foreach situation
When Is the Calculation Rule (Configuration) Executed?
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
42/73
42
In this example, theexecutable schema Z000wil l execute the sub-schema ZT00, which willexecute the function PIT,which wil l execute thecalculation rule Z020
(store gross amount)
You display the input,processing, and outputresulting from theexecution of any functionvia the Display log
functionality
Calculation Rules Determination and Verification
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
43/73
43
The followingpayroll loginformationallows for theanalysis of thepayrollsubschema
ZT00, thefunction PIT,and the
calculation ruleZ020 inputs, theprocessing, and
the resultingoutputs
Calculation Rules Determination and Verification (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
44/73
44
To determine and understand the ABAP code that is beingexecuted for any specific calculation rule, first you must
set a break in the subschema prior to the calculation rule,
execute payroll, and then set a breakpoint at the FUPITfunction, as shown in the next sl ide
The setting of a break in the schema and/or subschema,
which wil l be specific to a user, requires the creation of anAB4 parameter. This is created via the path of: System >
User Profi le > Own Data > Parameters > Enter Parameter ID
of AB4 and a 2-byte parameter value
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
45/73
Calculation Rules Determination and Verification (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
46/73
46
You can verifyand analyze the
processing ofyour configuredcalculation rule
via the standarddebuggerfunctionality
Run and you arrive at the FORM FUPIT ABAP code
specific to the calculation rule Z020 (store gross amount)
What Well Cover
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
47/73
47
HR/Payroll features (decision trees) configuration Schemas and subschemas configuration
Payroll functions SAP ABAP Calculation rules (or cycles) configuration
Operations within rules SAP ABAP
Parameters used for operations configuration
Parameters available for use SAP ABAP
Wage type integration tie it together Wrap-up
The Concept of Calculation Rule Operations (ABAP)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
48/73
48
What are calculation rule operations? The operation is a logical block of ABAP code that is contained in
the RPCALCU0 warehouse of code
When and where are calculation rule operations relevant? The use of an operation is configured in the payroll calculation
rule and executed at payroll processing time
We will learn how to find and research the ABAP code associatedwith any payroll operation
The use of a parameter for an operation is configured in the
payroll calculation rule We will learn how to determine which parameters are available for
use with any payroll operation
Example Maintain/Display Rule Z020 Store Gross Amt
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
49/73
49
Transaction PE02 is used to display, maintain, or create rules
Example Maintain/Display Operation (ABAP) ADDWT
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
50/73
50
Here you may display and/or maintain (configure) the use of
an operation (ABAP)
Help Specific to an Operation (ADDWT) and Parameters
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
51/73
51
By placing your cursor next to any of the operations andusing the Help key (F1), you can learn about the variousparameters available for use (configuration) with thisSAP-supplied operation
Example Maintain/Display Operation ADDWT
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
52/73
52
Transaction PE04 is used to display, maintain, orcreate operations
Where
toFIND it
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
53/73
When Are the Operations (ABAP) Executed?
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
54/73
54
In this example, theexecutable schema Z000(Config) will execute thesubschema ZT00(Config), which wil lexecute the function PIT(ABAP), which will
execute the calculationrule Z020 Store Gross
Amount (Config), which
will execute theOperation ADDWT(ABAP)
Operations (ABAP) Determination and Verification
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
55/73
55
The following payroll log information allows for the analysisof the payroll subschema ZT00, the function PIT, thecalculation rule Z020, and the execution of the operationssuch as ADDWT
Operations (ABAP) Determination and Verification (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
56/73
56
To determine and understand the ABAP code that is beingexecuted for any specific operation, first you must set a
break in the subschema prior to the calculation rule,
execute payroll, and then set a breakpoint at theOPADDWT operation, as shown in the next slide
Operations (ABAP) Determination and Verification (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
57/73
57
Setting a breakpoint
Operations (ABAP) Determination and Verification (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
58/73
58
Run and you arrive at the FORM OPADDWT ABAPcode specific to the calculation rule Z020(store gross amount)
Operations (ABAP) Determination and Verification (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
59/73
59
You can verifyand analyze theprocessing of
your configureduse of theoperation and
the processing ofyour configuredparameter forthat operation viathe standarddebuggerfunctionality
What Well Cover
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
60/73
60
HR/Payroll features (decision trees) configuration
Schemas and subschemas configuration
Payroll functions SAP ABAP
Calculation rules (or cycles) configuration
Operations within rules SAP ABAP
Parameters used for operations configuration
Parameters available for use SAP ABAP
Wage type integration tie it together
Wrap-up
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
61/73
Example Wage Type Integration Processing Class 03
In this example this portion of the ZT00 subschema will
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
62/73
62
In this example, this portion of the ZT00 subschema will
execute the PIT (process input table) payroll function(ABAP) using a calculation rule of Z020 and a secondparameter value of P03
Example Wage Type Integration Processing Class 03 (cont.)
Wage types (earnings tax and deductions) have
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
63/73
63
Wage types (earnings, tax, and deductions) have
processing class values that may be configured. In myexample, the processing class 03 value for wage type1200 (regular working time) is 1
Example Wage Type Integration Processing Class 03 = 1
H fi tl hi h ti h ld b
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
64/73
64
Here you can configure exactly which operations should beperformed based on the wage types processing class03 value
How Does it Fit Together (ABAP and Configuration)?
In this final example the
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
65/73
65
In this f inal example, the
executable schema Z000(Config) will execute thesubschema ZT00 (Config),
which will execute the functionPIT (ABAP), which will executethe calculation rule Z020
Store Gross Amount (Config),which will examine the wagetypes processing class 03
value (Config), to determinewhich operations (ABAP) toexecute, using the configured
operation parameters
How Does It Fit Together (ABAP and Configuration)? (cont.)
The following payroll log information allows for the
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
66/73
66
The following payroll log information allows for theanalysis of the payroll subschema ZT00, the functionPIT, the calculation rule Z020, and the processing ofwage type 1200 with a processing class 03 value of 1
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
67/73
How Does It Fit Together (ABAP and Configuration)? (cont.)
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
68/73
68
The end result (cont.)
What Well Cover
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
69/73
69
HR/Payroll features (decision trees) configuration
Schemas and subschemas configuration
Payroll functions SAP ABAP
Calculation rules (or cycles) configuration
Operations within rules SAP ABAP
Parameters used for operations configuration
Parameters available for use SAP ABAP
Wage type integration tie it together
Wrap-up
Resources
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
70/73
70
Online SAP Library > SAP R/3 EnterpriseApplication Components > Human Resources > Payroll (PY)> Payrol l United States (PY-US) > Payroll in the SAP System > Payroll Basics (PY-XX-BS)
Gross and Net Part of Payroll (PY-US-GR & PY-US-NT)
From any of the SAP selection screens:
SAP Service Marketplace (www.service.sap.com) UnitedStates > Online Documentation, Documentation, & Best
Practices
mySAP.com > Services > Tools, Tech & Methodologies >Best Practices > CRM > Building Block Library
7 Key Points to Take Home
HR/Payroll features are decision trees that typically
http://www.service.sap.com/http://www.service.sap.com/7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
71/73
71
HR/Payroll features are decision trees that typically
execute at dialog entry time and are configured. They
reduce date entry errors via logical default values
Schemas and subschemas allow you to control the flow ofprocessing and are configured to meet requirements. You
pick and choose what to use
Payroll functions are objects of SAP ABAP code thatyou have purchased and can choose to use or not to use.
Custom functions can be created if necessary
Calculation rules (or cycles) allow you the ultimate control
of the processing within payroll and are configured to
meet requirements
7 Key Points to Take Home (cont.)
Operations are objects of SAP ABAP code that you have
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
72/73
72
Operations are objects of SAP ABAP code that you have
purchased and can choose to use or not to use within the
calculation rules. The use of the operations in the rules
are configured to meet requirements
The parameters used for operations tie to SAP ABAP code
that you have purchased and can choose to use or not to
use for any specific operation. The use of the parametersfor each operation are configured to meet requirements
The integration of the wage type processing in payroll
accounting is a primary example of how these buildingblocks tie together to achieve a complete, compliant, and
business-specific solution for payroll accounting in SAP
Your Turn!
7/30/2019 Mastering the Six SAP Payroll Building Blocks[1]
73/73
73
Questions?
How to Contact Me:
calc@rowsix.net