SAP HR Payroll Schemas and Personnel Calculation Rules ....docx
SAP-HR-PAYROLL
-
Upload
ravichandra-suresh-himesh -
Category
Documents
-
view
3 -
download
0
description
Transcript of SAP-HR-PAYROLL
-
India SAP CoE, Slide 1
Concept of Payroll Schema and
PCR by
Gayathri Nannapaneni
-
India SAP CoE, Slide 2
Payroll Schema Overview
1 PrepareMe
2 TellMe
3 ShowMe
4 LetMe
5 HelpMe
-
India SAP CoE, Slide 3
1 PrepareMe
2 TellMe
3 ShowMe
4 LetMe
5 HelpMe
-
India SAP CoE, Slide 4
Objective
Understanding to Configure the SAP system for writing payroll schema and PCR
-
India SAP CoE, Slide 5
CONTENTS
Concept of payroll driver and it's relation with schema and
PCR
Introduction to schema
Introduction to PCR
Payroll run
-
India SAP CoE, Slide 6
Day 1
Concept of payroll driver and it's relation with schema and PCR
Concept of payroll driver
Payroll driver relationship with PCR and Schema
Concept of table header and Wage types
Introduction to schema
Introduction to schema
Functions in Schema
Documentation on functions
Structure of a schema
How to create a Schema
How to write a custom schema?
Examples on writing custom Schemas
-
India SAP CoE, Slide 7
Day 2 Introduction to PCR
Introduction to PCR
Operations in PCR
Documentation on operations
Rule Structure
How to write a custom PCR?
Payroll run
Payroll run process flow
Running payroll driver
Reading the payroll driver log
Exercises
Transactions and Reports
Tips and Tricks
-
India SAP CoE, Slide 8
1 PrepareMe
2 TellMe
3 ShowMe
4 LetMe
5 HelpMe
-
India SAP CoE, Slide 9
Concept of payroll driver Each country payroll version supported by SAP has a program called the "payroll driver" that calculates payrolls. For example, in the U.S., the payroll driver is RPCALCU0, in Mexico it is HMXCALC0, and in Canada RPCALCK0. Each one is different, but they share a common core of functionality.
The job of the payroll driver is to process payroll functions as specified in a payroll schema. These payroll functions each perform a specific job, for example - reading data from infotypes, calculating taxes, and processing wage types. Some functions process payroll rules. Rules are a collection of payroll operations. Each operation does a small unit of
get an amount.
-
India SAP CoE, Slide 10
Schemas are edited with transaction PE01, and rules Processing relationships with PE02. Functions and operations are maintained with transaction PE04. To view payroll results, use transaction pc_payresult (or in earlier R/3 releases go to Tools>Payroll result>Display in the Payroll menu). (See Figure 1.)
The standard payroll schema for a country can be derived from table t500l. If the country in table T500L has an X in the Old Naming Conv field, then the schema is HR Country Indicator plus 000. Otherwise, it is the ISO Code plus 00. So the U.S. has schema U000 and for Mexico it is MX00.
-
India SAP CoE, Slide 11
1 PrepareMe
2 TellMe
3 ShowMe
4 LetMe
5 HelpMe
-
India SAP CoE, Slide 12
Relationship of Payroll Driver, Schema (Functions), Rules
(Operations) Figure 1 Processing relationships
Functions
(PE04)
Rules
(PE02)
Operations
(PE04)
Payroll Results
(pc_payresult)
Schemas
(PE01) Payroll Driver
(PC00_Mxx_CALC)
-
India SAP CoE, Slide 13
Header and Table Wage Type Concept
When calculating payroll, wage types are read from infotypes and
the Time Management cluster and stored in an internal table called
the Input Table (IT). See Table 1.)
In ABAP terms, this is simply an internal table. Various payroll
functions and operations can read and update data in this table.
Similar to ABAP internal tables, there is a header row. That header
row defines which row of data can be accessed by the payroll
operations. After manipulating the data in the header row, you can
save the row back to the IT, save it to another payroll table, or
ignore it. In Table 1 there are three wage types, and wage type
2100 is currently in the header row. After you are done with wage
type 2100, wage type 4200 is moved into the header row.
-
India SAP CoE, Slide 14
Header and Table Wage Type Concept
Table 1
Wage type Number Rate Amount
2100 0 0 100.00
2100 0 0 100.00
4200 0 0 20.00
1500 40 10.30 412.00
-
India SAP CoE, Slide 15
SCHEMA The payroll schema contains calculation rules to be used by the payroll
driver during payroll.
The personnel calculation schemas define the basic process of payroll or time
evaluation Schema is Basically collection of Functions and schemas to be
processed in sequential manner during payroll run.
Schemas can call other schemas within them using function COPY.
Transaction code for Schemas is PE01
Schemas are Country Specific
Report RPDASC00 can be used to search Schemas for Time and Payroll.
Edit Commands for Schema
D - Deletes a line
I - Inserts a line
C - Copies a line
DD - Indicates the start / end of a block to be deleted
CC - Indicates the start / end of a block to be copied
A - Places the block after the chosen line
B - Places the block before the chosen line
http://help.sap.com/erp2005_ehp_04/helpdata/EN/71/4c453a4c4611d1890b0000e8323d3a/content.htmhttp://help.sap.com/erp2005_ehp_04/helpdata/EN/71/4c453a4c4611d1890b0000e8323d3a/content.htmhttp://help.sap.com/erp2005_ehp_04/helpdata/EN/71/4c453a4c4611d1890b0000e8323d3a/content.htm -
India SAP CoE, Slide 16
What a schema will do? A schema consists of the following parts:
Initialization
The system performs the following steps:
Updates the databases
Imports required infotypes
Gross calculation of pay
The system performs the following steps:
Processes basic data and time data
Queries off-cycle payroll runs
Reads payroll account of the last period accounted
Processes time data and calculates the individual gross values
Performs factoring
Net calculation of pay
The system performs the following steps:
Calculates net remuneration
Performs bank transfers
-
India SAP CoE, Slide 17
Functions in Schema
Functions are used in Schema. Used to perform business process
specific calculation within the Payroll Driver run.
Transaction Code : PE04
Functions can me created with customer development. Z*
Few examples for Payroll Functions:
PIT/PRT -Function PIT will process a particular wage type or all wage types in Input table/based on the parameter value
PRT -Function PRT will process a particular wage type or all wage types in Result Table based on the parameter value
COPY -Function copy is used to copy a subschema in main schema
IF & ENDIF - Used for conditional statement execution
-
India SAP CoE, Slide 18
BLOCK - Used to begin or end certain blocks in a schema
REFRSH -This function will refresh tables based on the parameter value
COM -This function is used to comment a line
SORT - This function will sort tables based on the parameter value
EXPRT - This function will export payroll results to cluster based on the parameter value
P0009/P0011 -These functions will be used to read infotype 0009 & 0011.
-
India SAP CoE, Slide 19
How to create a function? Transaction Code : PE04
Functions can be created with customer development. Z*
-
India SAP CoE, Slide 20
Indicator of interface relevance:
This indicator determines whether the function parameter specified is relevant for
the function interface (table T52BW).If the parameter is flagged, the respective
parameter value must be specified for all entries in T52BW.Otherwise, SPACE
should always be entered as the parameter value in T52BW.
-
India SAP CoE, Slide 21
Schema Structure The system processes these functions in sequence. A function must
be processed successfully before the next functions in the source
text can be processed.
Column D (Execution of function or subschema)
This indicator determines whether the function or subschema specified in a line of the source text is executed. If you enter an asterisk (*) in this field, you deactivate the function or subschema, in other words, the function or subschema is not included when the schema is executed.
Function
Most functions perform specific tasks that collect, process, or display data. There are also
Functions to control the process: conditions (IF...ENDIF) and loops (LPBEG...LPEND)
Functions to call subschemas (COPY)
Different functions to call personnel calculation rules
-
India SAP CoE, Slide 22
You can display a list of the functions available in the system. If you are in a personnel calculation rule and want to create an overview of all functions, choose the Maintain Functions and Operations transaction (PE04), and then choose F4 on the Name field. If you want to create a context-dependent list, select the function field and choose F4 Help.
Parameters
Functions can be accessed with up to four parameters. The parameters are used to define the function with greater precision.
http://help.sap.com/saphelp_erp60_sp/helpdata/en/4f/d51dbf575e11d189270000e8322f96/content.htm -
India SAP CoE, Slide 23
How to create a Schema?
a program class(C-Payroll,T-time), Country grouping and if it is a
marked to run in payroll.
-
India SAP CoE, Slide 24
A sub schema in a main schema will be called with function
-
India SAP CoE, Slide 25
Creating Custom Schemas
Schema and Rule Naming Conventions :
Customer modified schemas and rules need to begin with Z. Many
customers simply replace the first letter of the standard schema with a
Z i.e., their modified copy of UAP0 becomes ZAP0.
Editor Documentation:
Documentation for the function, operation, schema, and rule editors is
available online at http://help.sap.com. Click on SAP R/3 and R/3
Enterprise and then select your release level and language. Then
navigate to the Human Resources>HR Tools section.
http://help.sap.com/ -
India SAP CoE, Slide 26
F1 Help:
In the schema and rule editors, place your cursor on a function or
documentation is available in the editor via the Goto>Documentation
menu. In the schema editor, the F4 key shows possible values for
each of the four parameters for whatever function is entered on
that line. The same documentation and more is available
via transaction PDSY.