SAP Knowledge Base Article - Public

2723222 - Error: XXXX is a required field/association in Object Employee Time

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

  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. 
  3. Submit the leave request. 
  4. Error is shown.

Cause

  • Conditional custom field based on fractionQuantity field value is configured as a required field Employee Time object definition.CustomConditionalFieldEmployeeTime.png
  • 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:

  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,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

Product

SAP SuccessFactors Employee Central 2605