<!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.50.4616.200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=677491617-01112001><FONT face=Arial
size=2>Jocelyn,</FONT></SPAN></DIV>
<DIV><SPAN class=677491617-01112001><FONT size=2><FONT face=Arial>Thanks for the
info.&nbsp; I had 13 background work items and I was able to successfully
re-process 12 of them using SWI1 and Edit =&gt; Work items =&gt; Execute batch
item.&nbsp; However, one of them had a problem.&nbsp; It gave me an ABAP runtime
error in line 94 of function module <FONT color=#000000
size=2>SWP_WORKFLOW_WI_ERROR_SIGNAL: it says parameter "WF" is missing when
calling function module SWP_WI_CALLBACK_SUSPEND.&nbsp; This call to function
module <FONT color=#000000 size=2>SWP_WI_CALLBACK_SUSPEND was added on 4/19/2001
when I implemented OSS note 95859 ("Restarting work flow instances after system
restart", version 9 dated 7/21/2000).&nbsp; This specific work item was created
on 8/8/2001.&nbsp; Would you have any idea why this one work item would get an
error and the other 12 wouldn't?</FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=677491617-01112001><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=677491617-01112001><FONT face=Arial
size=2>-Brad</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
  size=2>-----Original Message-----<BR><B>From:</B> Dart, Jocelyn
  [mailto:jocelyn.dart@sap.com]<BR><B>Sent:</B> Tuesday, October 30, 2001 9:02
  PM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Re: Background work
  items stuck in process<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=634355502-31102001>Hi
  Brad,</SPAN></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff 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 face=Arial color=#0000ff size=2><SPAN
  class=634355502-31102001>should&nbsp;be enough. </SPAN></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN
  class=634355502-31102001></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial color=#0000ff 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 face=Arial color=#0000ff 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 face=Arial color=#0000ff 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 face=Arial color=#0000ff 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 face=Arial color=#0000ff size=2><SPAN
  class=634355502-31102001></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial color=#0000ff 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 face=Arial color=#0000ff 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 face=Arial color=#0000ff size=2><SPAN
  class=634355502-31102001></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN
  class=634355502-31102001>Regards,</SPAN></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=634355502-31102001>
  <DIV style="WIDTH: 374px; HEIGHT: 90px"><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 face=Arial color=#0000ff size=2><SPAN
  class=634355502-31102001></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN
  class=634355502-31102001>&nbsp;&nbsp;</SPAN></FONT></DIV>
  <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
    <DIV class=OutlookMessageHeader dir=ltr align=left><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></BLOCKQUOTE></BODY></HTML>