Skip to Content
4
Apr 02, 2009 at 03:51 AM

Just for ur info

1271 Views

Detail Presentation on Personnel Caluculation Rules

Before discussing about the Rules let have a Over Look on Schema as we know that we have to Edit the schema when ever we insert a PCR. So let try to know About the Schema

Schema is a set of Functions and Sub Schema , Each function will be operated with the help of Operation

SCHEMA

Function Operation

P.S : As I worked on Indian Pay roll I am giving with in that area only

Ex: PE 01 is the tocde to view the Schema

Now got to PE01 and for every country u will be having a Schema (Programme to run the Pay roll)

For India IN00 is the schema (Note if u want to edit the schema u shd not edit in the standard one u shd copy IN00 to ZN00)

Now PE01 IN00 u can opt for display or Maintain

Display u will a screen with columns and rows

So

Fun PAR1 PAR2 PAR3 PAR4 D Description

Here as we discussed above schema is a combination of Function and Opertaion

Now for ur under standing once check the lines some lines start with the Function PRT , PIT , like that u2026.

In some lines u will find INED and INVT like that (Note u will find these functions in the subschema INN1 )

So some times these rules are operated with Functions and some times they are directly operated with the help of Sub Schema

So as said above the the columns D we use to Comment the Column if we want to activate or not activate (if we Modify any Standrad rule we Comment it and under that rule we insert our own logic)

now before going to PE02 PCR let have a over look on it opertation which we use

NUM:

This Operation would fetch the Split indicator of the wagetype queried in the rule, in the Variable NUM for processing..

RTE:

This Operation would fetch the Rate of the wagetype queried in the rule, in the Variable RTE for processing.

AMT:

This Operation would fetch the Amount of the wagetype queried in the rule, in the Variable AMT for processing

ADDWT:

This Operation will append one more row in the internal table (Processed by the rule).

Now Functions

PIT:

1. This function will read the internal table IT (Input table).

2. The function will hold a rule as first parameter.

PRT:

1. This function will read the internal table RT (Results table).

2. The function will hold a rule as first parameter.

PDT:

1. This function will read the internal table IT (Input table).

2. The function will hold a rule as first parameter.

PORT:

1. This function will read the internal table ORT (Old results table).

2. The function will hold a rule as first parameter.

P0014:

1. This function will read the Infotype 0014 for processing.

2. The function will hold a rule as first parameter.

Now lets talk abt the Rule INVT ( This for India) Check the standard rule thru PE02

Now I want to write the Rule by Querrying it

Here it is

*

9000 (This is my wage type which I want to pass)

ELMI* (This will reomove the Splits for that wage type)

RESET /416 (if u read the te standard one u will get wht is /416 it is gorss total income)

ADDWT* this operation helps us to show the wage type in RT and IT

So after writing this rule in PE02 (note u shd copy from INVT as ZNVT)

U need to Commet INVT standard function as we are wrtting the Customer Rule

We comment in D column by using *

And below that we add the line by inserting I and press enter u will get a line and add ZNVT

Like this we shd proceed farword

Rounding Rule (this rule are creating this not any standard rule )

For rounding the values sap has provided certain paramets, like nearest amout, below, above,(G, K, )

In that first you can choose which method are you going to select.

For rounding the values you can written the rule like this

*

WGTYP?

1010 - Basic Pay

ROUNDG 100

ADDWT *

1020 - VARIABLE PAY

ROUNDG 100

ADDWT *

In similar way you can write the rule for your custom wage types(whatever wage types do you required for rounding, as per business requirement).

Then this rule call the after XVAL rule in XAL0 subschema using PTIP function. (why because after factoring only values will be divide for that we need to call this rule after XVAL rule)

for nowing more on functions and operations check PE04 and always suggested to take the help from F1

guys this just an Small Attempt from my side u2026u2026u2026I suggest u too to contribute more on this issueu2026u2026

Inputs Given by Devi , Biswajith Das , Praveen K Tiwari, Srikanth Reddy , Revathi