<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Delete all Workflow Information for Object</TITLE>
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=245442515-14122001><FONT face=Arial color=#0000ff
size=2>Brad,</FONT></SPAN></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT
size=2>SWP_WORKFLOW_INSTANCE_CANCEL<SPAN class=245442515-14122001> and
SWP_WORKFLOW_ITEM_CANCEL should do the job.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=245442515-14122001></SPAN></FONT></FONT></FONT><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN
class=245442515-14122001>Stephan</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Schroeter, Brad
[mailto:BSchroeter@ti.com]<BR><B>Sent:</B> Wednesday, December 12, 2001 10:45
PM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Re: Delete all
Workflow Information for Object<BR><BR></FONT></DIV>
<DIV><SPAN class=220140721-12122001><FONT face=Arial size=2>So does anyone
know of a function module which will cancel a higher level workflow work
item (work item type = F) and cancel all of the lower level work items
underneath it in one fatal (hopefully not) swoop? The workflow
information so far for the object and the actual object itself can stay (this
one was a user error from the start which I'll prevent in the
future). I just don't want to leave work items stuck in process out
there indefinitely - I want workflow to stop where it is and force its
completion without any further processing. Any help is
appreciated...</FONT></SPAN></DIV>
<DIV><SPAN class=220140721-12122001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=220140721-12122001><FONT face=Arial
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=220140721-12122001><FONT face=Arial
size=2>Brad</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Becker Stephan (extern)
[mailto:Stephan.Becker.ext@mchw.siemens.de]<BR><B>Sent:</B> Thursday,
December 06, 2001 2:14 AM<BR><B>To:</B>
SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Re: Delete all Workflow
Information for Object<BR><BR></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=019521208-06122001><FONT face=Arial color=#0000ff size=2>In
addition to Bruce's contribution, make sure you create a new archive file
for the run, and then you can just delete the archive file from the server
and the information is gone for good.</FONT></SPAN></DIV>
<DIV><SPAN class=019521208-06122001><FONT face=Arial color=#0000ff
size=2>Stephan</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Pollard, Bruce
[mailto:bruce.pollard@sap.com]<BR><B>Sent:</B> Wednesday, December 05,
2001 11:44 PM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Re:
Delete all Workflow Information for Object<BR><BR></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=312523522-05122001>Brad,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=312523522-05122001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=312523522-05122001>SAP Best practices is to ARCHIVE workitems
instead of a DELETION. Archiving Workitems does actually
delete them from all applicable tables (header, item, agents, etc)
but it is a safe and efficient way of managing workitems in
your system. If you delete them direct with Trans SWWL or with
the Function Modules that gets called, you may end up with a situation
like your current one, where part of the information is still
around.</SPAN></FONT><FONT face=Tahoma><FONT size=2><SPAN
class=312523522-05122001><FONT face=Arial color=#0000ff>
Transaction "SARA" - Data Archiving can be found under the menu path Tools
/ Business Workflow / Administration / Workflow Runtime / Re-organization
/ SARA. The Archiving object is "WORKITEM" (F4 search shows the
entire list). If you are not comfortable with archiving, you may
find some documentation in SAP's Web repository or a number of formal
archive training avenues are available.</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=312523522-05122001></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=312523522-05122001>Bruce Pollard,</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=312523522-05122001>SAP Business Integration Technology
Instructor</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=312523522-05122001>ALE, EDI, Workflow, Data
Archiving</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=312523522-05122001></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=312523522-05122001> </SPAN>-----Original
Message-----<BR><B>From:</B> Schroeter, Brad
[mailto:BSchroeter@ti.com]<BR><B>Sent:</B> Wednesday, December 05, 2001
4:20 PM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Delete all
Workflow Information for Object<BR><BR></DIV></FONT></FONT>
<P><FONT face=Arial size=2>I've got an object which has 3 workflows
associated with it: the first 2 have completed and the last one is in
process. What is the easiest way to delete all workflow information
associated with this object (i.e. work items, etc.) so that nobody would
be able to tell the object was ever processed by Workflow in the first
place. After the workflow information is deleted, the actual object
is going to be deleted. I tried function module
SWP_WORKFLOW_INSTANCE_DELETE - this deleted all of the work items under
the 3 higher level work items, but the 3 higher level work items actually
still exist in the system (they're in SWWWIHEAD while the others
aren't). We're on 4.0B.</FONT></P>
<P><FONT face=Arial size=2>Thanks,</FONT> <BR><FONT face=Arial
size=2>Brad</FONT> </P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>