<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" 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"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR><!--[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-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Verdana;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle19 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
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-GB vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=999173922-11022009><FONT face=Arial
color=#0000ff size=2>Hi Mike GT - you should also look at the SAP_WAPI function
modules - there's a RESUME WAPI that may help or at least show you "safe" code
for creating your own program to fix the problem. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=999173922-11022009><FONT face=Arial
color=#0000ff size=2>I'd also suggest you stop the illegal behaviours if you can
- obviously there are some people out there with more access than they need.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=999173922-11022009><FONT face=Arial
color=#0000ff size=2>Regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=999173922-11022009><FONT face=Arial
color=#0000ff size=2>Jocelyn </FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Mike
Pokraka<BR><B>Sent:</B> Saturday, 7 February 2009 8:42 AM<BR><B>To:</B> 'SAP
Workflow Users' Group'<BR><B>Subject:</B> [LIKELY JUNK]RE: Infeasible State
Transition WL 802 -> ABAP ClassMethod
CL_SWF_RUN_WIM_STATE->EXECUTE_STATE_TRANSITION<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hi
Mike, <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Thinking
outside the box: Perhaps you could duplicate the state of the workflow. It’s not
difficult to create a little report to mirror the container into a new workflow
instance, and in NetWeaver you also have transaction
SWUS_WITH_REFERENCE.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">If
the cancellation is way down the flow, perhaps you could create a temporary
‘resume’ template specific to that issue and run your report to resume all your
cancelled ones. Or if you have lots of reporting around specific templates then
you could generate a version with a special ‘skip’ import flag and appropriate
branch, but I guess I don’t need to explain that level of detail to you
:-)<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Cheers,
<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Mike<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
lang=EN-US 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>Mike Gambier<BR><B>Sent:</B> 26 January 2009 16:39<BR><B>To:</B>
sap-wug@mit.edu<BR><B>Subject:</B> Infeasible State Transition WL 802 -> ABAP
Class Method
CL_SWF_RUN_WIM_STATE->EXECUTE_STATE_TRANSITION<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Hi fellow
WUGgers,<BR> <BR>Now that we've had a week to play with the new ECC 6 stuff
for real (things are settling down now), some interesting 'features' have
started to become evident. For us the limitations of the new 'State Transition'
approach appear to be the most painful at the moment.<BR> <BR>I can see why
SAP have tightened up this area, after all plenty of people had worked out that
calling some Admin FMs in the past with a few flags set would allow all sorts of
shenanigans to go on when mucking about with errored or cancelled steps or
flows. But now we seem to have swung from one extreme to the other. There's
no 'Admin' privileges to tap into to do something technially 'illegal' under
normal Workflow conditions that may actually be required to keep the system
going.<BR> <BR>Short of mucking around with the CLASS_CONSTRUCTORS and
adding spurious 'legal' states (like CANCELLED->READY) or direct database
updates to SWWWIHEAD *shudder* there's very little that one can do to allow
<EM><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'">en masse</SPAN></EM>
reprocessing of 'stuck' work legitimately. And when I say stuck I mean
'cancelled-because-someone-was-stupid-and-killed-a-lot-of-steps-they-shouldn't-have-but-the-workflow-is-still-there'
kinda thing.<BR> <BR>I've prayed to the Workflow Gods and received,
predictably, a rather polite response, that any such bypass option to
enable 'illegal' status changes would require a CDP.<BR> <BR>The trouble is
that I'm pretty sure there are other people out there who may have assumed
they could manipulate steps and flows as they have done in the past who may now
come unstuck. Perhaps someone like that is even reading this mail right now...?
Or maybe, just maybe, someone has found a way around
this?<BR> <BR>Regards,<BR> <BR>Mike
GT<BR> <o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Share your photos
with Windows Live Photos - Free <A
href="http://www.microsoft.com/uk/windows/windowslive/products/messenger.aspx"
target=_new>Try it Now!</A><o:p></o:p></SPAN></P></DIV></DIV></BODY></HTML>