<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<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>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Jimmy,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Depends on how many the are. For a few hundred, it&#8217;s
probably quicker to go in using SWIA and deleting them by hand.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If you&#8217;re talking about thousands, then I&#8217;d suggest
a custom report that calls SAP_WAPI_ADM_ WORKFLOW_CANCEL for each top-level
item (WS9... if it&#8217;s a workflow).<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Mike<o:p></o:p></span></p>

<p class=MsoNormal><a name="_MailEndCompose"><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></a></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;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></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>Thnak you both Sherie and Mike.<o:p></o:p></p>

</div>

<div>

<p 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></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>Many thanks,<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>Jimmy<br>
<br>
<b><i>Mike Pokraka &lt;asap@workflowconnections.com&gt;</i></b> wrote:<o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Jimmy, <o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>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></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>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></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers, <o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Mike<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

</div>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<div>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;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></p>

</div>

</div>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<div>

<p class=MsoNormal>Sherie,<o:p></o:p></p>

</div>

</div>

<div>

<div>

<p 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></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

</div>

<div>

<div>

<p 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:
10.0pt;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:10.0pt;color:black'>I'd expect the same from SWO1, but
will&nbsp;try it any way.&nbsp;</span><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal>The system is ECC 6.0. If&nbsp; anyone else have other
solution, please let me know. <o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal>Jimmy<o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal><br>
<b><i>&quot;Munday,Sherie J.&quot; &lt;MUNDAYSJ@airproducts.com&gt;</i></b>
wrote:<o:p></o:p></p>

</div>

</div>

<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'>

<div>

<p class=MsoNormal>Jimmy,<br>
Try this..SWO1 on the object FLOWITEM... &quot;test&quot; and instantiate with
the work item number, then run the method &quot;change status&quot; to change
the item to &quot;Cancelled&quot; (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 &quot;View with Technical Details&quot;, 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: &quot;SAP Workflow Users' Group&quot; <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>
&quot;SAP Workflow <br>
Users' Group&quot; <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>
&quot;Whether you think you can or whether you think you can't, you're
right!&quot;<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>
&quot;Whether you think you can or whether you think you can't, you're
right!&quot; --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></p>

</div>

</blockquote>

<div>

<p class=MsoNormal><br>
<br>
<br>
&quot;Whether you think you can or whether you think you can't, you're right!&quot;
--Henry Ford<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp; <o:p></o:p></p>

</div>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=1 width="100%" align=center>

</div>

<div>

<p 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></p>

</div>

</div>

<p 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></p>

</blockquote>

<p class=MsoNormal><br>
<br>
<br>
&quot;Whether you think you can or whether you think you can't, you're
right!&quot; --Henry Ford<o:p></o:p></p>

<p>&nbsp; <o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=1 width="100%" align=center>

</div>

<p 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></p>

</div>

</body>

</html>