Delete all Workflow Information for Object

Schroeter, Brad BSchroeter at ti.com
Wed Dec 12 16:45:18 EST 2001


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...
 
Thanks,
Brad
 
-----Original Message-----
From: Becker Stephan (extern) [mailto:Stephan.Becker.ext at mchw.siemens.de]
Sent: Thursday, December 06, 2001 2:14 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Delete all Workflow Information for Object
 
 
 
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.
Stephan
 
-----Original Message-----
From: Pollard, Bruce [mailto:bruce.pollard at sap.com]
Sent: Wednesday, December 05, 2001 11:44 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Delete all Workflow Information for Object
 
 
Brad,
 
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.
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.
 
Bruce Pollard,
SAP Business Integration Technology Instructor
ALE, EDI, Workflow, Data Archiving
 
 -----Original Message-----
From: Schroeter, Brad [mailto:BSchroeter at ti.com]
Sent: Wednesday, December 05, 2001 4:20 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Delete all Workflow Information for Object
 
 
 
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.
 
Thanks,
Brad
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20011212/dd3eed4a/attachment.htm


More information about the SAP-WUG mailing list