SAP ABAP IMG Activity OHAIEOSP00110A (Attach a Seniority Calculation)
Hierarchy
SAP_HRCIE (Software Component) Sub component SAP_HRCIE of SAP_HR
   PY-IE (Application Component) Ireland
     P11C (Package) HR customizing: Ireland
IMG Activity
ID OHAIEOSP00110A Attach a Seniority Calculation  
Transaction Code S_AHR_61019407   (empty) 
Created on 19991202    
Customizing Attributes OHAIEOSP00110A   Attach a Seniority Calculation 
Customizing Activity OHAIEOSP00110A   Attach a Seniority Calculation 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name OHAIEOSP00110A    

Use

In this step, you decide the calculation that is performed to determine the seniority or length of service of a group of employees.

The different employee groupings can be based on any of the fields in the decision tree of the feature GLOSS, for example the company code, personnel area, or country grouping.

A seniority calculation must have a start date and an end date. The system provides different methods to determine the dates, and different formulars to calculate the duration between the start date and end date. You have to use a calculation identifier that defines the methods to be applied to seniority calculation. The calculation identifier consists of the following elements:

  • The first character of the calculation identifier defines how to determine the start date:

    A - First hiring event
    B - Most recent hiring event
    C - Hiring date (as defined from HR_ENTRY_DATE)
    D - Previous service start date (from date specifications)

    If you choose D you additionally have to specify the date type as defined in infotype Date Specifications (0041). Therefore the fourth and fifth characters of the calculation identifier are reserved. If none is provided (or it is invalid) or the employee does not have this data then an error occurs.

  • The second character of the calculation identifier defines how to determine the end date:

    A - Day of absence being processed
    B - Absence start date
    C - Start of maternity pay period (IE maternity)
    D - Expected date of birth (IE maternity)
    E - Expected week of confinement (IE maternity)
    F - Qualifying week (IE maternity)
    G - Calendar date in the form DD.MM (public sector - absence start date)
    H - Calendar date in the form DD.MM (private sector - absence day being processed)
    K - 11th week before the EWC (IE maternity)

    If you choose G or H you additionally have to specify the calendar date. Therefore, the fourth to eighth characters of the calculation identifier are reserved (or the sixth to tenth characters if seniority start date method D is being used). For example, the calculation identifier AGE05.04 implies seniority is calculated from the first hiring event to April 5 in the current year, whereas the current year is decided by using the next anniversary after the start of the absence.

    Methods I and J are similar to B. However, if an earlier absence than the current one is continuously linked to the current one, then the absence start date is actually deemed as the start date of the ealier linked absence.

    Method I checks that both characters of the absence grouping in table Attendance and Absence Types (T554S) match the current absence's absence grouping to be considered as being grouped for linking purposes.

    Method J checks that only the second character of the absence grouping in table T554S matches the second character of the current absence's absence grouping to be considered as being grouped for linking purposes.

  • The third character of the calculation identifier defines which seniority calculation should be performed using the start and end dates:

    A - Previous service + active employment
    B - Previous service + active employment - career breaks
    C - Previous service + active employment - career breaks - absences
    D - Previous service + active employment - absences
    E - Duration between start and end

    The calculation methods A, B, C, and D correspond to the standard seniority calculations ABSA, ABSB, ABSC, and ABSD respectively. The customising for these four variations can be viewed in customising for Personnel Administration under Evaluation Basis -> Calculation of Employment Period. The standard customising is as follows:

    • Previous service: infotype 0041 date type 10 to day before first hire
      Active employment: infotype Actions (0000) validity periods with status 2 or 3
      Career breaks: infotype 0000 validity periods with status 1
      Absences: infotype Absences (2001) validity periods with subtype 0700
    • In all cases, inactive employment is derived from infotype 0000 validity periods with status 0 and does not count towards service.

Notes

  • Some of the seniority calculations are for maternity and some are for sickness. The feature's decision tree should be used to make sure that all the absence subtypes use the correct seniority calculation.
  • If you use the "day of absence being processed" as the end date, the system executes the duration calculation every day of the absence. Performance can be greatly enhanced by not using the "day of absence being processed" as the end date. Any other combination of start date and end date provides a static period of reference for the entire absence. So, as long as the duration calculation does not change, the seniority calculation needs only be performed once for the entire absence, on the first day of the absence and not every day of the absence.
  • The calculation of any period of reference is only exact in days, but holding seniority bands in days is impractical. The scheme rule age and seniority bands allow units of days, weeks, months, and years. This inconsistency allows some degree of flexibility to be necessary in interpreting what 29 or 30 days is in "months".

    As standard the seniority calculation passes out the seniority in days, months, and years (all in decimals). This result is customisable using standard customising within the seniority calculation. The factors used are defined as follows:

    • S13 Seniority years (as standard = 365 days)
    • S12 Seniority months (as standard = 30 days)
    • S11 Seniority weeks (as standard = 7 days)
    • Seniority in years = seniority calculation total days / S13 days
    • Seniority in months = seniority calculation total days / S12 days
    • Seniority in weeks = seniority calculation total days / S11 days
    • Seniority in days = seniority calculation total days

      The seniority calculation result is passed into the customer exit EXIT_SAPLHRGPBS_OSP_OMP_SEN. This allows complete flexibility. The result can either be changed in the customising of the seniority calculation or in the customer exit using the results that have come from the seniority calculation.

Requirements

The different calculations necessary for your needs must be attached to all your various employee groups and absence subtypes.

Example

  • Calculation identifier AAE:

    The system determines the date the employee was first hired using the infotype 0000 and the current day of the absence being processed, then simply calculates the duration between the two.

  • Calculation identifier CCC:

    The system determines the employee's entry date using HR_ENTRY_DATE which uses the infotypes 0000, Organizational Assignment (0001), Contract Elements (0016), 0041, and also a customer exit. The employee's maternity pay period start date is determined using infotype SMP/SAP/SPP GB (0088). Finally, the system works out the amount of seniority the employee has between these two dates, removing career breaks and specific absences (strikes or trade disputes).

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
OHAIEOSP00110A IE Ireland
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG OHAIEOSP00110A 0 AHR0000011 Absences 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
PMKC L - Logical transport object PE00 GLOSS  
History
Last changed by/on SAP  20060531 
SAP Release Created in 46B