Start of Content Area

Object documentation Conversion Rule Locate the document in its SAP Library structure

Definition

The conversion rule defines how individual periods and date specifications are calculated.

Use

Note

The conversion rules for the employment period calculation are defined by SAP. If you use a standard calculation process, it is not usually necessary to make additional Customizing settings for the conversion rules. You only need to define conversion rules if you create a new calculation process in your customer developments.

The conversion rule enables you to use calculate periods and date specifications in accordance with statutory or collective agreement regulations When a valuation model is valuated in the calculation process, the function modules are based on the conversion rule.

The conversion rule is different from the calculation type. The conversion rule refers to the conversion of the smallest time units; duration and date. In contrast, the calculation type refers to the determination of duration, and start or end of the whole employment period.

Example

You want to determine the period of employment for your employees for the company pension scheme. The following regulations should be converted in the calculation:

The following table shows how the conversion rule is used in this example.

Structure

You define the conversion rules in Customizing for Personnel Administration under Evaluation Bases ® Calculation of Employment Period ® Define Conversion Rule. In This graphic is explained in the accompanying text, you can find four function modules that are assigned to the conversion rule. Four function modules must be entered for each conversion rule so that all periods and date specifications can be calculated.

The Four Function Modules in a Conversion Rule

Task

Definition

Use in the example

Duration of an interval

Determines the accompanying duration for an interval that is defined by a start and end date

Start date: 01/01/1997
End date: 15.04.1998

Duration: 1 year, (31 + 28 + 31 + 15) days

= 1 year, 105 days

Weighting of a duration

Weights a duration with a weighting factor given by a numerator and denominator

2 years, 21 days
Weighting factor: 50/100

10.5 days are rounded up:

= 1 year, 11 days

Cumulation of durations

Calculates the total for a table of durations

+ 1 year, 200 days
+ 1 year, 170 days

= 3 year, 5 days

Calculation of a date

Determines the end date for an interval that is defined by a start date and duration

Start date: 01/01/1997
Duration: 1 year, 46 days

End date: 1 year, +31 + 15 days

= 15.02.1998

If you create a new conversion rule, you can use the standard SAP function modules as a template and copy them.

Function Modules as Templates for the Conversion Rule

Task

Template

Conversion of the duration of an interval

HR_SEN_TEMPLATE_DURATION

Weighting of a duration

HR_SEN_TEMPLATE_WEIGHT

Cumulation of durations

HR_SEN_TEMPLATE_SUM

Calculation of a date

HR_SEN_TEMPLATE_DATE

For more information on function modules, see This graphic is explained in the accompanying text Displaying Documentation.

Integration

A conversion rule is already assigned to each SAP calculation process. This assignment can be found in Customizing for Personnel Administration under Evaluation Bases ® Calculation of Employment Period ® Calculation Process ® Define Calculation Process.

 

 

End of Content Area