Advanced Py
Advanced Py
Advanced Payroll
Configuration:
Rule Writing in Payroll
Copyright and Trademarks
§ No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of
SAP AG. The information contained herein may be changed without prior notice.
§ Microsoft®, WINDOWS®, NT®, EXCEL®, Word®, PowerPoint® and SQL Server® are registered trademarks of Microsoft
Corporation.
§ IBM®, DB2®, OS/2®, DB2/6000®, Parallel Sysplex®, MVS/ESA®, RS/6000®, AIX®, S/390®, AS/400®, OS/390®, and OS/400® are
registered trademarks of IBM Corporation.
§ ORACLE® is a registered trademark of ORACLE Corporation.
§ INFORMIX®-OnLine for SAP and INFORMIX® Dynamic ServerTM are registered trademarks of Informix Software Incorporated.
§ UNIX®, X/Open®, OSF/1®, and Motif® are registered trademarks of the Open Group.
§ Citrix®, the Citrix logo, ICA®, Program Neighborhood®, MetaFrame®, WinFrame®, VideoFrame®, MultiWin® and other Citrix
product names referenced herein are trademarks of Citrix Systems, Inc.
§ HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts
Institute of Technology.
§ JAVA® is a registered trademark of Sun Microsystems, Inc.
§ JAVASCRIPT® is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and
implemented by Netscape.
§ SAP, SAP Logo, R/2, RIVA, R/3, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE,
Management Cockpit, [Link] Logo and [Link] are trademarks or registered trademarks of SAP AG in Germany and
in several other countries all over the world. All other products mentioned are trademarks or registered trademarks of their
respective companies.
Disclaimer
THESE MATERIALS ARE PROVIDED BY SAP ON AN "AS IS" BASIS, AND SAP EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
EXPRESS OR APPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE, WITH RESPECT TO THESE MATERIALS AND THE SERVICE, INFORMATION, TEXT, GRAPHICS, LINKS, OR ANY OTHER
MATERIALS AND PRODUCTS CONTAINED HEREIN. IN NO EVENT SHALL SAP BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
INCIDENTAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES OF ANY KIND WHATSOEVER, INCLUDING WITHOUT LIMITATION LOST REVENUES
OR LOST PROFITS, WHICH MAY RESULT FROM THE USE OF THESE MATERIALS OR INCLUDED SOFTWARE COMPONENTS.
Contents:
•Processing Payroll via RPCALCU0
•PA03: The Control Record
•IT0003: Payroll Status Infotype
•Tables V_T582A, V_T588G and V_T591B
•Report RPUTRBK0
Payroll Processing
Release Payroll
Advance control record
Lock master data
Release for
Start Payroll Corrections
Run RPCALC_0
Unlock master data
Check Results
Lock master data
Lock payroll
CHECK
Exit Payroll ABR
Release master data
Lock control record
Country-specific
payroll driver
ü Controls status
of Payroll Area
ü Monitors run
number
ü Defines payroll
present and past
ü Limits
retroactivity
A. To run payroll for your employee for period 01, YYYY, go to:
SAP Menu: Human Resources > Payroll > Americas > USA >
Payroll > Release Payroll
Menu: Human Resources > Payroll > Americas > USA > Payroll >
Start Payroll
Enter payroll area 4# in the Payroll Period section and in the Selection
section of the payroll driver. Use the multiple selection and enter
personnel number 11101##. Select the Display log check box. Execute
the payroll run.
Review the payroll log. [Correct any errors in master data, if necessary,
and run payroll again.] Do not exit payroll for period 1.
Contents:
n Concept
n Structure
n Maintenance
l Describe how schemas and rules are read by the payroll program
l Identify the different components of a schema
l Use the schema editor to copy and edit customized schemas
l Identify the tables that are updated when a new schema is
created
l Interpret the documentation of a function within a schema
l Document a new schema or personnel calculation rule
l Identify the different components of a personnel calculation rule
l Use the rule editor to copy, create and edit personnel calculation
rules
RPCALC_0
Schema
IMG
Function
module
Operation
module Rules
Choose
language
Country-specific or
Main or all countries
subschema
Limit change
access
5
Parameters 1-4
6
Deactivate function
7
Text
3 4 5 6 7
Modified
Schema
(T52C1)
Standard
Schema
(T52C0)
Differences
Sequence
1
number
1 2 2 Variable
5 key
Next line
3
indicator
3
4 Rule type
4 5 Operations
Sequence
1
number
2 2 Variable
key
Next line
3
indicator
4 Rule type
5 Operations
5
Rule
Par1
GEN Pnn
Par2
Par3
GEN Pnn
NOAB
PDSY
Menu: Human Resources > Payroll Accounting > Americas > USA > Tools >
Customizing Tools > Schema (Or, Transaction Code: PE01)
A. Select the Copy icon. Enter schema U000 in copy from and your new
schema Z##U in copy to. Choose Enter to copy the schema. Review the
structure by selecting Display.
B. Using the same method as above, make copies of subschema UMO0,
(renamed Z##M) and subschema UT00, (renamed Z##T).
C. To incorporate subschemas Z##M and Z##T into main schema Z##U,
return to the schema editor (Transaction Code PE01).
Enter schema Z##U and select the Change icon. To replicate the line
COPY UMO0, place an “r” in the sequence number field, and press
“enter”. Deactivate the original line which calls subschema UMO0. On
the active line, replace the value “UMO0” with your subschema Z##M.
Repeat the same process and replace UT00 with Z##T. Save your schema.
F. From the main schema editor screen, select the Documentation radio
button, then select the Change icon. Enter any text you like. Save.
G. To compare your schema to the original schema, enter your schema using
either change or display from the schema editor. Then, go to Menu:
Schema -> Compare. Enter schema U000 and select enter. Review the
comparison log. You may also want to compare schema UT00 to schema
Z##T.
H. To again run payroll for period 1 with your new Schema, go to: Menu:
Human Resources > Payroll Accounting > Americas > USA > Payroll
Accounting > Start Payroll
Enter your payroll area 4# in both the payroll period area and the selection
area of the driver screen. Select Display Log for both logs. Enter your
main schema Z##U in the Schema field.
Save your entries as a variant. Select the save icon, give your variant a
name and a description and choose Continue (enter).
Execute the payroll run. When you are finished reviewing the payroll,
exit the payroll run by going to: Menu: Payroll Accounting > Exit
payroll.
U.S.
Canada
n Cumulation Classes
u 01 – Total Gross
u 02 (US) – 401K Wages
u 14 (US) – BSI Wages
u Various (CA) – Taxable income
Select Processing
Type
Absence Valuation
OR
“AS IF”
Time Wage Type
Selection
These two tables can be accessed using operations RTE, NUM or AMT
The partial periods are available by using T and the whole periods using G
For example RTE=TSSOLL would fill the RTE field with the hours in “WHrs” for
each partial period. RTE=TSDIVI would fill the RTE field with the hours in
“WH1W” for each partial period.
Counting classes are stored on the PARX table by splits. These can be
used to create reduction factors if necessary. For example: RTE=TSAP02
would place the hours for absences assigned to counting class 02 in the
RTE field for each partial period.
n Valuation
u Assign valuation bases
u May use derived wage types
Exercise 1: Creating New Pay scale Area with indirectly valuated wage
types.
1. Create a new pay scale area: 20+## (i.e. group 10 would be 30) and Text Los Angeles
G##.
2. Set up semi-monthly period parameters for your new pay scale area based on the
entries for pay scale type/are 01/11.
3. Create three new wage types from a copy of a wage type 1000:
4. Edit the characteristics of you three new wage types as follows. If an entry is not
specified, it should be blank:
5. Create a new pay scale structure for your new collective agreement groupings: Pay
scale type 01, pay scale area 20+##. Use pay scale type 01 pay scale area 11 as a
model and copy those entries to being. Be sure to add wage type 0##2 to the pay
scale structure reflecting TARIF C configuration with the following values.
6. Map wage types 0##1 and 0##2 to be the base value for wage type 0##3 and include
wage type 0##1 in the ASAL calculation: Use the following values:
7. Edit processing class 01 so that wage type 0##1 is added to valuation bases /001 and
/002, but wage types 0##2 and 0##3 are only added to /001. Do this from transaction
code SM30.
a. Hire employee 11102## (## = your group number) on 01/16/YYYY using the
personnel action type Hire and enter the following data:
9. To test your configuration, run payroll for period 2 for your payroll area 4#. Exit the
period if the payroll provides the results you expected.
Exercise 2: Rule to Prorate Mentor Bonus for All Unpaid Absences and
Paid Personal Leave.
1. In your subschema Z##M, replace SAP rule UMOD with Z20M. This will be
used to set Modif A=50 for all employees in ESG for PCR 1.
3. In Z##A replace rule XPPF with Z20F. This will be used to incorporate /803 into
the payroll process.
4. Enter your copy of subschema UAL0 (Z##A) in your copy of U000 (Z##U).
5. Assign the mentor bonus wage type (OMNB) to your employee on IT0014 as of
Feb 1, YYYY for $300.
6. Create a 2 day IT2001 record with absence type 0320 (personal leave) for both of
your employees during period 3/YYYY. Also create a 2 day IT2001 record for
absence type 0200 (Sick Leave) in period 3/YYYY.
7. Run payroll for period 3/YYYY and verify that while wage type 0MNB was
prorated because of the personal leave absence, it was not prorated for the sick
leave absence.
8. Exit Payroll.
Note: Please do not attempt the following steps for this exercise in class. These are
the procedure steps. During class, students will use rules set up by the instructor for
group number 20. The following steps are included as a user guide for future reference.
1. Copy Absence type 0200 to 03## and change the A/A type text to 03## and ##
Personal Leave.
3. Edit your copy of UMOD (Z##M) and verify that is has already been entered into
your copy of subschema UMO0. Change the entry for Modif A for ESG 1 to be:
Modif A=30+##.
5. Copy an existing valuation rule (AbsValGrpg 50, Valuation rule 20) as the model for
your new rule and change the counting class to 03. Use your new Modif A value for
the AbsValGrpg in you new rule.
6. Copy rule XPPF to Z##F and add wage type /803 as the factor to be used for the
mentor bonus. You will also need copies of rule XPP0 named Z##G and rule XPP1
named Z##H. You want paid absences with counting class 03 assigned as well as all
unpaid absences to be used to prorate the mentor bonus.
7. Create a copy of subschema UAL0 and enter your new copy of XPPF in it. Name the
new subschema Z##A.
9. Verify the processing class 10 value assigned to wage type 0MNB will use your new
rule for wage type /803.
10. Test your rule by assigning the mentor bonus wage type to your employee on infotype
0014 as of Feb 1, YYYY, and then create absence 03## for your employee during the
next payroll period.
11. Run payroll for period 3/YYYY and verify that while wage type 0MNB was prorated
because of the absence, yet, the regular hours for the absence were paid.
A. Copy wage type 7020 401K Contribution to 70## Percent Deduction ##.
The wage type entries should start on January 01, YYYY.
B. Confirm that 70## is a deduction wage type with allowable entries via
percentage. The minimum number allowed should be 1% and the maximum
should be 10%. Modify the wage type attributes accordingly.
D. If necessary, make the wage type permissible for infotype 0014 once per
period.
Solution 1: Creating New Pay scale Area with indirectly valuated wage
types.
1. To create a new pay scale area: IMG: Personnel Management -> Personnel
Administration -> Payroll Data -> Basic Pay -> Check Pay Scale Area.
Choose New Entries. Enter New Pay scale Area 20+## (i.e. group 10 would be 30)
and Text Los Angeles G##.
2. To set up semi-monthly period parameters for your new pay scale area: IMG:
Personnel Management -> Personnel Administration -> Payroll Data -> Basic
Pay -> Set up payroll period for collective agreement provision and then choose
Pay Scale > Period Parameter Assignment in the pop-up box.
a. Copy the entries for pay scale type/area 01/11 to your new pay scale area by
choosing the position button. Enter [Link] type 01, [Link] Area 11 then
continue (enter).
b. Select both entries for 01/11 and then Copy.
c. Change the pay scale area from 11 to 20+##, press Enter and then Save.
3. To create three new wage types from a copy of wage type 1000: IMG: Personnel
Management -> Personnel Administration -> Payroll Data -> Basic Pay -> Wage
Types-> Create wage type catalog. Leave the copy button selected and choose
continue (enter).
a. To clear all the wage types out of your view, click on the Select all button and
then choose the Delete row button. Note: All wage types will disappear from
your view, but are not actually deleted from anywhere.
b. Enter 1000 in the Original Wtype field and 0##1 in the Customer Wtype field.
c. Select the line and then choose the Copy wage type 1 button.
d. Note: Wage type 0##1 should default into the Wage type starts at field. Enter
3 in the Number of wage types field and 1 in the Increase each step field then
choose continue (enter).
e. Enter text for each new wage type:
4. To edit the characteristics of you three new wage types: IMG: Personnel
Management -> Personnel Administration -> Payroll Data -> Basic Pay -> Wage
Types-> Check Wage Type Catalog-> Check wage type characteristics.
a. Choose the position button, enter 0##1 in the Wage type field and the choose
Continue (enter).
b. Select all three of your wage types 0##1, 0##2 and 0##3 then choose Details.
c. Edit each wage type as follows: If an entry is not specified, make it blank.
Do not assign rounding or reduction to any wage type. Use the next entry
icon to move through each wage type to make changes and then save after
editing the third one.
5. To create a new pay scale structure for a collective agreement: IMG: Personnel
Management -> Personnel Administration -> Payroll Data -> Basic Pay ->
Revise Pay Scale Groups and Levels.
a. Enter Pay scale type 01, pay scale area 20+## and then continue (enter).
Choose New Entries. Note: In step b you will copy values from pay scale
type/area 01/11 for use in your new CAP.
b. To copy existing values from a similar pay scale type and area, open a second
session and go to transaction SM30, enter Table/View V_T510 and choose
Display. Enter pay scale type 01 pay scale area 11 and then enter.
6. To map wage types 0##1 and 0##2 to be the base value for wage type 0##3 and to
include wage type 0##1 in the ASAL calculation: IMG: Personnel Management ->
Personnel Administration -> Payroll Data -> Basic Pay -> Wage Types -> Define
valuation of base wage types.
a. Select New Entries, enter the all of the following, and then Save:
7. To Edit processing class 01 so that wage type 0##1 is added to valuation bases /001
and /002, but wage types 0##2 and 0##3 are only added to /001: From the Easy
access menu enter SM30 in the command field.
a. Hire employee 11102## (## = your group number) on 01/16/YYYY using the
personnel action type Hire and enter the following data:
9. To test your configuration, run payroll for period 2 for your payroll area 4#. Exit the
period if the payroll provides the results you expected.
a. Release payroll: SAP Menu: Human Resources > Payroll > Americas >
USA > Payroll > Release Payroll. Select Yes to Release payroll for payroll
area 4#, period 2, YYYY.
b. To run payroll: SAP Menu: Human Resources > Payroll > Americas >
USA > Payroll > Start Payroll. Click on Get Variant to choose your
variant created earlier and then execute.
c. Open the log to view results: Select your second employee, then choose
Find. Enter EXPRT in the find field and then choose find.
d. Open the folder EXPRT RU. Open the Input folder and then double-click on
the RT table. View contents to check if different amounts exist for /001 and
/002 wage types. Also check that wage types 0##1, 0##2 and 0##3 were
created properly. If everything is correct, exit payroll for period 2.
e. SAP Menu: Human Resources > Payroll > Americas > USA > Payroll >
Exit Payroll.
Solution 2: Rule to Prorate Mentor Bonus for All Unpaid Absences and
Paid Personal Leave.
1. In your subschema Z##M, replace SAP rule UMOD with Z20M. This will be
used to set Modif A=50 for all employees in ESG for PCR 1 and Modif A=01 for
all employees in ESG for PCR 2. Transaction PE01:
3. In Z##A replace rule XPPF with Z20F. This will be used to incorporate /803 into
the payroll process. Transaction PE01:
4. Enter your copy of subschema UAL0 (Z##A) in your copy of U000 (Z##U).
Transaction PE01:
a. Enter 11102## in the personnel no. field, 0014 in the Infotype field and
choose Create.
b. Enter 02/01/YYYY in the Start field, 0MNB in the wage type field, 300 in
the Amount field and choose Save.
c. Repeat for Employee 11101##
6. Create a 2 day IT2001 record with absence type 0320 (personal leave) for both of
your employees during period 3/YYYY. Also create a 2 day IT2001 record for
absence type 0200 (sick leave) in period 3/YYYY. From Easy Access:
Transaction PA30.
a. To create the first absence, enter 2001 in the Infotype field, 0320 in the
subtype field, the first Monday and Tuesday in February as the from and
to dates and then choose Create.
b. On the next screen verify the entries and choose Save.
c. To create the second absence, enter 2001 in the Infotype field, 0200 in the
subtype field, the first Wednesday and Thursday in February as the from
and to dates and then choose Create.
d. On the next screen verify the entries and choose Save.
e. Repeat these steps for your other employee.
7. Run payroll for period 3/YYYY and verify that wage type 0MNB was prorated
because of the personal leave absence but, it was not prorated for the sick leave
absence. (Note: only your hourly employee 11102## will prorate, if you look at
your salary employee 11101##, no proration should have taken place.)
a. Release payroll: SAP Menu: Human Resources > Payroll > Americas
> USA > Payroll > Release Payroll. Select Yes to Release payroll for
payroll area 4#, period 3, YYYY.
b. To run payroll: SAP Menu: Human Resources > Payroll > Americas >
USA > Payroll > Start Payroll. Click on Get Variant to choose your
variant created earlier and then execute.
c. Open the log to view results: Select your second employee, then choose
Find. Enter EXPRT in the find field and then choose find.
d. Open the folder EXPRT RU. Open the Input folder and then double-click
on the RT table. View contents to check if wage type 0MNB was
prorated. If everything is correct, exit payroll for period 3.
e. SAP Menu: Human Resources > Payroll > Americas > USA > Payroll
> Exit Payroll.
1. To copy Absence type 0200 to 03##: IMG: Personnel Time Management ->
Time Data Recording and Administration -> Absences -> Absence Catalog ->
Define Absence Types.
a. Copy the entries for Absence type PS Grouping 10 and Absence type
0200 by choosing the position button. Enter PS Grouping 10, Att./abs.
type 0200 and then choose continue (enter).
b. Select the entry and choose Copy as.
c. Change the A/A type text to 03## and ## Personal Leave, the click on
enter and Save and return to the IMG.
d. Note: Since you made a copy, your new Absence type 03## will inherit
important characteristics from Absence type 0200. Some of the most
important are on table V_554S_O (entry screen and time constraint class),
V_554S_Q (counting rule and quota deduction) and V_554S_G
(assignment to an absence valuation class).
2. To assign an absence valuation class to absence type 03##: IMG: Payroll ->
Payroll: USA -> Absences -> Assign absences to valuation classes.
a. To position on the entry made from your copy, choose the position button,
enter PS Grouping 10, Att./abs. type 03## and then choose continue
(enter).
b. Enter 03 in the Val. R column and then Save.
3. To edit your copy of UMOD (Z##M) and enter it into your copy of subschema
UMO0: IMG: Payroll -> Payroll: USA -> Absences -> Determine grouping
for absence valuation Then double-click on Set modifiers for payroll
calculation in the pop-up box.
a. Note: UMOD will default in the Rule field. Replace it with Z##M and
then choose Change.
b. Position your cursor on the Modif A=01 entry for ESG 1 and wage type
**** and choose the change entry icon. Replace 01 with 30+## (i.e. group
10 will be 40). Then press enter and Save.
c. To quickly get to transaction PE01, use the Back icon twice to return to
the Choose activity pop-up box and double-click on Update schema
UT00. Note: you’ll do this is in order to reach PE01 where you will
switch from UT00 to your main schema Z##U in the next step.
d. Replace UT00 in the schema field with your Z##U and choose display.
Verify that your subschema Z##M and rule Z##M are included in your
copy of U000 (Z##U).
4. To create an Absence Valuation rule which will count your new Absence type
03## as paid, yet differentiate it from other kinds of paid absences: IMG:
Payroll -> Payroll: USA -> Absences -> Absence Valuation -> Evaluate
absences using 'as if' principle.
a. Choose New entries and enter AbsValGrpg 30+## and Valuation Rule 03.
Use validity dates 01/01/YYYY to 12/31/9999.
b. In the Form count. Classes section click on the insert row icon, and enter
CC for absences 03, select paid and enter 100 in the Percentage field.
c. Scroll down and in the Valuation using the “as if” principle section select
the box for Time WT selection and then Save. Return to the IMG.
d. Note: This rule will still generate the regular wage types for normal hours
for the employee for this kind of absence, but because the counting class
differs from other paid absences you will be able to include it in your copy
of rule XPPF to prorate the Mentor Bonus.
5. To copy an existing valuation rule to be used for other kinds of paid absences:
IMG: Payroll -> Payroll: USA -> Absences -> Absence Valuation ->
Evaluate absences using 'as if' principle.
a. Select the position button, enter AbsValGrpg 50, Valuation rule 20 and
choose Continue (enter).
b. Select this entry and choose Copy as.
c. Change the AbsValGrp to 30+## (your new value for Modif A), press
enter and then Save.
6. To copy rules XPPF, XPP0 and XPP1: open another session and on the SAP Easy
Access Menu screen, enter PE02 in the command field or choose it from your
favorites.
a. Enter XPPF in the rule field and then choose Copy. Enter Z##F it he To
rule field and then choose Continue (enter). Do the same for XPP0 and
name it Z##G then XPP1 and name it Z##H.
b. After you have made the three copies, enter Z##F in the rule field, choose
the change icon, and on the maintain calculation rule screen, place your
cursor on the single * at the top of the rule, choose Create and then sub-
level in the pop-up box.
c. Enter /803 in the open box. Then press Enter twice.
a. Enter UAL0 in the Schema field, choose Copy, enter Z##A in the To
schema field and then choose Continue (enter).
b. Your copy should now appear in the Schema field. Choose the Change
icon.
c. Enter an R in front of line 50 and then press enter to replicate the line.
d. Deactivate the first line that calls XPPF by placing a * in the D column.
e. On the other line in Parameter 1, replace rule XPPF with Z##F and then
Save.
f. Use the back icon to return to main PE01 screen and place you new
subschema in your schema Z##U.
9. To verify the processing class 10 value assigned to wage type 0MNB will use
your new rule for wage type /803, return to the SAP Easy Access Menu, enter
SM30 in the command field or choose it from your favorites.
a. Enter V_512W_O in the Table/View filed and then display. Verify you
want to work in country grouping 10 by choosing continue/enter.
b. Select the position button at the bottom, enter wage type 0MNB and
choose continue/enter.
c. Select wage type 0MNB and then choose Details. Confirm that
processing class 10 is set to a 3. This determines that the factor created for
wage type /803 in your copy of rule XPPF (Z##F) will be applied to this
wage type at rule XVAL.
10. To test your rule, assign the mentor bonus wage type to your employee on
infotype 0014 as of Feb 1, YYYY, and then create absence 03## for your
employee during the next payroll period. From Easy Access: Transaction PA30.
a. Enter 11102## in the personnel no. field, 0014 in the Infotype field and
choose Create.
11. Run payroll for period 3/YYYY and verify that while wage type 0MNB was
prorated because of the absence, the regular hours for the absence were paid.
a. Release payroll: SAP Menu: Human Resources > Payroll > Americas
> USA > Payroll > Release Payroll. Select Yes to Release payroll for
payroll area 4#, period 3, YYYY.
b. To run payroll: SAP Menu: Human Resources > Payroll > Americas >
USA > Payroll > Start Payroll. Click on Get Variant to choose your
variant created earlier and then execute.
c. Open the log to view results: Select your second employee, then choose
Find. Enter EXPRT in the find field and then choose find.
d. Open the folder EXPRT RU. Open the Input folder and then double-click
on the RT table. View contents to check if wage type 0MNB was
prorated. If everything is correct, exit payroll for period 3.
e. SAP Menu: Human Resources > Payroll > Americas > USA > Payroll
> Exit Payroll.
Enter the wage type to be copied, 7020, in the OWType field and the wage
type you want to create, 70##, in the CWType field. At the bottom of the
screen, select the Entries from Validity date radio button and enter the date
01/01/YYYY. Select the line that includes the wage types, remove the test
run check and select Copy. Review the entries in the log.
To confirm that wage type 70## is a deduction wage type, you need to check
the wage type attributes (table V_T511). Access the table via the IMG (Or
SM30):
IMG: Payroll Accounting à Payroll: USA à Basic Settings à
Environment for Maintaining Wage Types à Check Wage Type
Attributes.
Confirm that the Deduction WT check box is selected. Verify the input
combination: Amount -, Number +. Verify Percent as the Time
unit/meas. and 1.00 as the minimum number/10.00 as the maximum
number.
B. To change the values in the processing and cumulation classes, you will
want to access table V_512W_O Wage Type Valuation directly. Only by
accessing the larger view of the table will you have access to all of the
processing classes at one time.
Use the position button to find your wage type and go to the Detail screen.
You can use the drop down box or F1 help to give you an understanding of
what values we are setting for the processing classes. You should have the
following processing class values: Note: if a PC is not specifically
mentioned on this table, it should be blank.
Contents:
l Important Operations of Payroll
l Link between Operations and Functions
l Review Internal Table Processing
l Building Customized Rules
l Customer Scenarios
ELIMI FILLF
VALEN Field Control ZERO=
VAOFF RESET SETIN
ã SAP AG 2013 WNA11
Decision Operations
OUTWPCOSTD
Does the employee have a cost center
* .....
on the Cost Distribution infotype?
X .....
n PCY_RULE_
u Perform CYcle (Continue processing in new PCR. . .)
u Works with rule type P
u Perform processing in named rule, return to original rule to complete
processing
n PAYTP
u Internal rule jump
u Move to an alternate employee subgroup grouping for PCR
Issue
n Your company does not always assign new employees to positions
n Some positions have missing or incorrect cost centers
n Payroll costs cannot be accurately posted without correct cost
centers
n Master cost centers must begin with 3
Solution
Write a personnel calculation rule that –
Confirms that all employees in company code 3000 either have a
Cost Distribution infotype or have a master cost center that begins
with 3.
Operators + - * / = S
Operands
Fixed Value Table Entry Wage Type
RTE=2.00 NUM=__ AMT=__
K Constants T511K C CRT
T Part Month Parameter M MV
Part Month PARTT L LRT
B ATAB (use TABLE) R RT
AMT O Y ZZZZZ
ADDWT Y ZZZZ
ADDWT ADDNA
Input Table
WT RTE NUM AMT
9000 15 10 150
Rule 9999 10 5 50 Rule
ADDWT 9999 ADDNA 9999
Solution
Write a personnel calculation rule that –
n Valuates a deduction as a percentage of the employee’s total gross pay
for the payroll period.
n Works with a percentage that is specified on IT0014.
You want to test a custom rule (ZEL1) that would combine all /101 “Total
Gross” wage types distributed across splits into one total and store it in
wage type /191.
You also want to use a second rule to test the consequences of not
considering splits when combining wage types (ZEL2).
Field name Type name Dtyp Len Short text Dec Table Field Value tab IT Column
ABART ABRAR CHAR 1 ESG for PCR 0 T546A A/PCR
LGART LGART CHAR 4 Wage type 0 T512W Wage Type
APZNR APZNR RAW 1 PC205 assignment 0 AP/WC
CNTR1 CNTRN RAW 1 National assignment indicator 0 C1
CNTR2 CNTRN RAW 1 National assignment indicator 0 C2
CNTR3 CNTRN RAW 1 National assignment indicator 0 C3
ALZNR ALZNR RAW 1 Assignment for alternative pay 0 AB/Alt Pay
C1ZNR C1ZNO RAW 2 Pointer to cost accounting 0 KoRe/CA
BTZNR BTZNO RAW 1 Transfer assignment 0 BT
ABZNR ABZNO RAW 1 Absence assignment 0 Aw/Abs
V0TYP V0TYP CHAR 1 Variable assignment type 0 vT/Var
V0ZNR V0ZNR RAW 1 Variable assignment number 0 vn/Assign
ZEINH PT_ZEINH CHAR 3 Unit of time/measurement 0 T538A One/Unit
BETPE BETPE CURR 15 PA: Amount per Unit 2 T500C WAERS Amount/One/Rate
ANZHL PRANZ DEC 15 HR payroll: Number 2 Number
BETRG MAXBT CURR 15 HR Payroll: Amount 2 T500C WAERS Amount
RTE_CURR WAERS CUKY 5 Currency key 0 TCURC
AMT_CURR WAERS CUKY 5 Currency key 0 TCURC
n RESET AAA
u Reset indicators which were removed via ELIMI
u Specify up to three indicators
n WPBPC_nnnn
u Add WPBP indicator to a wage type that did not have one
u Distribute wage type across period splits
76 à Include in special
payment run?
47 à Check for special
processing
10 à Factoring?
NUM=Faaesb
F Work with dates
aa Type of date
e Unit for calculation
s Calculate to which date
b Alternative date
Solution
Write a personnel calculation rule that –
n Modifies the rate of pay for sick leave for hourly employees using the
following percentages:
Length of Service Percent of Normal Pay
Less than 13 weeks 0%
Up to 1 year 60%
Up to 3 years 75%
Up to 5 years 90%
More than 5 years 100%
Solution
Write a personnel calculation rule that –
n Valuates the incentive wage units according to the formula above.
n Recommendation: use a custom processing class and/or a custom
cumulation class.
Solution
Write a personnel calculation rule that –
n Valuates the incentive wage units according to the formula above.
n Recommendation: Consider the order of processing for finalization of
gross payroll.
/101
ã SAP AG 2013 WNA11
Customizing Scenario: Limit on Arrears
Issue
n Because of the cyclical nature of your business, employees often have
deductions that go into arrears. These values can become quite
significant.
n Your company wants to recover these amounts. However, the company
has decided to never take more than $250 per pay period to recover
amounts in arrears.
n This policy applies to all employees.
Solution
Write a personnel calculation rule that –
n Evaluates the amounts in arrears for each employee and limits the amount
to be processed in the current pay period to $250.
n Any remaining amounts in arrears should be returned to the arrears table
for processing in the next pay period.
Write a PCR which, when called by function IF, will branch to the original
SAP subschema UMO0 and not your Z##M beginning the first day of the
next payroll period.
This will then branch to SAP rule UMOD and not your copy Z##M to
determine Modifiers for table access.
Either use date type RB on IT0041 to calculate the distance to the end of
the next payroll period OR use NUM=CURYY and NUM=CURPP.
Unit 4: Customizing
Rule 1: Check for Cost Center
A customer has an on-going issue with cost centers not being entered for
their employees when they are hired. For employees in company code
3000, they need to determine if a cost center has either been on the Cost
Distribution infotype (IT0027) or assigned on the Organizational
Assignment infotype (IT0001).
All cost centers entered on IT0027 are valid. However, if no IT0027
exists, the rule must confirm that a valid master cost center exists on the
IT0001. For company code 3000, valid master cost centers must begin
with the number 3.
B. Insert your new rule into your schema, making sure you copy any subschema
that you want to place it into.
C. Run payroll for period 04, YYYY, using the display log option.
D. Create a Cost Distribution infotype for employee 11101## for wage and salary
that is valid from Feb 16, YYYY. Run payroll for period 04, YYYY using
search helps W. Confirm that this employee has successfully processed in
payroll.
E. Exit payroll when complete.
A company has a requirement to modify the amount paid for sick leave
for hourly employees based on an employee’s length of service. The
company only wants to use one wage type for sick leave for hourly
employees, with the variable payment amount set during the processing
of payroll. The wage type should be valued at the following rates of the
employee’s regular hourly amount (as defined in /001):
Length of Service Rate
Less than 13 weeks 0%
13 weeks to 1 year 60%
1 year to 3 years 75%
3 years to 5 years 90%
more than 5 years 100%
The customer wants to reserve the right to change the percentage amounts
on an annual basis without having to access the personnel calculation rule
to make this change.
Hints: Use function DATES, then create rule Z##S to determine the employee’s
length of service. Based on the length of service, modify the value in both the
2. Run payroll for period 06, YYYY for your payroll area. Was the correct Illness
amount calculated?
Shift differentials, location pay, pay for absences and bonuses are not
included in this calculation.
*Basic Pay value for hourly employees is the value of paid Regular
Hours for the period.
** For hourly employees, total hours worked is the total regular hour and
overtime hours worked, not including any absence hours.
Suggestion: Work with a customer-defined processing class and/or
cumulation class.
A. Edit your subschema schema Z##T to and replace subschema TC00 with
Z20C in two places. Each group will use the same subschema for day
processing with rule TMOD replaced by Z20T. All hourly ees (in ESG for
PCR 1) will be assigned to time wage type selection rule group 11.
Review the Time Wage Type Selection table to determine which time
wage types can be selected for your hourly employee for regular and
overtime.
B. Enter overtime on the Overtime infotype (2005) for several days between
April 1-15 YYYY, for your hourly EE 11102##.
C. Copy wage type 7120 Bonus to 71## Incentive Wage ## (where ## =
group number). Modify the wage type for entry as incentive wage units
on Employee Remuneration Information (IT2010). Ensure that it is
permissible to hourly employees. Confirm/Reset the cumulation and
processing classes, as necessary.
There have been no changes to the details of the program for hourly
employees.
*Basic Pay value for salaried employees is the salary amount from Basic
Pay.
** For salaried employees, total hours worked is work hours per period as
defined on the Basic Pay infotype.
Suggestion: Work with a customer-defined processing class and/or
cumulation class.
1. Limit on Arrears
A. Make a copy of wage type 8820 (originally copied from MD50, see
V_T52DZ) and name it 88##.
B. Confirm that wage type 88## will convert to wage type 8888 when it goes
into arrears.
C. To place a large amount in the ARRRS table and test your rule, create a
$2500 deduction for your salaried employee 11102## on the Additional
Payment infotype (0015) using wage type 88## which is valid during the
next payroll period.
D. Run payroll for period 09, YYYY. Review the amount of the deduction
that has gone into arrears and confirm that the amount has been transferred
to wage type 8888.
E. Write a rule that sets a limit of $250 for wage type 8888 and process the
next payroll period to test it. Any remaining amount must be carried
forward on the arrears table for processing in the next period.
You may wish to start by copying U013 to new rule Z##A (If you use this
as the start and decide to jump to another rule, use Z##L as the name of the
second rule).
F. Run payroll for period 10, YYYY. Confirm that the deduction recovered from
arrears was limited to $250.00 and the rest is carried forward on the ARRRS
table.
G. Be sure to review the processing of your rule in the log.
1. Create a PCR that (when called with function IF) will branch to different places
in the schema based on dates from IT0041.
A. Create rule Z##B. In it, include two decisions. First include a decision about
your payroll area. Second, include a date calculation using the difference
between date type RB on IT0041 and the end of the current period. You want
to use operation SCOND to determine when the difference between the dates
you are querying has occurred. Once the condition is found to be true, you
want to branch to SAP subschema UMO0 and no longer your copy of it
Z##M.
B. Place your new rule in your main Schema Z##U after subschema XLR0. Be
sure to include the appropriate functions IF, ELSE and ENDIF as well as
DATES.
C. Add a new entry on IT0041 for your employee 11101## with date type RB.
Enter the first day of the next pay period as the date.
D. Run payroll for the next pay period. As you do, force the retro back a few
periods to test if the rule branch takes effect starting with the current period.
E. Note: It is possible for your new rule to work properly but then actually
cause errors at other places in your schema. This new rule branches to
UMOD rather than you copy of it Z##M. As a result, this will place your
employees in different groupings and possibly conflict with earlier exercise
Unit 4: Customizing
Rule 1: Check for Cost Center
A customer has an on-going issue with cost centers not being entered for
their employees when they are hired. For employees in company code
3000, they need to determine if a cost center has either been on the Cost
Distribution infotype (IT0027) or assigned on the Organizational
Assignment infotype (IT0001).
All cost centers entered on IT0027 are valid. However, if no IT0027
exists, the rule must confirm that a valid master cost center exists on the
IT0001. For company code 3000, valid master cost centers must begin
with the number 3.
B. To insert your new rule into your schema, you will want to make a copy of
subschema UBD0 and rename your copy Z##B. Insert a new line in your copy
Z##B following function P0207 . Enter the values ACTIO Z##C to perform the
rule. You are placing the rule here because WPBP data, which includes
infotypes 0001 and 0027, has been loaded. You do not want to continue payroll
processing if the cost center is not valid.
Using the schema editor (transaction PE01), incorporate this new subschema
into your schema by replicating the line COPY UBD0. Then, deactivate the
original line and replace UBD0 with your subschema Z##B.
C. Run payroll for period 04, YYYY, using the display log option.
Menu: Human Resources > Payroll > Americas > USA > Start Payroll.
Get the selection variant you created earlier. Execute the payroll run.
Enter personnel number 11101## and infotype number 0027 and start date Feb
16, YYYY. Select Create. On the infotype screen, enter distribution type 01
Wage/salary. In the table view section, enter company code 3000, cost center
3100 and percentage 100. Save the infotype.
Run payroll using the process described in the previous step of this exercise.
Prior to executing the program, select the Search Helps button, then select W
Payroll correction run. Review the log under Correct Personnel Numbers.
C. To insert your new rule into your schema, you will want to make a copy of
subschema UDD0 (suggested name of schema copy is Z##D). Insert a new line in
your version of UDD0 before the line PRART U013 GEN NOAB. Enter the values
PIT Z##P NOAB to call your rule by wage type and regardless of employee
subgroup grouping. You are placing the rule here because cumulation wage type
/101 has been fully created at this point.
Using the schema editor, incorporate the subschema into your schema by replicating
the line COPY UDD0, deactivating the original line and replacing UDD0 with your
subschema name.
D. Run payroll for period 05, YYYY and verify that your percentage deduction is
taken at the appropriate percentage. Review the payroll log section: Successful
E. To edit IT0008 and create a WC split, go to: Menu: Human Resources >
Personnel Management > Administration > HR Master Data > Maintain. [Hint:
You will need to change the payroll area status to released for corrections before
entering this data]. Enter the personnel number and select the Basic Pay infotype.
Select Copy. Enter a validity date of Mar 08, YYYY, and select Pay Scale Level
03. Select Enter to view the defaults and Save your entry.
F. Re-run payroll for Period 05, YYYY and review the results as referenced above. If
the deduction is only be taken from one portion of the Total Gross, you may need to
edit processing class 10. Review the import of the Recurring Payments/Deductions
(infotype 0014) record by going to the log section: Successful personnel numbers >
11101## > 03/YYYY >Gross cumulation and tax processing > Else >Processing
further deductions/payments > P0014 U011 GEN NOAB.
Note: Rule U011 continues to rule U111 for processing. The operation VWTCL 10
queries the value in processing class 10 for the wage type being processed. Only
those wage types with processing class 10 values other than zero will reach the
operation WPBPC. This operation assigns basic pay split values to the wage type.
This allows the percentage deduction wage type to access each split value for /101
Total Gross in your custom rule so that a true 10% of gross is taken.
If needed, change the processing class 10 value for your wage type by going to:
SM30 and enter V_512W_O, then select maintain. Find your wage type 70## and
select Details. Enter any processing class 10 value between one and nine, inclusive.
Save your entry. Re-run payroll for period 05, YYYY, to confirm that the wage
type is now properly valuated.
A company has a requirement to modify the amount paid for sick leave
for hourly employees based on an employee’s length of service. The
company only wants to use one wage type for sick leave for hourly
employees, with the variable payment amount set during the processing
of payroll. The wage type should be valued at the following rates of the
employee’s regular hourly amount (as defined in /001):
Length of Service Rate
Less than 13 weeks 0%
13 weeks to 1 year 60%
1 year to 3 years 75%
3 years to 5 years 90%
More than 5 years 100%
The customer wants to reserve the right to change the percentage amounts
on an annual basis without having to access the personnel calculation rule
to make this change.
Enter the rule name Z##S and select Create. Name the rule and choose the
program class. On the rule editor screen, enter ESG 1 and wage type 9002.
Select Change. You may build the rule using either the graphics editor or the
table editor. Both solutions are shown in the appendix.
Enter your rule in subschema Z##T, after the line PIT X015 GEN NOAB
using PIT Z##S _____ _____. This will call the rule by wage type and by
ESG for PCR. The order of processing in the schema should be:
PIT X015 GEN NOAB
DATES
PIT Z##S
2. To run payroll for your employee, go to: Menu: Human Resources > Payroll >
Americas > USA > Payroll Accounting > Release Payroll
Payroll Accounting > Start Payroll
In the log, review the processing in rule X015 and rule Z##S. The rate should be
reduced for wage type 9002 to the % of /001 as determined by the LOS with date
type 01 on IT0041 after the processing of rule Z##S. The amount should reflect
the calculation using this new value. The hours should not have been affected.
3. When finished, exit payroll for period 06. Menu: Human Resources > Payroll >
Americas > USA > Payroll Accounting > Exit Payroll
There have been no changes to the details of the program for hourly
employees.
*Basic Pay value for salaried employees is the salary amount from Basic
Pay.
** For salaried employees, total hours worked is work hours per period as
defined on the Basic Pay infotype.
Suggestion: Work with a customer-defined processing class and/or
cumulation class.
IMG: Payroll > Payroll: USA > Day Processing of Time Data > Day
Processing Functions > Wage Type Generation > Set Generation Rules
Review the entries for Time Wage Type selection Rule Group 11 (from
MODIF W) and Day Grouping of 01 for regular days or Day Grouping 02
for holidays and Sundays. The following wage types are selected for
B. To enter overtime for your employee, go to: Menu: Human Resources >
Time Management > Administration > Time Data > Maintain. Create
several new overtime records (IT2005), one at a time, any days between
April 1-15, YYYY, for employee 11102##.
C. 1. To copy and modify the wage type, go to: Use transaction OH11 or the
IMG: Payroll Accounting > Payroll: USA > Basic Settings >
Environment for Maintaining Wage Types > Create Wage Type Catalog.
Select copy. Enter 7120 in the OWType field and 71## in the CWType
field (where ## = group number). Select the line to be copied; deselect the
Test run indicator and select the Copy button. Confirm that the correct
table entries have been created.
2. To check the attributes go to: Transaction SM30 and enter table
V_T511 or IMG: Payroll Accounting > Payroll: USA > Basic Settings >
Environment for Maintaining Wage Types > Check Wage Type Catalog
> Check Wage Type Attributes
Select wage type 71##. Go to details. Verify the input combination is set
to Amount -, Number +. Set the Time Unit/Measurement to Inc. wage.
E. To create your new rule or rules, go to: Menu: Human Resources >
Payroll > Americas > USA > Tools > Customizing Tools > Calculation
Rules or Transaction Code: PE02. Use the following name ranges for
any rules you create for this exercise: Z##I, Z##J.
One possible solution is listed in the appendix. This solution uses two
rules. Rule Z##I pulls the amounts and hours of the wage types relevant to
the incentive wage calculation into a new, holding wage type 7INC. Rule
Z##J processes the incentive wage wage type 71##, creating a rate by
manipulating values in 7INC. Customer processing class 99 is used to
manipulate the values in both rules. The elimination and resetting of split
indicators was critical in this processing. See the appendix for details.
F. To run payroll for period 07, YYYY to test your rules, go to: Menu:
Human Resources > Payroll Accounting > America > USA > Payroll.
Confirm that your employee received the correct incentive wage payment
by reviewing the processing of the rules in the log and the results table.
G. When finished, exit payroll for period 07 Menu: Human Resources >
Payroll > Americas > USA > Payroll Accounting > Exit Payroll.
.
*Basic Pay Value for salaried employees is the salary amount from Basic Pay.
** For salaried employees, total hours worked is work hours per period as
defined on the Basic Pay infotype.
C. To create your new rule or rules, go to: Menu: Human Resources >
Payroll > Americas > USA > Tools > Customizing Tools > Calculation
Rules or Transaction Code: PE02. Use the following name ranges for
any rules you create for this exercise: Z##X, Z##Y.
One possible solution is listed in the appendix. This solution uses two
rules. Rule Z##X pulls the amounts and hours of the wage types relevant
to the incentive wage calculation into a new, holding wage type 7INC.
Rule Z##Y processes the incentive wage wage type 71##, creating a rate
by manipulating values in 7INC. Customer processing class 99 is used to
manipulate the values in both rules. The elimination and resetting of split
indicators was critical in this processing. See the appendix for details.
D. To run payroll for period 08, YYYY to test your rules, go to: Menu:
Human Resources > Payroll Accounting > America > USA > Payroll.
Confirm that your employee received the correct incentive wage payment
by reviewing the processing of the rules in the log and the results table.
1. Limit on Arrears
A. To copy wage type 8820, go to: IMG: Payroll > Payroll: USA >Basic
Settings > Environment for Maintaining Wage Types > Create Wage
Type Catalog: Or use transaction OH11.
Enter 8820 in the original wage type field and 88## in the customer wage
type field. Give the wage type a suitable text. Select your new wage type
and Deselect the test run box and choose Copy.
B. To confirm that wage type 88## to convert to wage type 8888 when it goes
into arrears: IMG: Payroll > Payroll: USA > Deductions > Limits on
Deductions > Rename Wage Types for Arrears Processing
Confirm that wage type 88## is linked to wage type 8888 with indicator
20. The validity dates should match the dates of your copy from 8820.
C. To create a large deduction and place an amount in the ARRRS table: Go
to transaction PA30:
Enter 11102## in the personnel no. field, enter 15 in the infotype field
and choose Create. The last day of the next payroll period will default as
the date of origin, you can use that date.
Enter 88## in the wage type field and 3000 in the amount field. Then
choose Save.
D. Run payroll for period 09, YYYY in order to take the deduction and create
a large amount on the ARRRS table. Menu: Human Resources > Payroll
Accounting > America > USA > Payroll.
1. Create a PCR that (when call with function IF) will branch to different places in the
schema based on dates from IT0041.
A. Create rule Z##B. In it, include two decisions. First include a decision about your
payroll area. Second, include a date calculation using the difference between date
type RB on IT0041 and the end of the current period. You want to use operation
SCOND to determine when the difference between the dates you are querying has
occurred. Once the condition is found to be true, you want to branch to SAP
subschema UMO0 and no longer your copy of it Z##M.
Name your new rule Z##B. One possible solution is listed in the appendix.
B. Place your new rule in your main Schema Z##U after subschema XLR0. Be sure
to include the appropriate functions IF, ELSE and ENDIF as well as DATES.
To place your new rule in your main schema, go to: Transaction code: PE01
After the line COPY XLR0, add the functions DATES, IF (with your new rule
Z##B in parmater 2), ELSE and ENDIF. IF should COPY subschema UMO0 and
ELSE should COPY Z##M. See the appendix for details if necessary.
C. Add a new entry on IT0041 for your employee 11101## with date type RB. Enter
the first day of the next pay period as the date.
Enter 11101## in the personnel no. field, enter 41 in the infotype field and
choose Change. Enter an additional date type, RB and assign the first day of the
next payroll period (should be 06/01/YYYY) as the date, then Save.
D. Run payroll for the next pay period. As you do, force the retro back a few periods
to test if the rule branch takes effect starting with the current period.
To run payroll for period 11, YYYY go to, Menu: Human Resources > Payroll
Accounting > America > USA > Payroll.
Be sure to force the retro back a few periods to test if the rule created the branch
for the correct pay periods. If it worked correctly you should branch to
subschema UMO0 in the current period, but Z##M for any prior periods. Check
the log for the current pay period as well as a previous one to verify this took
place.
E. Note: It is possible for your new rule to work properly but then actually cause
errors at other places in your schema. This new rule branches to UMOD rather
than you copy of it Z##M. As a result, this will place your employees in
different groupings and possibly conflict with earlier exercise scenarios. In any
event, you will be able to test your new rule to see if it performed the branch.
Contents:
l Working with transaction PE04
l Working with debugger to analyze processing
7. Activate
n Watchpoints
u Trace a wage type during the process of a schema
u Observe the impact of processing classes
/h activates
debugger
Breakpoint >
Breakpoint at >
Subroutine
Note: With the payroll driver the classic debugger is usually the best option to use: To be sure
your user id is set up to use it, go to transaction SE38. From the top menu choose Utilities ->
Settings. Choose the Debugging tab, select the radio button for Classic Debugging and choose
Transfer.
1. To run payroll with debugging: Run a simulation payroll for your salaried employee
11101## during a period in which they had wage type 70## assigned on IT0014. This
should be any period after and including 05.
On the payroll driver screen, enter a /h in the command field and choose enter. Note:
You should receive a message at the bottom of the screen that debugging switched on.
After noting the message, execute payroll.
2. Set a Breakpoint: From the top menu choose Breakpoints ->Breakpoint at ->
Subroutine and enter FUPIT in the Subroutine/Method/Module field and click on
Continue (Enter).
3. From the icon bar choose the Run (to Cursor) icon or the F8 key. This will take you to
the first place in the program where function PIT occurs.
4. You’ll notice a stop sign next to the place in the program where it first found function
PIT. To see the PCR being used by this call of function PIT double-click on the words in
this line next to the stop sign: “as-parm1”.
5. In the Field Names section near the bottom of your screen, you see the field is brought
in with the name of the rule (U010) that is being processed at this point.
6. To view what is on the IT table at this point, choose the Table button and in the Internal
Table field enter IT and then choose enter. Note: You could also enter any other internal
table that would have been created by this point…for example the LRT. If you enter the
RT or OT you will have no entries at rule U010 as no wage types have been moved to
either of these internal tables at this point in the schema.
7. Clear your breakpoint: To clear your breakpoint, double-click on the stop sign icon.
a. Program: RPCALCU0
b. Field Name: it-lgart
c. Relational Operator: = (equals)
d. Comp. Field/value: /101
e. And choose the green check or enter
f. Click on Run to Cursor
ã SAP America 2013 WNA11 5 - 20
g. Click on the Fields button, the field as-parm1 should still be displayed in the
Field names. Add another field entry: Enter it-lgart as a field and then choose
enter. Wage type /101 should appear in the field.
h. What is the name of the rule where the program stopped? It should be Z##P. If is
not click on Run to the Cursor until rule Z##P is displayed.
a. Program: RPCALCU0
b. Field Name: it-lgart
c. Relational Operator: = (equals)
d. Comp. Field/value: 70##
e. And choose the green check or enter
f. Accept the OR default for the Logical operator between watchpoints
g. Return to the Fields screen
h. Click on Run to Cursor
11. Delete your Watchpoints: To delete both of your watchpoints, Click on the Watchpoint
button and choose the Delete Watchpoint icon for both watchpoints.
12. Click on Run to Cursor to finish the payroll run and view the results in the log. Go to
Final Processing USA and double-click on the line PRINT RT. Verify that wage type
70## now has 20 in the number field and 450- as the amount.
Solutions
Solution: Check for Cost Center
No cost distribution
or master cost
center
In Z##D (UDD0)
V_T511K
n With this entry, wage type 8820 will be renamed 8888 before being
stored on the ARRRS table at function PREND, in subschema
UDNT, during the second run of deduction processing.
Rule Z##A can replace U013 to allow for special processing of wage
type 8888.
In rule U013, Processing Class 76 is intended by SAP to be used by
customers for their specific deduction processing needs.
Rules U011 (with P0014) and U015 (with P0015) similarly use
processing class 76 as well.
Rule 7, Option 1:
IT0041 Date Type RB
Hint: If you created option 1 for your rule, use the DATES function
preceding your rule.
For the purpose of testing, place this rule in your main schema Z##U
after subschema XLR0.
*However, you can place a rule like this anywhere in your schema
when you wish to branch.
Rule 7, Option 3:
Use a constant on V_T511K with a
value of 1 as a trigger.