SAP Knowledge Base Article - Public

2723222 - Requesting Field not reset based on Absence Duration in New Absence screen

Symptom

Requesting field is not calculated properly according to duration of absence during creation of new absence

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
  • SAP SuccessFactors Employee Central Time Off
  • People Profile (PP3)

Reproducing the Issue

1. Request for half-day absence by selecting 0.5 days on Requesting field.

HalfDayNewAbsence.png

2. Change End Date to request for more than half-day, i.e. 2 days. Requesting field is not reset as per the duration of the absence being requested.

TwoDaysNewAbsence2.png

Cause

Conditional custom field based on fractionQuantity field value is configured as a required field Employee Time object definition.

CustomConditionalFieldEmployeeTime.png

Since field is not relevant if absence duration is more than half (0.5) day, Requesting field is not calculated since system validation that checks if all required/mandatory fields are filled for the absence request is enforced.

ConditionalFieldRequired.png

Resolution

Change Required attribute of the custom conditional field to non-required to allow the system to properly calculate the requesting field value based on absence start date and end date and then configure an absence validation rule that would raise an error message if AM/PM indicator is not filled when requesting half-day absence.

To change the field attribute in the Employee Time object definition:

1. Go to Admin Center > Configure Object Definition then search for Object Definition then Employee Time.

2. Select Take Action > Make Correction.

3. Go to Details for the custom conditional field then change Required from 'Yes' to 'No' and click Done.

4. Click Save Changes to apply the changes to the object definition.

To create an absence validation rule:

1. From Admin Center > Manage Data,, click on Create New and select Message Definition.

2. Enter your message in the Text field then fill out External Code and Name fields accordingly.

MessageDefinition.png

3. Go to Admin Center > Configure Business Rules, click on Create New then scroll down to Time Management section and select Absence Validation scenario.

TimeManagementScenarios.png

4. Define a Rule name, Rule Id, click on Continue then define rule logic accordingly, example is provided below:

AMPMValidationRule.png

5. Go to Admin Center > Manage Time Off Structures then access the Time Type where the absence validation needs to be added.

MTOStructuresTimeType.png

6. Click on Take Action > Make Correction then add the rule under Take Rules.

TakeRuleTT.png

7. Save the changes.

Keywords

Requesting, absence, time off, custom, conditional field, duration, half day, New absence , KBA , LOD-SF-EC-TIM , Time Off , Problem

Product

SAP SuccessFactors Employee Central all versions