Symptom
Receiving below error while requesting time off request.
XXXX is a required field/association in Object Employee Time.
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
- Request for half-day absence by selecting 0.5 days on Requesting field.
- Change End Date to request for more than half-day, i.e. 2 days.
- Submit the leave request.
- Error is shown.
Cause
- Conditional custom field based on fractionQuantity field value is configured as a required field Employee Time object definition.
- Since the field is not relevant if absence duration is more than half (0.5) day, 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 process the leave request.
- As an alternate solution, you can 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:
- Go to Admin Center > Configure Object Definition then search for Object Definition then Employee Time.
- Select Take Action > Make Correction.
- Go to Details for the custom conditional field then change Required from 'Yes' to 'No' and click Done.
- Click Save Changes to apply the changes to the object definition.
To create an absence validation rule:
- From Admin Center > Manage Data,, click on Create New and select Message Definition.
- Enter your message in the Text field then fill out External Code and Name fields accordingly.
- Go to Admin Center > Configure Business Rules, click on Create New then scroll down to Time Management section and select Absence Validation scenario.
- Define a Rule name, Rule Id, click on Continue then define rule logic accordingly, example is provided below:
- Go to Admin Center > Manage Time Off Structures then access the Time Type where the absence validation needs to be added.
- Click on Take Action > Make Correction then add the rule under Take Rules.
- Save the changes.
Keywords
Requesting, absence, time off, custom, conditional field, duration, half day, New absence,error, is a required field/association in Object Employee Time , KBA , LOD-SF-EC-TIM-ABS , Absence error's - Calculations, Deductions, TT&ET , LOD-SF-EC-TIM , Time Off , LOD-SF-EC-TIM-RUL , TAT Rules, Validation & Take rules , Problem
SAP Knowledge Base Article - Public