Está en la página 1de 24

# Configuring the leave encashment by using rate of pay & valuation of wage types This can be achieved in three

steps 1. X010Determination of valuation bases International (addition) In this step we need to add all the wage types which should be included in rate of pay 2. X013Division of valuation bases In this step we will divide /0 series wage types (/001,/002) by dividing with calendar days, working hours, working days or with fixed value. We will arrive rate of pay. 3. X015Valuation of time wage types In this step we will arrive amount to be paid by using rate of arrived in the previous step & evaluating the wage type through table V_512w_b.

## We are going to test in on the following employee.

I. X010 Determination of valuation bases International (addition) In this step we need to add all the wage types which should be included in rate of pay Example: 1 5000Basic pay -Processing class 01 Specification: 03 wage type included in valuation base /001, /002. Basic pay has been added to both valuation bases /001 & /002

## 5010-5010-FDAProcessing class 01Specification: 01wage type included in valuation base /001

5016-5016Special Personal paysProcessing class 01Specification: 01wage type included in valuation base /001

The following should be the result /001= 5000+5010+5016 = Rs 3000 /002= 5000 = Rs 1000

## Here is the final result.

Example: 2 5000Basic pay -Processing class 01 Specification: 03 wage type included in valuation base /001, /002, &/003

## 5010-5010-FDAProcessing class 01Specification: 02wage type included in valuation base /002

5016-5016Special Personal paysProcessing class 01Specification: 01wage type included in valuation base /001 The following should be the result /001= 5000+5010 = Rs 2000 /002= 5000+5016 = Rs 2000

## Here is the result.

II.X013 Division of valuation bases In this step we will divide /0 series wage types (/001,/002) by dividing with calendar days, working hours, working days or with fixed value. We will arrive rate of pay.

Copy X013 to Z013 Create new specification 04 as we need to find the rate of pay by dividing 30. Here we will get one day rate of pay. We are starting specification 04 because we have already used 0,1,2,3 in X010 pcr.

In the above PCR amount is coming from basic pay wage type & rate is equal to 30. Amount divided by 30 and result will be stored in rate field again in /002 wage type. As we got the rate of pay so we can make amount field is zero. Add this specification to /002 wage type

## Run the payroll

/002= 5000 =1000/30=33.33 Here I have included only basic pay wage type.

III. X015- Valuation of time wage types In this step we will arrive amount to be paid by using rate of arrived in the previous step & evaluating the wage type through table V_512w_b. Calculating Leave Encashment

## Create a leave encashment wage type 7140

No need to assign any specification to for processing class 01 for wage type 7140 Go to X015 No need to change x015
The personnel calculation rule X015 (Valuation of time wage types) is queried in Subschema XT00. This personnel calculation rule is queried depending on the employee subgroup. The personnel calculation rule X015 checks whether the input table (IT) contains time wage types that should be valuated using valuation bases. Using operations AMT?0, NUM?0 and RTE?0 the system checks the contents of the AMT (Amount), NUM (Number) and RTE (Rate) fields. The following cases are distinguished between:

1) If the AMT (Amount) field contains a value, the wage type will be transferred to the output table OT using operation ADDWT. 2) If the NUM (Number) and RTE (Rate) fields contain values these are multiplied by each other. The result is entered in the Total Amount field and the wage type is transferred to the output table OT using operation ADDWT. 3) If only the Number field (NUM) field contains a value, the operation VALBS determines Whether a valuation basis has been entered in the Wage Type Valuation table T512W for the wage type. If a valuation basis has been specified, the wage type is valuated In our scenario only number field is there in wage type 7140 so system will look into the V_512w_b for rate.

## Put X015 after XVAL in ZNAL schema

Now go to V_512w_b

In the above we have given 02 that means system will take rate of pay from /002 Wage type 7140 valuated with /002 as rate. Now add no of days in 7140 wage type in infotype 15

## Run the payroll & expand the log

Leave encashment in off cycle payments In off cycle if the payroll runs is a special run it will refresh the internal tables. As our leave encashment based on basic wage type we need that wage type amount should be there to evaluate leave encashment wage type 7140.

So we need write two pcrs to get the Basic Wage type out of this loop.

Before refreshing the internal table we should add Basic wage type result table

As we are not going to pay basic wage type first we need to pass this wage type to a Dummy wage type 9000 and then make basic pay wage type to zero.

## Put the pcrs before & after of the function RFRSH

Create a dummy wage type to pass on the basic pay amount into that.

All the cumulation classes to be unticked. Note: As 9000 is a dummy wage type we should not post this wage type. Now to pay the Leave encashment in off cycle mode add put no of days in 7140 wage type in 267 infotype.

## Run the off cycle payroll through regular payroll driver.

NOTE: We can copy /001, /002 wage types to create more rates of wage types /003, /004, /005 etc and also can create more specifications to processing classes like below.