<div>Mike,</div>  <div>Thnak you, Will follow your direction. My major problem is to obtain the proper authorization first...</div>  <div>&nbsp;</div>  <div>I'll create a transaction with a Z Program which calles the SAP_WAPI_ADM_WORKFLOW_CANCEL function module &nbsp;and transport it to Production to cancel&nbsp;those workitems. In the mean time will&nbsp;also set&nbsp;up the terminate event for the task.&nbsp;Hope this will cover both Past &amp; Future problems... </div>  <div>&nbsp;</div>  <div>Love&nbsp;this SAP-WUG...</div>  <div>&nbsp;</div>  <div>Jimmy&nbsp;<BR><BR><B><I>Mike Pokraka &lt;asap@workflowconnections.com&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <META content="Microsoft Word 12 (filtered medium)" name=Generator>  <STYLE>  v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);} 
 </STYLE>    <STYLE>  <!--   /* Font Definitions */   @font-face   {font-family:"Cambria Math";   panose-1:2 4 5 3 5 4 6 3 2 4;}  @font-face   {font-family:Calibri;   panose-1:2 15 5 2 2 2 4 3 2 4;}  @font-face   {font-family:Tahoma;   panose-1:2 11 6 4 3 5 4 4 2 4;}   /* Style Definitions */   p.MsoNormal, li.MsoNormal, div.MsoNormal   {margin:0in;   margin-bottom:.0001pt;   font-size:12.0pt;   font-family:"Times New Roman","serif";}  a:link, span.MsoHyperlink   {mso-style-priority:99;   color:blue;   text-decoration:underline;}  a:visited, span.MsoHyperlinkFollowed   {mso-style-priority:99;   color:purple;   text-decoration:underline;}  p   {mso-style-priority:99;   mso-margin-top-alt:auto;   margin-right:0in;   mso-margin-bottom-alt:auto;   margin-left:0in;   font-size:12.0pt;   font-family:"Times New Roman","serif";}  span.EmailStyle18   {mso-style-type:personal;   font-family:"Calibri","sans-serif";   color:#1F497D;}  span.EmailStyle19   {mso-style-type:personal-reply;
   font-family:"Calibri","sans-serif";   color:#1F497D;}  .MsoChpDefault   {mso-style-type:export-only;}  @page Section1   {size:8.5in 11.0in;   margin:1.0in 1.0in 1.0in 1.0in;}  div.Section1   {page:Section1;}  -->  </STYLE>    <DIV class=Section1>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hi Jimmy,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Depends on how many the are. For a few hundred, it’s probably quicker to go in using SWIA and deleting them by hand.<o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">If you’re talking about thousands, then I’d suggest a custom report that calls SAP_WAPI_ADM_ WORKFLOW_CANCEL for each top-level item (WS9... if it’s a
 workflow).<o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Cheers,<o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Mike<o:p></o:p></SPAN></div>  <div class=MsoNormal><A name=_MailEndCompose><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></A></div>  <div class=MsoNormal><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>jimmy sun<BR><B>Sent:</B> 27 January 2008 17:44<BR><B>To:</B> SAP Workflow Users' Group<BR><B>Subject:</B> RE: How to delete
 Orphaned Workflow after IDOC processed outsideWorkflow?<o:p></o:p></SPAN></div>  <div class=MsoNormal><o:p>&nbsp;</o:p></div>  <DIV>  <div class=MsoNormal>Thnak you both Sherie and Mike.<o:p></o:p></div></DIV>  <DIV>  <div class=MsoNormal>Will work on the changes, so the problem will not occur again in the future. In the mean time I am still open to any suggestion to delete those over hanging workitems from as far back as 2004.<o:p></o:p></div></DIV>  <DIV>  <div class=MsoNormal>&nbsp;<o:p></o:p></div></DIV>  <DIV>  <div class=MsoNormal>Many thanks,<o:p></o:p></div></DIV>  <DIV>  <div class=MsoNormal>Jimmy<BR><BR><B><I>Mike Pokraka &lt;asap@workflowconnections.com&gt;</I></B> wrote:<o:p></o:p></div></DIV>  <BLOCKQUOTE style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; MARGIN-TOP: 5pt; PADDING-LEFT: 4pt; MARGIN-BOTTOM: 5pt; PADDING-BOTTOM: 0in; MARGIN-LEFT: 3.75pt; BORDER-LEFT: #1010ff 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none"> 
 <DIV>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hi Jimmy, <o:p></o:p></SPAN></div></DIV>  <DIV>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></div></DIV>  <DIV>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">This is correct, SWWL is for clearing junk from your dev/test systems and should not be used in PRD. <o:p></o:p></SPAN></div></DIV>  <DIV>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></div></DIV>  <DIV>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Your problem is with the custom program you mentioned. It needs to raise an event to communicate the status change to WF to complete/cancel it. <o:p></o:p></SPAN></div></DIV>  <DIV>
  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></div></DIV>  <DIV>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Cheers, <o:p></o:p></SPAN></div></DIV>  <DIV>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Mike<o:p></o:p></SPAN></div></DIV>  <DIV>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></div></DIV>  <DIV>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></div></DIV>  <DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">  <DIV>  <DIV style="BORDER-RIGHT: medium none;
 PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">  <DIV>  <div class=MsoNormal><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>jimmy sun<BR><B>Sent:</B> 22 January 2008 15:21<BR><B>To:</B> SAP Workflow Users' Group<BR><B>Subject:</B> RE: How to delete Orphaned Workflow after IDOC processed outsideWorkflow?<o:p></o:p></SPAN></div></DIV></DIV></DIV>  <DIV>  <div class=MsoNormal><o:p>&nbsp;</o:p></div></DIV>  <DIV>  <DIV>  <div class=MsoNormal>Sherie,<o:p></o:p></div></DIV></DIV>  <DIV>  <DIV>  <div class=MsoNormal>Thank you very much. I understand what you are saying here, but again, I don't have authorization to SWO1 either. <o:p></o:p></div></DIV></DIV>  <DIV>  <DIV>  <div
 class=MsoNormal>&nbsp;<o:p></o:p></div></DIV></DIV>  <DIV>  <DIV>  <div class=MsoNormal>The project I am working on is very tight&nbsp;with Security. When I ask for SWWL, the response is SAP '<SPAN style="FONT-SIZE: 10pt; COLOR: blue">According to SAP, transaction SWWL should not be used in a Production environment to delete work items.'.&nbsp; </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black">I'd expect the same from SWO1, but will&nbsp;try it any way.&nbsp;</SPAN><o:p></o:p></div></DIV></DIV>  <DIV>  <DIV>  <div class=MsoNormal>&nbsp;<o:p></o:p></div></DIV></DIV>  <DIV>  <DIV>  <div class=MsoNormal>The system is ECC 6.0. If&nbsp; anyone else have other solution, please let me know. <o:p></o:p></div></DIV></DIV>  <DIV>  <DIV>  <div class=MsoNormal>&nbsp;<o:p></o:p></div></DIV></DIV>  <DIV>  <DIV>  <div class=MsoNormal>Jimmy<o:p></o:p></div></DIV></DIV>  <DIV>  <DIV>  <div class=MsoNormal><BR><B><I>"Munday,Sherie J." &lt;MUNDAYSJ@airproducts.com&gt;</I></B>
 wrote:<o:p></o:p></div></DIV></DIV>  <BLOCKQUOTE style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; MARGIN-TOP: 5pt; PADDING-LEFT: 4pt; MARGIN-BOTTOM: 5pt; PADDING-BOTTOM: 0in; MARGIN-LEFT: 3.75pt; BORDER-LEFT: #1010ff 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">  <DIV>  <div class=MsoNormal>Jimmy,<BR>Try this..SWO1 on the object FLOWITEM... "test" and instantiate with the work item number, then run the method "change status" to change the item to "Cancelled" (logically deleted). We use this quite often.<BR><BR>Also you might want to use the correction of the IDOC as an alternate to cancelling the workflow in the design and avoid this problem in the future. Just a thought.<BR><BR>Best Wishes,<BR>Sherie<BR><BR>Sherie Munday<BR>Workflow Developer/ Analyst <BR>Air Products &amp; Chemicals, Inc.<BR><BR>________________________________<BR><BR>From: sap-wug-bounces@mit.edu on behalf of jimmy sun<BR>Sent: Mon 1/21/2008 7:19 PM<BR>To: SAP
 Workflow Users' Group<BR>Subject: Re: How to delete Orphaned Workflow after IDOC processed outsideWorkflow?<BR><BR><BR>Sheldon,<BR>Thank you for the response. I tried that. As I stated, the IDoc already processed with status 53. 'Logically Delete' is not an option. 'Set to 'Done'' is grayed out.<BR><BR>Found transaction SWWL which looks like will do the trick, but not authorized. <BR><BR>Posted this message, just want to see if there is any other way.<BR><BR>Jimmy<BR><BR>Sheldon Oxenberg wrote:<BR><BR>Try setting the Menu Option "View with Technical Details", then try using<BR>the Menu Option - Edit &gt; Change.<BR><BR>Regards,<BR>Sheldon C. Oxenberg<BR><BR>Computer Sciences Corporation<BR>Registered Office: 2100 East Grand Avenue, El Segundo California 90245, USA<BR>Registered in USA No:
 C-489-59<BR><BR>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<BR><BR>This is a PRIVATE message. If you are not the intended recipient, please<BR>delete without copying and kindly advise us by e-mail of the mistake in<BR>delivery.<BR>NOTE: Regardless of content, this e-mail shall not operate to bind CSC to<BR>any order or other contract unless pursuant to explicit written agreement<BR>or government initiative expressly permitting the use of e-mail for such<BR>purpose.<BR>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<BR><BR><BR><BR><BR><BR>jimmy sun <BR><BR>m&gt; To <BR>Sent by: "SAP Workflow Users' Group" <BR>sap-wug-bounces@m <BR>it.edu cc
 <BR><BR>Subject <BR>01/21/2008 01:29 How to delete Orphaned Workflow <BR>PM after IDOC processed outside <BR>Workflow? <BR><BR>Please respond to <BR>"SAP Workflow <BR>Users' Group" <BR><BR><BR><BR><BR><BR><BR><BR><BR>Hi All,<BR>I have a situation, inbound IDoc processed with error, workflow is<BR>generated. Instead of going through workflow to processed the IDoc, someone<BR>corrected and processed the IDoc through a customer program.<BR><BR>Now, we have a few Work item remain in the user's Inbox. Tried SWI1<BR>'Logically Delete' is not an option. 'Set to 'Done'' is grayed out. Is it<BR>Authorization issue? Is there any other way to detete these Work Items?<BR>What is the Authorization do I need to do it?<BR><BR>Many thanks in advance<BR><BR>Jimmy<BR><BR><BR><BR>"Whether you think you can or whether you think you can't, you're right!"<BR>--Henry Ford<BR><BR><BR>Never miss a thing. Make Yahoo your homepage.<BR>_______________________________________________<BR>SAP-WUG
 mailing list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR><BR><BR><BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR><BR><BR><BR><BR><BR>"Whether you think you can or whether you think you can't, you're right!" --Henry Ford <BR><BR>________________________________<BR><BR>Never miss a thing. Make Yahoo your homepage. <BR>_______________________________________________<BR>SAP-WUG mailing list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<o:p></o:p></div></DIV></BLOCKQUOTE>  <DIV>  <div class=MsoNormal><BR><BR><BR>"Whether you think you can or whether you think you can't, you're right!" --Henry Ford<o:p></o:p></div></DIV>  <DIV>  <div class=MsoNormal>&nbsp; <o:p></o:p></div></DIV>  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center>  <HR align=center width="100%" SIZE=1>  </DIV>  <DIV>  <div class=MsoNormal>Never
 miss a thing. <A href="http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs">Make Yahoo your homepage.</A> <o:p></o:p></div></DIV></DIV>  <div class=MsoNormal>_______________________________________________<BR>SAP-WUG mailing list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<o:p></o:p></div></BLOCKQUOTE>  <div class=MsoNormal><BR><BR><BR>"Whether you think you can or whether you think you can't, you're right!" --Henry Ford<o:p></o:p></div>  <div>&nbsp; <o:p></o:p></div>  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center>  <HR align=center width="100%" SIZE=1>  </DIV>  <div class=MsoNormal>Never miss a thing. <A href="http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs">Make Yahoo your homepage.</A> <o:p></o:p></div></DIV>_______________________________________________<BR>SAP-WUG mailing list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE><BR><BR><BR>"Whether you think you can or whether
 you think you can't, you're right!"     --Henry Ford<p>&#32;



      <hr size=1>Never miss a thing.  <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>