<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>Hi Glauco, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>SERIOUSLY this is the ***WRONG**** approach to your
scenario. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>If you need the work item to be cancelled when something
happens outside of workflow you should use a terminating</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>event - not just delete the work item or workflow.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>You can set the terminating event on the work item itself,
in a parallel fork in the workflow or in the </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>basic data (i.e. header) of the workflow itself depending
on how much you need to bypass. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>BUT!!!!!! the point is if you use a terminating event, the
workflow log automatically records *how* the workflow was closed,
*who* closed it, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>and the workflow itself can still take subsequent actions
if you need to such as sending notifications out regardless of whether the task
was </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>completed via the work item or externally.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>As an added bonus, once you have set up the event you can
then use terminate/start other workflows should your business process change in
the future. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>When you just delete the work item you just lose
everything! Not generally something auditors are happy about
either....</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=908412222-02022006><FONT face=Arial
color=#0000ff size=2>Strongly suggest you rethink your design.
</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Arial size=1>Regards,</FONT></SPAN> <BR><SPAN
lang=en-us><B><FONT face=Arial color=#000080 size=1>Jocelyn
Dart</FONT></B></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080
size=1>Senior Consultant</FONT></SPAN> <BR><SPAN lang=en-us><B><FONT face=Arial
color=#808080 size=1>SAP Australia Pty Ltd.</FONT></B></SPAN> <BR><SPAN
lang=en-us><FONT face=Arial color=#808080 size=1>Level 1/168 Walker
St.</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080
size=1>North Sydney </FONT></SPAN><BR><SPAN lang=en-us><FONT face=Arial
color=#808080 size=1>NSW, 2060</FONT></SPAN> <BR><SPAN lang=en-us><FONT
face=Arial color=#808080 size=1>Australia</FONT></SPAN> <BR><SPAN
lang=en-us><FONT face=Arial color=#808080 size=1>T +61 412 390
267</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080
size=1>M + 61 412 390 267</FONT></SPAN> <BR><SPAN lang=en-us><FONT
face=Arial color=#808080 size=1>E jocelyn.dart@sap.com</FONT></SPAN>
<BR><SPAN lang=en-us><FONT face=Arial color=#808080 size=1><A
href="http://www.sap.com/">http://www.sap.com</A></FONT></SPAN> </P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>The
information contained in or attached to this electronic transmission is
confidential and may be legally privileged. It is intended only for the person
or entity to which it is addressed. If you are not the intended recipient, you
are hereby notified that any distribution, copying, review, retransmission,
dissemination or other use of this electronic transmission or the information
contained in it is strictly prohibited. If you have received this electronic
transmission in error, please immediately contact the sender to arrange for the
return of the original documents. </FONT></SPAN></P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>Electronic
transmission cannot be guaranteed to be secure and accordingly, the sender does
not accept liability for any such data corruption, interception, unauthorized
amendment, viruses, delays or the consequences thereof.</FONT></SPAN></P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>Any views
expressed in this electronic transmission are those of the individual sender,
except where the message states otherwise and the sender is authorized to state
them to be the views of SAP AG or any of its subsidiaries. SAP AG, its
subsidiaries, and their directors, officers and employees make no representation
nor accept any liability for the accuracy or completeness of the views or
information contained herein. Please be aware that the furnishing of any pricing
information/ business proposal herein is indicative only, is subject to change
and shall not be construed as an offer or as constituting a binding agreement on
the part of SAP AG or any of its subsidiaries to enter into any relationship,
unless otherwise expressly stated. </FONT></SPAN></P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Glauco
Kubrusly<BR><B>Sent:</B> Friday, 03 February 2006 6:49 AM<BR><B>To:</B> SAP
Workflow Users' Group<BR><B>Subject:</B> Re: How to delete a work item by ABAP
?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Thanks <STRONG><EM>Jeffrey, </EM></STRONG></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff></FONT> </DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff>I've tested and the
function SWP_WORKFLOW_INSTANCE_DELETE worked right but it eliminate all the
wf instance.</FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff></FONT> </DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff>I saw in another forum and a
friend said me to use the SWWL transaction and I think it worked properly.
I've created a SWWL's SHDB to do that and I think it solves my
problem.</FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff></FONT> </DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff>tanks a lot!</FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff>Glauco</FONT></DIV>
<DIV><BR><BR><B><I>Jeffrey Rappaport <Jeff@business-workflow.com></I></B>
escreveu:</DIV>
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2>Glauco,</FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2>
Depending on what you mean by 'Delete' & what version you're on,
try:</FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff
size=2>SAP_WAPI_WORKITEM_DELETE, </FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff
size=2>SAP_WAPI_ADM_WORKFLOW_CANCEL, </FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff
size=2>SWP_WORKFLOW_INSTANCE_DELETE, </FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff
size=2>SWP_WORKFLOW_INSTANCE_CANCEL,</FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff
size=2>SWP_WORKFLOW_ITEM_CANCEL.</FONT></DIV>
<DIV><BR>Jeffrey A. Rappaport<BR>Business Workflow, LLC<BR>Voice: (732)
355-0123<BR>Fax: (509) 757-4144<BR>Email: <A
href="mailto:Jeff@Business-Workflow.com">Jeff@Business-Workflow.com</A><BR>Web:
<A
href="http://www.business-workflow.com/">www.Business-Workflow.com</A></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=glaucokubrusly@yahoo.com.br
href="mailto:glaucokubrusly@yahoo.com.br">Glauco Kubrusly</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=sap-wug@mit.edu
href="mailto:sap-wug@mit.edu">Process Control Step</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, February 02, 2006 11:16
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subj! ect:</B> How to delete a work item by
ABAP ?</DIV>
<DIV><BR></DIV>
<DIV id=RTEContent>Hi Friends,<BR><BR>I want to delete a work item by abap
program, because the user can execute some actions by calling the
transaction without execute its work item.<BR><BR>I think it can be possible
by exit.<BR><BR>Is it really possible ?<BR><BR>Glauco<BR>MSN: <A
href="mailto:glaucokubrusly@hotmail.com">glaucokubrusly@hotmail.com</A></DIV>
<DIV>
<HR SIZE=1>
Yahoo! doce lar. <A
href="http://us.rd.yahoo.com/mail/br/tagline/homepage_set/*http://br.yahoo.com/homepageset.html">Faça
do Yahoo! sua homepage.</A>
<DIV>
<HR>
<DIV></DIV>_______________________________________________<BR>SAP-WUG
mailing
list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></DIV></DIV></BLOCKQUOTE>_______________________________________________<BR>SAP-WUG
mailing
list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE>
<DIV><BR></DIV>
<P>
<HR SIZE=1>
Yahoo! doce lar. <A
href="http://us.rd.yahoo.com/mail/br/tagline/homepage_set/*http://br.yahoo.com/homepageset.html">Faça
do Yahoo! sua homepage.</A></BODY></HTML>