a. Cancellation of a Leave in 'SENT' status:
When an user requests a leave (with workflow), it starts the workflow
and an workitem is created in the approver's inbox for approval. Now if
the user cancels the leave before the approver could approve/reject,
the workitem will be completed and the workitem will be removed from the
approver's inbox. The new status of the document will be 'WITHDRAWN'. In
this case no new workflow will not be triggered on cancellation.
b. Cancellation of a Leave in 'APPROVED/REJECTED' status:
When the approver approves/rejects the leave request, the workitem will
get completed and the workitem will be removed from the approver's
inbox. Now if the user cancels the leave request, workflow will not be
triggered. This is because, as per the standard behavior is concerned,
cancellation of a leave which is 'APPROVED' (not yet posted) doesn't
require manager's approval hence no new workitem will be created.
d. Cancellation of a Leave in 'POSTED' status: Only the approved
requests are posted to the infotype 2001. When an user cancels a posted
leave request, it creates a DEL item. Creation of a DEL item triggers
the workflow and a new workitem is created in the approver's inbox. Upon
the approval of the workitem, the record is removed from the infotype on
the next run of the posting report (RPTARQPOST).
Please check the table PTREQ_STATUS_TRA for statuses which explains
and if you need more information let us know