As of 1H 2023 release, it is possible to set Initialize Rules in Employee Time Sheet Entry and Allowance object to initialize value in Time Sheet, as documented in WNV Page and Initialization Rules in Time Sheet.
In the rule, if it sets value based on some input field's value from the Time Sheet UI, it cannot initialize the value on Time Sheet UI based on the input value.
Take Employee Time Sheet Entry for example, there is a business rule defined to default cost center based on the time type, Working Time.
But in the time sheet UI, the cost center is still empty, not initialized.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
- SAP SuccessFactors Employee Central - Time Sheet
- SAP SuccessFactors Time Tracking
Reproducing the Issue
- Create a business rule to initialize value for Employee Time Sheet Entry or Allowance, where it sets value based on some Time Sheet UI input field's value.
- Add the rule to Initialize Rules in Employee Time Sheet Entry or Allowance object.
- Create a new Working Time, On-Call Time or Allowance on Time Sheet UI.
- Then you will notice the initialization of the value according to the business rule does not work.
This is the correct behavior, because the Initialization rules (Initialize Rules) are triggered in the initialization phase of object creation, for example, working time, on-call time, or allowance. At this initialization phase, the input field's values are not provided yet.
Please configure the initialization rule to set the values not based on the Time Sheet UI input field's value.
For example, it is possible to set the cost center based on the employee's cost center in Job Information.
The cost center in Job Information is not an input field on Time Sheet UI, so that it is possible to retrieve the value from Job Information even in the initialization phase of object creation of Working Time, On-Call Time or Allowance on Time Sheet UI.
Furthermore, please note:
Cost Center is the only supported standard field in Employee Time Sheet Entry initialization rules.
All fields except Allowance Type are supported in Allowance initialization rules.
default, prefill, preset, set, initialize, initialization, create, record, tms, ttr , KBA , LOD-SF-EC-TMS , Time Sheet , LOD-SF-TTR , Time Tracking , Problem