SAP ABAP Data Element PSEN_CRULE (Conversion Rule for Durations and Dates)
Hierarchy
SAP_HRRXX (Software Component) Sub component SAP_HRRXX of SAP_HR
   PA-PA-XX-TL-SEN (Application Component) Calculation of Employment Period
     PSEN (Package) Service Calculation
Basic Data
Data Element PSEN_CRULE
Short Description Conversion Rule for Durations and Dates  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type PSEN_CRULE    
Data Type CHAR   Character String 
Length 4    
Decimal Places 0    
Output Length 4    
Value Table T525U    
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Rule basis 
Medium 15 Conv. rule 
Long 21 Conversion rule 
Heading Conv 
Documentation

Definition

The conversion rule calculates durations or dates for the employment period calculation.

Use

You use the conversion rule to process statutory requirements for the calculation of durations and dates in the system.

Four function modules are grouped into one conversion rule:

The conversion rule is assigned to a calculation process. When a calculation process is evaluated, the assigned function modules are used.

Further notes

When a conversion rule is defined in table T525U (Conversion Rules for the Employment Period Calculation), you must ensure that the different function modules are compatible with each other. If the duration of an interval is only calculated in calendar days, only the days are cumulated and weighted. Conversely, if the calculation uses years, days, and months, all values are cumulated and it may be necessary to deal with a field overflow.

We recommend the following function modules as templates for all function modules used in a conversion rule:

HR_SEN_TEMPLATE_DATE: Calculation of a date
HR_SEN_TEMPLATE_DURATION: Calculation of a duration
HR_SEN_TEMPLATE_SUM: Cumulation of durations
HR_SEN_TEMPLATE_WEIGHT: Weighting a duration

History
Last changed by/on SAP  19990223 
SAP Release Created in