SAP Knowledge Base Article - Public

2415176 - Maximum Allowed Duration for Time Type Error for Absence Requests - EC

Symptom

Receiving an error when creating/submitting absences spanning several years for regular and leave of absence types in Employee Central Time Off:

You cannot request time off from MM/DD/YYYY to MM/DD/YYYY because the maximum allowed duration for time type is 24 months/120 months.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

  • SAP SuccessFactors Employee Central
  • Time Off

Reproducing the Issue

  1. Go to an Employee Profile > Manage Time Off
  2. Click on Request Time Off button then select a Time Type
  3. Set Start Date to 02.01.2020 and End Date 03.01.2022
  4. Error message appears:

24 MONTHS ERROR.png

Cause

  • In an earlier release, a validation to prevent performance issues, was added to the system if absences are created via import/API with end date set as a high date (12/31/9999) without setting the Undetermined End Date flag to Yes.
  • We do have a field called "Maximum Duration in Months" on the Time Type object. By default, visibility for this field is set to Not Visible, and value is set to 24 months for regular absence types and 120 months for leave of absence types.
  • If the absence fulfills one of the following criteria, the value is not considered to allow creation of absences that exceeds the default maximum value:
  1. Undetermined End Date
  2. Flexible Requesting without Work Schedule Days (means if you have a Work schedule with Flexible requesting set to yes and have not defined Work Schedule Days)

    Resolution

    To allow requesting of absences exceeding the default maximum value, overwrite the value by making the setting visible (maximumDurationInMonths) on the Time Type Object definition and set a meaningful limit on the respective time types.

    1. Go to Admin Center > Configure Object Definition > search for Time Type > click Take Action > Make Correction:

    TT Object.png

    1. Click on Details link for the field > change visibility to Editable > save the changes:

    visibility.png

    1. Go to Admin Center > Manage Time Off Structures > select the relevant time type to be updated >click on Take Action and Make Correction
    2. Set the value for the Maximum Duration in Months setting (i.e. from 120 to 360) > save the changes

    Note: Do not use high a number like 1000 or even 10000 as a value.

    Keywords

    SF success factors EC timeoff leave of absence LOA unable to request ECT-56282 ECT-82551, PP3 people profile , KBA , LOD-SF-EC-TIM , Time Off , LOD-SF-EC , Employee Central , Problem

    Product

    SAP SuccessFactors Employee Central all versions