Maintenance program for work item and/or workflow cancellation?

Mark Pyc mark_pyc at gillette.com
Thu Sep 2 04:10:46 EDT 2004


G'day Kjetil,
 
I don't believe one does exist unfortunately. At a 620 site we had to
create a reusable mass logical deletion program as one didn't exist. As you
say, it's not difficult.
 
Have fun,
Mark
 
 
 
 
                      Kjetil Kilhavn
                      <kjetilk at statoil.co         To:      SAP-WUG at MITVMA.MIT.EDU
                      m>                          cc:
                      Sent by: SAP                Subject: Maintenance program for work item and/or workflow cancellation?
                      Workflow
                      <Owner-SAP-WUG at MITV
                      MA.MIT.EDU>
 
 
                      02 Sep 2004 08:58
                      Please respond to
                      SAP Workflow Users'
                      Group
 
 
 
 
 
 
Is there a maintenance program to logically delete a selected set of work
items/workflows? (We are on version 4.6C, but if one exists in newer
versions that is also relevant (see last paragraph).)
 
I have created a new workflow (:-) to replace an old WF task which demands
too much manual maintenance for my liking. In addition the users will
benefit from improved performance - and that is something that has been
requested for a while. The new solution includes a step which checks for
already existing instances and kills any existing instances in status
ERROR. If an existing instance is found an event is created which
terminates the existing workflow. Thus the agents will be re-evaluated.
Instead of making a fancy solution which checks for the existence of
instances of both the new and old workflows I have decided to just kill all
the old ones when going live with the new version.
 
However, I will have probably between 3.000 and 5.000 workflows that needs
to be cancelled since instances of the new workflow is meant to replace
them. It is a real PITA having to do this manually even if we were only
talking about hundreds of work items. It would be great if it was an option
e.g. in SWI1 to cancel the workitems you have selected in the result set
grid, but I have no such luck. Does anyone know if there exists a program
to do this? I am aware of function module SWW_WI_ADMIN_CANCEL (that's how I
kill instances in status ERROR) - but I need the wrapper program that
performs a selection first and then runs this function for the selected set
of work items. And no, I don't want to use SWUF.
 
Creating an ad-hoc program for this is easy, but that is no fun... may as
well create a slightly fancy one which can be reused - unless a standard
solution exists in a newer version.
--
Kjetil Kilhavn
 
-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.
 


More information about the SAP-WUG mailing list