<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Background work items stuck in process</TITLE>
 
<META content="MSHTML 5.00.3103.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=634355502-31102001>Hi
Brad,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=634355502-31102001>Long
term approach sounds fine - adding the exceptions to the existing method and
creating a new workflow version</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=634355502-31102001>should&nbsp;be enough. </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=634355502-31102001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=634355502-31102001>Short
term - if you want to just close off the items (not re-execute them), you should
be able to do this by going to the</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=634355502-31102001>technical work item display of the relevant work item
and using the Edit &gt;Change option - you should then be able to
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=634355502-31102001>complete manaully (if synchronous) or complete with
event (if asynchronous).&nbsp;&nbsp;&nbsp;(From memory those options are
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=634355502-31102001>available in 4.0B.)&nbsp; Doublecheck that the workflow
above&nbsp;continues correctly after you have&nbsp;done that.&nbsp;
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=634355502-31102001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=634355502-31102001>Later
releases have an option in SWI1 to re-execute stuck batch items, but I can't
recall having that option in 4.0B, </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=634355502-31102001>so if
you have to re-execute you might&nbsp; have to do that manually and then finish
the workitem as above. </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=634355502-31102001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=634355502-31102001>Regards,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=634355502-31102001>
<DIV style="HEIGHT: 90px; WIDTH: 374px"><FONT size=2>
<TABLE>
  <TBODY>
  <TR>
    <TD></TD></FONT>
    <TD>
      <DIV><FONT size=2><FONT color=#0000ff>Jocelyn Dart</FONT> <BR><FONT
      color=#0000ff>Consultant (EBP, BBP, Ecommerce, Internet Transaction
      Server, Workflow)</FONT> <BR><FONT color=#0000ff>SAP
      Australia</FONT></FONT></DIV>
      <DIV><FONT color=#0000ff><FONT size=2>Email </FONT><A
      href="mailto:jocelyn.dart@sap.com"><FONT
      size=2>jocelyn.dart@sap.com</FONT></A><BR><FONT size=2>Tel: +61<SPAN
      class=153385400-09052000> 412 390 267</SPAN><BR>Fax: +61&nbsp;2 9935
      4880</FONT></FONT></DIV></TD></TR></TBODY></TABLE></DIV></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=634355502-31102001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=634355502-31102001>&nbsp;&nbsp;</SPAN></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
  size=2>-----Original Message-----<BR><B>From:</B> Schroeter, Brad
  [mailto:BSchroeter@ti.com]<BR><B>Sent:</B> Wednesday, 31 October 2001 10:34
  AM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Background work
  items stuck in process<BR><BR></DIV></FONT>
  <P><FONT face=Arial size=2>I'm on 4.0B and I've got some workflows whose work
  items are stuck in process (status = "STARTED").&nbsp; This happened due to
  exceptions not being defined in the method: the exceptions were in the method
  code via "exit_return" but the corresponding exception was not defined in the
  actual method's attributes.&nbsp; So the work items have error OL818:
  Exception '9002' is not defined for method 'COMPLETEECO' object type
  'ZECO'.</FONT></P>
  <P><U><FONT face=Arial size=2>Long-term:</FONT></U> <BR><FONT face=Arial
  size=2>Since our exceptions are not modeled in definition and they are
  temporary errors, my plan is to create these missing temporary exceptions in
  the actual method's attributes so that the system will attempt to restart the
  work item and if necessary, send a notification to the Workflow
  administrator.&nbsp; So do I only need to create a new Workflow version (i.e.
  I don't have to create a new method and a new task, do I)?</FONT></P>
  <P><U><FONT face=Arial size=2>Short-term:</FONT></U> <BR><FONT face=Arial
  size=2>How do I go about getting these background work items unstuck?&nbsp;
  Please note that these do seem to be "temporary" errors since this has only
  happened on a few (not all) Workflows.</FONT></P><BR>
  <P><FONT face=Arial size=2>Thanks,</FONT> <BR><FONT face=Arial
  size=2>Brad</FONT> </P></BLOCKQUOTE></BODY></HTML>