Symptom
This KBA explains how to trigger business rule for the time sheet entry based on time record origin.
Environment
- SAP SuccessFactors Employee Central - Time Sheet
- SAP SuccessFactors Time Tracking
Resolution
It's a common requirement to trigger different business rules based on the origin of time sheet entry, for example, validate entry or trigger workflow for manual entry and not for imported one.
For the legacy weekly time sheet, please make use of the field "Time Record Origin" of object Employee Time or the External Time Code field of object Employee Time Sheet Entry.
- For manual created time sheet entry,
- Employee Time field "Time Record Origin" is null
- Employee Time Sheet Entry field "External Time Code" is null.
- For time sheet entry generated via External Time Data,
- Employee Time field "Time Record Origin" = Time Sheet Import
- Employee Time Sheet Entry field "External Time Code" = External code of the External Time Data
For the flexible approval period time sheet, please make use of the field "Time Record Origin" or "External Time Code" of object Time Recording.
- For manual created time sheet entry,
- Time Recording field "Time Record Origin" is null
- Time Recording field "External Time Code" is null.
- For time sheet entry generated via External Time Data
- Time Recording field "Time Record Origin" = Time Sheet Import
- Time Recording field "External Time Code" = External code of the External Time Data
Sample Rule:
- Trigger validate rule for the time sheet entry created manually by the employee only.
Legacy data model
New data model - Do not trigger workflow for the Single Record Approval imported via External Time Data.
Note: When time sheet entry generated via External Time Data, the login user is v4admin.
For the legacy data model, please make use of object "Attendance Request".
For the new data model, please make use of object "Time Recording".
Note: If the requirement is to trigger business rule when the data is imported via the csv. file, the field "Rule Context.Enable on import" could be used.
Please note it's always recommended to import time sheet entry via External Time Data.
See Also
- SAP Help Portal Documentation: Time Recording
- SAP Help Portal Documentation: Employee Time
- SAP Help Portal Documentation: Employee Time Sheet
- KBA 2471088 - How to identify whether the time recording was created manually or generated by system or imported, and how to find the external code of the External Time Data if it is imported ?
- KBA 3622356 - How to Override the Single Record Approval Workflow for an Attendance Time Type
Keywords
external time data, timesheet import entry, time recording business rule, time record origin, validation rule, raise message, time sheet import, tms, ttr, employee central time sheet, time sheet workflow, single record approval, sra , KBA , LOD-SF-EC-TMS , Time Sheet , LOD-SF-TTR-TMS , Time Sheet , How To
SAP Knowledge Base Article - Public