<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV></DIV>
<DIV>Brenda,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Deleting workitems or not is a business decision.</DIV>
<DIV>If you wish to logically delete&nbsp;these workitems you can user SAP_WAPI_SET_WORKITEM_STATUS with status CANCELLED. Afterwards you can archive these workitems.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Good luck,</DIV>
<DIV><BR>&nbsp;</DIV>
<P><FONT face="verdana, helvetica, sans-serif" color=#00007f size=2><STRONG>Regards,<BR>Shai Eyal</STRONG></FONT></P>
<P><FONT face=Verdana color=#000080 size=2><STRONG>SAP Logistics senior consultant<BR>SAP Workflow specialist</STRONG></FONT></P>
<P><FONT face=Verdana color=#000080 size=2><STRONG><A href="http://www.linkedin.com/in/shaieyal" target=_blank rel=nofollow>http://www.linkedin.com/in/shaieyal</A><BR>Mobile: 972-52-5816633</STRONG></FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: verdana, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> "sap-wug-request@mit.edu" &lt;sap-wug-request@mit.edu&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> sap-wug@mit.edu<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, March 27, 2009 9:34:19<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> SAP-WUG Digest, Vol 52, Issue 60<BR></FONT><BR>Send SAP-WUG mailing list submissions to<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR>&nbsp;&nbsp;&nbsp; <A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>or, via email, send a message with subject or body 'help' to<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug-request@mit.edu" ymailto="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</A><BR><BR>You can reach the person managing
 the list at<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug-owner@mit.edu" ymailto="mailto:sap-wug-owner@mit.edu">sap-wug-owner@mit.edu</A><BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of SAP-WUG digest..."<BR><BR><BR>Today's Topics:<BR><BR>&nbsp; 1. Background job to logically delete work items<BR>&nbsp; &nbsp; &nbsp; (Brenda Raubenheimer)<BR>&nbsp; 2. RE: [LIKELY JUNK]Background job to logically delete work<BR>&nbsp; &nbsp; &nbsp; items (Dart, Jocelyn)<BR>&nbsp; 3. Re: Background job to logically delete work items<BR>&nbsp; &nbsp; &nbsp; (<A href="mailto:muralitharan.c@tcs.com" ymailto="mailto:muralitharan.c@tcs.com">muralitharan.c@tcs.com</A>)<BR>&nbsp; 4. Re: Background job to logically delete work items (shaurya jain)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Fri, 27 Mar 2009 08:01:45 +0200<BR>From: "Brenda Raubenheimer" &lt;<A
 href="mailto:braubenheimer@telkomsa.net" ymailto="mailto:braubenheimer@telkomsa.net">braubenheimer@telkomsa.net</A>&gt;<BR>Subject: Background job to logically delete work items<BR>To: &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID: &lt;004401c9aea1$844f3180$8ced9480$@net&gt;<BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>My new client has a large number of workflow instances active on the system<BR>and many users have inboxes full of work items.&nbsp; The majority of these are<BR>highly customised purchase requisition release and purchase order release<BR>workflows.&nbsp; For some reason, these workflows were not designed with wait for<BR>event steps to trap the event when the requisition or order is released or<BR>significantly changed, so the users have performed the necessary steps<BR>outside workflow and the workflows have not been terminated correctly.&nbsp; We<BR>now need to
 remove these work items from the inboxes of these users, but<BR>obviously a manual trawl through all the workflows is not a preferred<BR>option.&nbsp; Is there a function module or BAPI which I can use to logically<BR>delete a workflow instance in the background from a batch program?<BR><BR><BR><BR>Many thanks in advance,<BR><BR>Brenda Raubenheimer.<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20090327/7faa676c/attachment-0001.htm" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20090327/7faa676c/attachment-0001.htm</A><BR><BR>------------------------------<BR></DIV></DIV></div><br>
      <hr size=1> <a href="http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/"> New Email addresses available on Yahoo! </a> <br>
Get the Email name you&#39;ve always wanted on the new @ymail and @rocketmail.<br>
Hurry before someone else does!</body></html>