4
Scenario: Overtime Calculation Employee’s overtime, which is entered in employee remuneration info, should be paid correctly in his payroll. OT Rate has to be calculated as per the below logic. OT Rate = (Basic * 12) / 2496. Using standard schema, we cannot achieve this. We will create a custom rule and add that rule in custom schema. Copying Standard Schema: TCODE: PE01. Enter Schema name and click on Copy button. Enter TO Schema. Copy SAP Standard Schema (XT00) to Z Schema (Z003).

Overtime PCR

Embed Size (px)

DESCRIPTION

test

Citation preview

Page 1: Overtime PCR

Scenario: Overtime Calculation

Employee’s overtime, which is entered in employee remuneration info, should be paid correctly in his

payroll.

• OT Rate has to be calculated as per the below logic.

• OT Rate = (Basic * 12) / 2496.

• Using standard schema, we cannot achieve this.

• We will create a custom rule and add that rule in custom schema.

Copying Standard Schema: • TCODE: PE01.

• Enter Schema name and click on Copy button. Enter TO Schema.

• Copy SAP Standard Schema (XT00) to Z Schema (Z003).

Page 2: Overtime PCR

Rule Creation:

TCODE: PE02.

Enter Rule name and click on Create button. In Attributes, enter Program Class ‘C’ (Payroll).

Create a Rule (Z002) for calculating OT Rate.

Each rule contains operations to process payroll data in

AMT, ADDWT and FILLF operations.

• AMT*12 : Amount of the current wagetype is multiplied with 12.

• ADDWT 9010 : The Current wagetype values are added to wagetype 9010 into OT table.

• FILLF : This will reset the value of current wagetype.

• ADDWT * : Adding current wagetype to OT table.

Create another rule(Z004) to send amount of wagetype 9010 to wagetype 9020.

Enter Rule name and click on Create button. In Attributes, enter Program Class ‘C’ (Payroll).

Create a Rule (Z002) for calculating OT Rate.

Each rule contains operations to process payroll data in internal tables. In the below rule we have used

Amount of the current wagetype is multiplied with 12.

The Current wagetype values are added to wagetype 9010 into OT table.

This will reset the value of current wagetype.

Adding current wagetype to OT table.

Create another rule(Z004) to send amount of wagetype 9010 to wagetype 9020.

Enter Rule name and click on Create button. In Attributes, enter Program Class ‘C’ (Payroll).

internal tables. In the below rule we have used

The Current wagetype values are added to wagetype 9010 into OT table.

Page 3: Overtime PCR

Create a rule(Z005) to multiply Rate with Number to get Amount.

Insert the newly created rules into schema Z003.

Data Maintenance:

Now enter wagetype 9020(Overtime) and number of hours in Employee Remuneration Info (2011)

infotype.

Page 4: Overtime PCR

Executing Payroll:

Check Payroll Results: