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.
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.
Cause
Conditional custom field based on fractionQuantity field value is configured as a required field Employee Time object definition.
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.
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.
3. Go to Admin Center > Configure Business Rules, click on Create New then scroll down to Time Management section and select Absence Validation scenario.
4. Define a Rule name, Rule Id, click on Continue then define rule logic accordingly, example is provided below:
5. Go to Admin Center > Manage Time Off Structures then access the Time Type where the absence validation needs to be added.
6. Click on Take Action > Make Correction then add the rule under Take Rules.
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