Symptom
As of 1H 2023 release, it is possible to set Initialize Rules in Attendance and Allowance recordings to initialize value in Time Sheet, as documented in Initialization Rules in Time Sheet. (Initialization rules are not supported on Employee Time Sheet.)
If you are using the Legacy Week time sheet period, the Initialize Rule should be set to Employee Time Sheet Entry and Allowance object definitions respectively for initializing values for Attendance and Allowance recordings.
If you are using the Flexible Period time sheet, for example Monthly period, the Initialize Rule should be set to Time Recording and Allowance Recording object definitions respectively for initializing values for Attendance and Allowance recordings.
But there are some restrictions when utilizing Initialize Rule as documented in this KBA.
Environment
- SAP SuccessFactors EmployeeCentral - Time Sheet
- SAP SuccessFactors Time Tracking
Resolution
- 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.
- Ready Only or Invisible fields are not supported.
- Conditional fields are not supported.
You may get "MDFRecordId is missing." message when creating an attendance where the conditional field to be populated by the Initialization Rule is not visible. More details can be found in KBA 3582539 . - Initialization rules can only access userID from parent (for example, parent.userId works, but not parent.comment) for Employee Time Sheet Entry and Allowance initialization rules.
- Initialization rules cannot access userID for Time Recording and Allowance Recording.
Because these two objects are used in the Flexible Period time sheet based on a new data modal different from the Legacy Week time sheet data modal, and Time Recording and Allowance Recording are independent objects rather than child objects to time sheet as in the old Legacy Week data modal.
So it is not possible to access the userID from parent like in the Legacy Week, nor possible to access userID from the objects directly since the object does not yet exist on DB.
This is currently a technical gap we are aware of and are working on enhancement. - Initialization rules only support SET operation, but not CREATE or other operations.
See Also
3327102 - Initialization Rules in Time Sheet do not work base on values from the input fields.
3582539 - MDFRecordId is missing" shows up in Time Sheet UI when recording an attendance
Keywords
initialize, init, rule, tms, ttr, tracking, employee, time, sheet, entry, employeetimesheetentry, allownce, recording, timerecording, allowancerecording, MDF-85126, 2505, cc, costcenter, type, job, info, user, ID , KBA , LOD-SF-TTR-TMS , Time Sheet , LOD-SF-EC-TMS , Time Sheet , Problem