Personnel Calculation Rule and Schema - An Understanding
Personnel Calculation Rule and Schema - An Understanding
Personnel Calculation Rule and Schema - An Understanding
Applies to:
SAP HCM \ HR. For more information, visit the Enterprise Resource Planning homepage.
Summary
Personnel Calculation Rule and Schemas are the basis for Payroll Calculation and Time Evaluation. This document describes in detail the aspects of Personnel Calculation Schema and Rules. Author: Revi Mohan
Author Bio
Revi Mohan is currently working with Cognizant Technology Solutions, India as a SAP HCM Consultant. He has more than six years of SAP HCM experience, extensively in Time Management, Payroll and Benefits Administration.
Table of Contents
Introduction .........................................................................................................................................................3 Process flow for Schemas and Rules .............................................................................................................3 Personnel Calculation Rules...........................................................................................................................3 Working with Personnel Calculation Rules .....................................................................................................3 Personnel Calculation Schema.......................................................................................................................7 Working with Schemas....................................................................................................................................8 Schema Explained ........................................................................................................................................10 Parametres .......................................................................................................................................................11 Functions and Operations.................................................................................................................................12 Functions.......................................................................................................................................................12 Operations.....................................................................................................................................................12 Custom Functions and Operations ...............................................................................................................12 Related Content................................................................................................................................................13 Disclaimer and Liability Notice..........................................................................................................................14
Introduction
Schemas and Rules form the basis for calculating Payroll and Time Evaluation. Process flow for Schemas and Rules
Schemas call a Sub Schema or a Rule using a Function. Sub Schema is a Schema on its own, when included in a Schema its called a Sub Schema. Rules in turn do the calculations using the Operations. SAP has delivered Functions and Operation to meet all the scenarios, in case the available Functions or Operations doesnt meet any of the requirements, its possible to create custom Function and Operation Personnel Calculation Rules Rules are collections of operations. Using operations Rules perform the basic calculations for payroll or time evaluation Rules can be of two groups. One group takes a decision and the other group manipulates the wage types. Working with Personnel Calculation Rules Rules can be created, modified and viewed in Transaction Code PE02
PCR view Table or Tree Structure Name of the PCR Used to create a new PCR
Source Text will allow you to edit the PCR EE sub group grouping for which the PCR is applicable Wage Type for which the PCR is applicable Attributes of the PCR View the PCR Change the PCR Documentation for the PCR
Detailed Description 4 character alpha numeric name T for TM & C for PY Country Grouping SAP User
Date
SAP
Date
Time
This will help to view and modify the PCR in Tree Structure
This will help to view and modify the PCR in Table Format
Personnel Calculation Schema Schema is a set of instructions on how to calculate Working Time \ Payroll. These instructions are grouped in a sequential manner. Schema is a collection of Functions executed in a specific order Schema consists of, Sub Schemas and Personnel Calculation Rules queried using Payroll Functions. Schemas will be called for Time or Payroll calculation by the respective programs RPTIME00 will call the Time Schema
RPCALCxx will call the Payroll Schema (XX stands for the country version, e.g. for USA RPCALCU0)
Time Evaluation and Payroll drivers will exhibit only the respective schemas in the drop down list Working with Schemas When its required to work with a schema, its advisable to copy the standard schema and work with the custom schema. This will help us to have a back of the original schema Go to Tcode PE01
A new screen will pop with asking for the name of the new schema
Delete
Copy
View Option
Display
Name
View \ Edit the Schema
Create
View \ Edit the Schema Attributes View \ Edit the Documentation Change
Program Class decides whether the schema is Payroll or Time Management Schema. C stands for Payroll and T stands for Time Management Country Grouping decides the schema is available for which country. Time Management schemas will usually have ** since it will be available for all the countries. Person responsible shows the person who has created the schema Changes only by person responsible, if checked, will not allow anyone else to make modification to the schema Administrative Info will tell about the version and the person who made the last changes. Schema Explained
There are eight columns in the schema. Column one consists of the Line Number Column two consists of the Functinos. Next four columns carry the Parametres in relation to the function that is being called. Columb D is where the decision is taken on a particular line Text column consists of an explanation of the action that is being performed in the line.
Parametres
Functions will work based on the Parametres one to Four.
It is not mandatory that all four parameters needs to be used for even function.
In the above screen shot, Infotype 0014 is accessed through Function P0014 using GP11 PCR in Par 1, in Generic Mode (irrespective of WT or processing class) according to the Par 2 and for all the employees sub groups by mentioning NOAB in Par 3 Parameters will be used as per the characteristic of the Function Finally write documentation
ABAP coding needs to be desigend according to the requirement in the form created in the appropriate program If the Fucntion has been created as ZTEST the form will be created as FUZTEST If the Operation has been created as ZTEST the form will be created as OPTEST
Related Content
Please include at least three references to SDN documents or web pages. http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/80abe2bc-138b-2c10-94a7c19fd32540bb&overridelayout=true For more information, visit the Enterprise Resource Planning homepage.