<br><font size=2 face="sans-serif">Hi John,</font>
<br>
<br><font size=2 face="sans-serif">thanks for your reply.</font>
<br>
<br><font size=2 face="sans-serif">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.</font>
<br>
<br><font size=2 face="sans-serif">That means that the leave request approval
has already happened and, therefore, there is no wait step in the workflow.</font>
<br>
<br><font size=2 face="sans-serif">I really thought that other people would
have implemented a similar scenario: employee deletes an approved leave
request.</font>
<br>
<br><font size=2 face="sans-serif">If the leave request has been approved
and posted, then Infotype 2001 has been created. </font>
<br>
<br><font size=2 face="sans-serif">1 - Is that ok to use </font><font size=2 face="Arial">BAPI_ABSENCE_DELETE
</font><font size=2 face="sans-serif">to delete the Infotype 2001 that
has been created?</font>
<br>
<br><font size=2 face="sans-serif">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'?</font>
<br>
<br><font size=2 face="sans-serif">I find hard to believe that any of these
have never been done before?!!!</font>
<br>
<br><font size=2 face="sans-serif">Can anyone help??</font>
<br>
<br><font size=2 face="sans-serif">Much thanks and regards,<br>
<br>
Cris<br>
_________________________________<br>
Cristiana d'Agosto<br>
IBM Global Business Services<br>
Mobile: &nbsp;+61 417 927 224<br>
cristiana.dagosto@au1.ibm.com</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>John A Haworth &lt;jhoworth@csc.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: sap-wug-bounces@mit.edu</font>
<p><font size=1 face="sans-serif">19/05/2008 06:50 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
&quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">&quot;SAP Workflow Users' Group&quot;
&lt;sap-wug@mit.edu&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: ECC 6.0 - Cancel Approved Leave
Request</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Hi</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
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.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
john<br>
<br>
CSC Computer Sciences Limited<br>
Registered Office: Royal Pavilion, Wellesley Road, Aldershot, Hampshire,
GU11 1PZ, UK<br>
Registered in England No: 0963578<br>
<br>
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
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. <br>
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.<br>
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------</font><font size=3><br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=51%><font size=1 face="sans-serif"><b>&quot;Cristiana D'Agosto&quot;
&lt;cristiana.dagosto@au1.ibm.com&gt;</b> <br>
Sent by: sap-wug-bounces@mit.edu</font><font size=3> </font>
<p><font size=1 face="sans-serif">19/05/2008 09:30</font><font size=3>
</font>
<br>
<table border=4 width=100%>
<tr valign=top>
<td width=100% bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
&quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;</font></div></table>
<p>
<td width=48%>
<table width=100%>
<tr valign=top>
<td width=13%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=86%><font size=1 face="sans-serif">&quot;SAP Workflow Users'
Group&quot; &lt;sap-wug@mit.edu&gt;</font><font size=3> </font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">ECC 6.0 - Cancel Approved Leave Request</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=50%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=100% bgcolor=white>
<br>
<table border=4 width=100%>
<tr valign=top>
<td width=100% bgcolor=white>
<br>
<table width=100%>
<tr>
<td colspan=4 bgcolor=white><font size=2 face="Arial">Hi all,<br>
<br>
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.<br>
<br>
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.<br>
<br>
I am sure someone out there must have done something similar!<br>
<br>
A few questions:<br>
<br>
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? <br>
<br>
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).<br>
<br>
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??<br>
<br>
Thanks in advance for any hints/tips/advice you can provide!<br>
<br>
Cheers</font><font size=3> </font></table>
<br></table>
<br></table>
<br><font size=2 face="sans-serif"><br>
<br>
<br>
Cristiana</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
PS&gt; I have already posted the same question in SDN</font><font size=2 face="Arial">_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug</font><font size=3><br>
</font><font size=2 face="Arial">_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
</font>
<br>