<!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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</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&nbsp;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?&nbsp; 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).&nbsp;&nbsp;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.&nbsp; Any help is
  appreciated...</FONT></SPAN></DIV>
  <DIV><SPAN class=220140721-12122001><FONT face=Arial
  size=2></FONT></SPAN>&nbsp;</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>&nbsp;</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>&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></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>