<!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 5.50.4616.200" name=GENERATOR></HEAD>
<BODY>
<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>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=312523522-05122001>SAP
Best practices is to ARCHIVE workitems instead of a DELETION.&nbsp;&nbsp;
Archiving Workitems&nbsp;does actually delete them from all applicable tables
(header, item,&nbsp;agents, etc) but it&nbsp;is a safe&nbsp;and efficient way of
managing&nbsp;workitems in your system.&nbsp;&nbsp; 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&nbsp;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>&nbsp;&nbsp; Transaction
"SARA" - Data Archiving can be found under the menu path Tools / Business
Workflow / Administration / Workflow Runtime / Re-organization / SARA.&nbsp; The
Archiving object is "WORKITEM" (F4 search shows the entire list).&nbsp; 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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=312523522-05122001>&nbsp;</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.&nbsp; 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.&nbsp; After the workflow
information is deleted, the actual object is going to be deleted.&nbsp; 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).&nbsp; We're on 4.0B.</FONT></P>
<P><FONT face=Arial size=2>Thanks,</FONT> <BR><FONT face=Arial
size=2>Brad</FONT> </P></BODY></HTML>