ECC 6.0 - Cancel Approved Leave Request

Cristiana D'Agosto cristiana.dagosto at au1.ibm.com
Mon May 19 20:08:47 EDT 2008


Hi John,

thanks for your reply.

The requirement is that when an employee deletes an already approved leave 
request, then he/her as well as the manager will receive an email.

That means that the leave request approval has already happened and, 
therefore, there is no wait step in the workflow.

I really thought that other people would have implemented a similar 
scenario: employee deletes an approved leave request.

If the leave request has been approved and posted, then Infotype 2001 has 
been created. 

1 - Is that ok to use BAPI_ABSENCE_DELETE to delete the Infotype 2001 that 
has been created?

2 - How to make the entry 'disappear' from the employees 'Leave Overview'? 
Should I have a step in the workflow that sets the status of the request 
to 'WITHDRAWN'?

I find hard to believe that any of these have never been done before?!!!

Can anyone help??

Much thanks and regards,

Cris
_________________________________
Cristiana d'Agosto
IBM Global Business Services
Mobile:  +61 417 927 224
cristiana.dagosto at au1.ibm.com



John A Haworth <jhoworth at csc.com> 
Sent by: sap-wug-bounces at mit.edu
19/05/2008 06:50 PM
Please respond to
"SAP Workflow Users' Group" <sap-wug at mit.edu>


To
"SAP Workflow Users' Group" <sap-wug at mit.edu>
cc

Subject
Re: ECC 6.0 - Cancel Approved Leave Request







Hi 

If the leave request is sent for approval and then cancelled before 
approval is given, i am guessing that you have a leg in the workflow that 
has a 'wait for event' task in (running in parallel to the main body of 
the workflow) so that the workflow completes if the cancel event is raised 
and the Approve request is removed from the inbox of the Approver. So 
there would be no need to send an email to the Approver. 

john

CSC Computer Sciences Limited
Registered Office: Royal Pavilion, Wellesley Road, Aldershot, Hampshire, 
GU11 1PZ, UK
Registered in England No: 0963578

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to 
any order or other contract unless pursuant to explicit written agreement 
or government initiative expressly permitting the use of e-mail for such 
purpose.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------




"Cristiana D'Agosto" <cristiana.dagosto at au1.ibm.com> 
Sent by: sap-wug-bounces at mit.edu 
19/05/2008 09:30 

Please respond to
"SAP Workflow Users' Group" <sap-wug at mit.edu>


To
"SAP Workflow Users' Group" <sap-wug at mit.edu> 
cc

Subject
ECC 6.0 - Cancel Approved Leave Request












Hi all,

we are in ECC 6.0 and the requirement is that when an employee cancel an 
approved leave request an email is to be sent to his/her manager i.e. no 
approval is required.

I linked my workflow to the relevant leave type so there are different 
workflows to be triggered when an employee submits a new leave request and 
when an employee deletes an approved leave request.

I am sure someone out there must have done something similar!

A few questions:

1 - I believe that if the leave request has been already posted, my 
workflow will need to delete the relevant Infotype 2001. Is that ok to use 
BAPI_ABSENCE_DELETE to achieve that? 

2 - If the Infotype 2001 has to be deleted, what should happen to the 
relevant entry in the table PTREQ_HEADER? Should I change the status of 
the relevant entry to be what? WITHDRAWN? I noticed that the PTREQ_HEADER 
has now the status SENT (because a workflow was triggered).

3 - I also noticed that in PTARQ my deleted entry has operation set to DEL 
- does that mean that if I set the status of the entry to WITHDRAWN (or 
something else), when i hit the Post Documents the infotype 2001 will be 
automatically deleted??

Thanks in advance for any hints/tips/advice you can provide!

Cheers 





Cristiana 

PS> I have already posted the same question in SDN
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20080520/a7e7693b/attachment.htm


More information about the SAP-WUG mailing list