<div dir="ltr">Hi Margaret:<div><br></div><div><div>- find the workitems you want to delete in SWIA</div><div>- select all workitems using Ctrl or Shift</div><div>- Edit &gt; Work Item &gt; Logically Delete</div><div>- Refresh</div></div><div><br></div><div>regards</div><div>Rick</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 23, 2014 at 9:17 PM, Margaret Jaco <span dir="ltr">&lt;<a href="mailto:Margaret.Jaco@staples.com.au" target="_blank">Margaret.Jaco@staples.com.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-AU" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">The Extended Notification Job at our site has ground to a halt, no memory etc. This is probably because there are just too many workitems still active that have never been archived. Recently we have started
 running program <b>RSWNNOTIFDEL </b>and this is doing a marvellous job  of tidying up the SWN_NOTIF table. The problem is that for far too long we have had these ‘task only’ workflows starting for IDOCS.  There are a few million entries for these items that
 are without agents and have never been completed. The linkage on these has now been successfully deactivated so there are no new ones being triggered. The problem seems to be all the old entries.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I would like to do a bulk cancel of the old ‘task only’ workflows.  I have thought of having an ABAP program that uses function module SAP_WAPI_ADM_WORKFLOW_CANCEL to cancel them and then let the archiving
 process and <b>RSWNNOTIFDEL </b>do the rest of the work<b>.<u></u><u></u></b></span></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt"><u></u> <u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I have implemented note 1897379 to add the three new entries to the SWNCONFIG and set WORKITEM_VALID_FOR_NOTIF(DAYS) but it still seems to have had no effect. I had thought that this would select less items.<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt"><u></u> <u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Is using an ABAP program and the workitem cancel function a good way to tackle this issue or is there another way out?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Any suggestions would be appreciated.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Margaret Jaco.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
</div>
<br><br>
<p class="MsoNormal"><a href="http://www.staplesadvantage.com.au/" target="_blank"><img border="0" src="http://logo.staples.com.au/Staples-Logo.jpg"></a><br><br><font color="#000000" face="arial;" align="justify"><small>The information contained in this email and any attached files are strictly private and confidential. This email should be read only by the intended addressee only. If the recipient of this message is not the intended addressee, please call Staples Australia Pty Limited on <a href="tel:%2B61%202%209335%200555" value="+61293350555" target="_blank">+61 2 9335 0555</a> or Staples New Zealand Limited on <a href="tel:%2B64%209%20271%207600" value="+6492717600" target="_blank">+64 9 271 7600</a> and promptly delete this email and any attachments. The intended recipient of this email may only use, reproduce, disclose or distribute the information contained in this email and any attached files with the prior written permission of StaplesTM. If you are not the intended addressee, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email and any attached files. StaplesTM advises that this email and any attached files should be scanned to detect viruses. StaplesTM accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files.</small></font></p>
</div>

<br>_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
<br></blockquote></div><br></div>