Symptom
It is required to know who recieves a notification on submission and withdrawal of timesheet?
Environment
SAP SuccessFactors Employee Central – Time Sheet
Reproducing the Issue
Maintain a single step workflow configuration with manager as an approver (for this example).
- Login as employee and submit timesheet > manager gets notification that workflow is submitted for approval.
- Login as employee and withdraw timsheet > this triggers notification of timesheet cancellation to manager as well as employee.
Cause
If the time sheet gets withdrawn from the time sheet UI, product cancels the workflow from the backend side. This means that the workflow itself does not know that the cancellation was due to the user's manual action. Therefore, a notification is sent to all persons involved. (The same behavior is seen if an admin cancels the workflow).
- This is a technical limitation caused by a trade off, as the product is designed to have a 'loose' coupling between the time sheet and the workflow.
- This allows us to show the time sheet in the UI and have a workflow in parallel.
- In a 'strict' coupling, the workflow would handle the time sheet and it would not be available until the workflow has been approved or cancelled.
Resolution
- Notifications are sent to the people who are not involved in that specific action, but are required to know about that action. So, the employee won't get a notification when timesheet is submitted, as they initiated the submission. However, on withdrawal, it won't happen, owing to above limitation.
- This is the expected system behavior. Currently it is not possible to send workflow email notification to those people only who do not know about cancellation.
Keywords
Time sheet, withdrawal, workflow, timesheet, cancellation, notification, limitation, email , KBA , LOD-SF-EC-TMS , Time Sheet , Problem