<BODY><P></P>
<P><B>Hi,</B></P>
<P><B>We've just gone through&nbsp;either a similar&nbsp;or the same problem.&nbsp;We're running ERP2005, NW2004S with CUA.</B></P>
<P><STRONG>In our case the problem&nbsp;turned out to be a workflow runtime problem. The wf-batch id&nbsp;kept getting locked.&nbsp;SAP provided an&nbsp;OSS note for it that we haven't applied yet because we're applying the latest support packs plus&nbsp;we figured out a manuall work around. The note is 862937. If that doesn't help, I can also send you the work around instructions.</STRONG></P>
<P><STRONG>Jerry</STRONG>&nbsp;&nbsp;</P>
<P><B>----- Original Message -----</B></P>
<P></P><B>From</B>: "NICKLAS, Christian" &lt;christian.nicklas@ser.de&gt;
<P></P><B>Date</B>: Wednesday, March 8, 2006 8:12 am
<P></P><B>Subject</B>: AW: Workflow Stops without error in background task statusready
<P></P>
<P></P>&gt; HI Mike, <BR>&gt; Hi All <BR>&gt; <BR>&gt; yes there are some simultaneous forks in Definition. One in the <BR>&gt; main flow, and two in each subflows. After the deletion of the <BR>&gt; forks still the same problem. <BR>&gt; <BR>&gt; But the lock can be the reason. In a dialog task I make at the end <BR>&gt; an update on a czustom-table. In the next task a background step <BR>&gt; updates the same database. <BR>&gt; Can this be the program? Commit work is not set in the dialog or <BR>&gt; background task <BR>&gt; <BR>&gt; Regards <BR>&gt; <BR>&gt; Christian Nicklas <BR>&gt; <BR>&gt; <BR>&gt; -----Ursprüngliche Nachricht----- <BR>&gt; Von: sap-wug-bounces@mit.edu [sap-wug-bounces@mit.edu] Im Auftrag <BR>&gt; von Mike Pokraka <BR>&gt; Gesendet: Mittwoch, 8. März 2006 14:45 <BR>&gt; An: SAP Workflow Users' Group <BR>&gt; Betreff: Re: Workflow Stops without error in background task <BR>&gt; statusready <BR>
&gt; Uh, hold on. You say RSWERRE restarts it. So in other words they <BR>&gt; SHOULDall restart themselves after a while (20 minutes)... yes? <BR>&gt; <BR>&gt; In that case might it be some kind of locking conflict? - pick your <BR>&gt; process apart for simultaneous forks or DB updates which might <BR>&gt; still be <BR>&gt; active or other similar things. <BR>&gt; How is RSWERRE scheduled (SWWD)? <BR>&gt; <BR>&gt; Failing that, OSS. <BR>&gt; <BR>&gt; Cheers, <BR>&gt; Mike <BR>&gt; <BR>&gt; NICKLAS, Christian wrote: <BR>&gt; &gt; Hi all <BR>&gt; &gt; Hi Mike, <BR>&gt; &gt; <BR>&gt; &gt; that would be to easy ;-). <BR>&gt; &gt; It is a background task and background method - in SWI2_ADM1 <BR>&gt; there is not <BR>&gt; &gt; entry. But ii SWIA it can be processed! <BR>&gt; &gt; <BR>&gt; &gt; So it is becoming more and more strange and that is the reason <BR>&gt; why I <BR>&gt; &gt; cannot find a solution? <BR>&gt; &gt; <BR>
&gt; &gt; But maybe I am on the correct way with report RSWWERRE? When I <BR>&gt; start the <BR>&gt; &gt; report manually after 10 minutes when the workitem was created, <BR>&gt; the flow <BR>&gt; &gt; continues. <BR>&gt; &gt; <BR>&gt; &gt; Anybody any ideas what the problem could be? <BR>&gt; &gt; <BR>&gt; &gt; Regards <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; Christian Nicklas | Prof. Services SAP Workflow <BR>&gt; &gt; SER Solutions Deutschland GmbH <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; -----Ursprüngliche Nachricht----- <BR>&gt; &gt; Von: sap-wug-bounces@mit.edu [sap-wug-bounces@mit.edu] Im Auftrag <BR>&gt; &gt; von Mike Pokraka <BR>&gt; &gt; Gesendet: Mittwoch, 8. März 2006 13:32 <BR>&gt; &gt; An: SAP Workflow Users' Group <BR>&gt; &gt; Betreff: Re: AW: AW: Workflow Stops without error in background task <BR>&gt; &gt; status ready <BR>&gt; &gt; <BR>&gt; &gt; Duh, must read posts more carefully. You mentioned SWIA before. <BR>&gt; That makes <BR>
&gt; &gt; the answer simple: it's not a background task. <BR>&gt; &gt; <BR>&gt; &gt; A task in READY status won't show an agent, as it can be with <BR>&gt; many people. <BR>&gt; &gt; Once someone executes it and changes status to STARTED, it will <BR>&gt; show an <BR>&gt; &gt; agent. <BR>&gt; &gt; <BR>&gt; &gt; Check your agent assignments on the task. Check if they show up in <BR>&gt; &gt; SWI2_ADM1 (tasks without agents), would indicate it's being <BR>&gt; routed to the <BR>&gt; &gt; wrong people / not a possible agent of the task. <BR>&gt; &gt; <BR>&gt; &gt; Note, a background task can be 'dialog' even though there isn't <BR>&gt; any user <BR>&gt; &gt; interaction. What it means is that - with 'advance in dialog' <BR>&gt; set - it <BR>&gt; &gt; executes under the userID of the previous task as opposed to WF- <BR>&gt; BATCH.&gt; This can be for authorization reasons or simply that you <BR>&gt; want the 'last <BR>
&gt; &gt; changed by' to reflect the user who made a decision. <BR>&gt; &gt; <BR>&gt; &gt; Cheers, <BR>&gt; &gt; Mike <BR>&gt; &gt; <BR>&gt; &gt; NICKLAS, Christian wrote: <BR>&gt; &gt;&gt; Hi Mike, <BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; In SM13 and SM21 no entries are available. <BR>&gt; &gt;&gt; After setting the WI into status error I get no hits in <BR>&gt; SWI2_DIAG to <BR>&gt; &gt;&gt; restart the process (when I set the whole WF into error I get a <BR>&gt; hit but <BR>&gt; &gt;&gt; not possible to restart the flow) <BR>&gt; &gt;&gt; Only thing what works is in transaction SWIA to execute without <BR>&gt; agent&gt;&gt; check (also here no agent is displayed in the column!) <BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; Regards <BR>&gt; &gt;&gt; Christian <BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; Christian Nicklas | Prof. Services SAP Workflow <BR>&gt; &gt;&gt; SER Solutions Deutschland GmbH <BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; -----Ursprüngliche Nachricht----- <BR>
&gt; &gt;&gt; Von: sap-wug-bounces@mit.edu [sap-wug-bounces@mit.edu] Im Auftrag <BR>&gt; &gt;&gt; von Mike Pokraka <BR>&gt; &gt;&gt; Gesendet: Mittwoch, 8. März 2006 12:31 <BR>&gt; &gt;&gt; An: SAP Workflow Users' Group <BR>&gt; &gt;&gt; Betreff: Re: AW: Workflow Stops without error in background <BR>&gt; task status <BR>&gt; &gt;&gt; ready <BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; Duh, ignore me, must read posts more carefully. You said there <BR>&gt; aren't&gt;&gt; any <BR>&gt; &gt;&gt; conditions. <BR>&gt; &gt;&gt; Can you restart them as described? If so it would point towards <BR>&gt; a basisy <BR>&gt; &gt;&gt; problem. Else you can also check for update failures - SM13. <BR>&gt; System log <BR>&gt; &gt;&gt; SM21 may also reveal some hints. Check around the time the task is <BR>&gt; &gt;&gt; created. <BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; Cheers, <BR>&gt; &gt;&gt; Mike <BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; Mike Pokraka wrote: <BR>
&gt; &gt;&gt;&gt; What about the conditions? SWI1_COND implies you have a <BR>&gt; condition on <BR>&gt; &gt;&gt;&gt; the <BR>&gt; &gt;&gt;&gt; task. That does exactly what you describe - task won't start <BR>&gt; until the <BR>&gt; &gt;&gt;&gt; condition is met. <BR>&gt; &gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt; NICKLAS, Christian wrote: <BR>&gt; &gt;&gt;&gt;&gt; Hi Mike <BR>&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; thanks fort he hint. In SM58 everything is fine. For this <BR>&gt; background&gt;&gt;&gt;&gt; tasks <BR>&gt; &gt;&gt;&gt;&gt; no conditions are maintained. The SWU3 looks good for the <BR>&gt; &gt;&gt;&gt;&gt; runtime-environment. <BR>&gt; &gt;&gt;&gt;&gt; But for me it seems that something is wrong with the runtime, <BR>&gt; because&gt;&gt;&gt;&gt; it <BR>&gt; &gt;&gt;&gt;&gt; happens very often that the Background-WI's stop in status ready. <BR>&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; Regards <BR>&gt; &gt;&gt;&gt;&gt; Christian <BR>
&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; -----Ursprüngliche Nachricht----- <BR>&gt; &gt;&gt;&gt;&gt; Von: sap-wug-bounces@mit.edu [sap-wug-bounces@mit.edu] Im <BR>&gt; &gt;&gt;&gt;&gt; Auftrag <BR>&gt; &gt;&gt;&gt;&gt; von Mike Pokraka <BR>&gt; &gt;&gt;&gt;&gt; Gesendet: Mittwoch, 8. März 2006 11:23 <BR>&gt; &gt;&gt;&gt;&gt; An: SAP Workflow Users' Group <BR>&gt; &gt;&gt;&gt;&gt; Betreff: Re: Workflow Stops without error in background task <BR>&gt; status&gt;&gt;&gt;&gt; ready <BR>&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; Hallo Christian, <BR>&gt; &gt;&gt;&gt;&gt; Background tasks do not have agents, so what you are seeing in <BR>&gt; &gt;&gt;&gt;&gt; SWI1_COND <BR>&gt; &gt;&gt;&gt;&gt; is correct. Interesting you mention SWI1_COND - have you set a <BR>&gt; &gt;&gt;&gt;&gt; condition <BR>&gt; &gt;&gt;&gt;&gt; for the task? Is it fulfilled? <BR>
&gt; &gt;&gt;&gt;&gt; Conditional tasks are evaluated/executed by a background job, <BR>&gt; make&gt;&gt;&gt;&gt; sure <BR>&gt; &gt;&gt;&gt;&gt; it's scheduled and running. <BR>&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; Also, have a look in SM58 for any problems. <BR>&gt; &gt;&gt;&gt;&gt; Something else to try is set the task to error using SE37, FM <BR>&gt; &gt;&gt;&gt;&gt; SWW_WI_STATUS_CHANGE_NEW (I think... something like that), <BR>&gt; and try <BR>&gt; &gt;&gt;&gt;&gt; restart <BR>&gt; &gt;&gt;&gt;&gt; with SWI2_DIAG. <BR>&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; MfG, <BR>&gt; &gt;&gt;&gt;&gt; Mike <BR>&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; NICKLAS, Christian wrote: <BR>&gt; &gt;&gt;&gt;&gt;&gt; Hi all, <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; I have implemented a workflow running on ERP-Release ECC 5.0 <BR>&gt; &gt;&gt;&gt;&gt;&gt; (SAP_BASIS <BR>
&gt; &gt;&gt;&gt;&gt;&gt; 640; Patch Level 0009; SAPKB64009; SAP Basis Component). <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; When testing the solution sometimes the workflow stops <BR>&gt; without any <BR>&gt; &gt;&gt;&gt;&gt;&gt; error <BR>&gt; &gt;&gt;&gt;&gt;&gt; in background tasks. This happens in different background <BR>&gt; tasks from <BR>&gt; &gt;&gt;&gt;&gt;&gt; time to time and in other runs it works. <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; At the workflow log the status of the background task is in <BR>&gt; status&gt;&gt;&gt;&gt;&gt; ready. The information at the task says "Execution <BR>&gt; will continue in <BR>&gt; &gt;&gt;&gt;&gt;&gt; background" (Message no. SWF_RUN609). <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; There is no error in the log. In ST22 no dump exists. Also the <BR>&gt; &gt;&gt;&gt;&gt;&gt; administrative tasks (SWPR - Restart after error / SWPC - <BR>
&gt; Restart&gt;&gt;&gt;&gt;&gt; after <BR>&gt; &gt;&gt;&gt;&gt;&gt; SystemCrash) are not possible. SWU_OBUF also does not work. <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; The only thing which I found was in transaction SWI1_COND. <BR>&gt; For the <BR>&gt; &gt;&gt;&gt;&gt;&gt; task <BR>&gt; &gt;&gt;&gt;&gt;&gt; there is no agent available in the agent column (should be <BR>&gt; &gt;&gt;&gt;&gt;&gt; workflow-system)? <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; When I process and reactivate the workitem in transaction <BR>&gt; SWIA the <BR>&gt; &gt;&gt;&gt;&gt;&gt; flow <BR>&gt; &gt;&gt;&gt;&gt;&gt; goes on. (WF_BATCH has SAP_ALL / SAP_NEW) <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; Any ideas and help are appreciated. <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>
&gt; &gt;&gt;&gt;&gt;&gt; Christian Nicklas | Prof. Services SAP Workflow <BR>&gt; &gt;&gt;&gt;&gt;&gt; SER Solutions Deutschland GmbH <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt;&gt; _______________________________________________ <BR>&gt; &gt;&gt;&gt;&gt;&gt; SAP-WUG mailing list <BR>&gt; &gt;&gt;&gt;&gt;&gt; SAP-WUG@mit.edu <BR>&gt; &gt;&gt;&gt;&gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug <BR>&gt; &gt;&gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; _______________________________________________ <BR>&gt; &gt;&gt;&gt;&gt; SAP-WUG mailing list <BR>&gt; &gt;&gt;&gt;&gt; SAP-WUG@mit.edu <BR>&gt; &gt;&gt;&gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug <BR>&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt;&gt; _______________________________________________ <BR>&gt; &gt;&gt;&gt;&gt; SAP-WUG mailing list <BR>&gt; &gt;&gt;&gt;&gt; SAP-WUG@mit.edu <BR>
&gt; &gt;&gt;&gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug <BR>&gt; &gt;&gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt; <BR>&gt; &gt;&gt;&gt; _______________________________________________ <BR>&gt; &gt;&gt;&gt; SAP-WUG mailing list <BR>&gt; &gt;&gt;&gt; SAP-WUG@mit.edu <BR>&gt; &gt;&gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug <BR>&gt; &gt;&gt;&gt; <BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; _______________________________________________ <BR>&gt; &gt;&gt; SAP-WUG mailing list <BR>&gt; &gt;&gt; SAP-WUG@mit.edu <BR>&gt; &gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug <BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; _______________________________________________ <BR>&gt; &gt;&gt; SAP-WUG mailing list <BR>&gt; &gt;&gt; SAP-WUG@mit.edu <BR>&gt; &gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug <BR>&gt; &gt;&gt; <BR>&gt; &gt; <BR>&gt; &gt; _______________________________________________ <BR>&gt; &gt; SAP-WUG mailing list <BR>&gt; &gt; SAP-WUG@mit.edu <BR>
&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug <BR>&gt; &gt; <BR>&gt; &gt; _______________________________________________ <BR>&gt; &gt; SAP-WUG mailing list <BR>&gt; &gt; SAP-WUG@mit.edu <BR>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug <BR>&gt; &gt; <BR>&gt; <BR>&gt; _______________________________________________ <BR>&gt; SAP-WUG mailing list <BR>&gt; SAP-WUG@mit.edu <BR>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug <BR>&gt; <BR>&gt; _______________________________________________ <BR>&gt; SAP-WUG mailing list <BR>&gt; SAP-WUG@mit.edu <BR>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug <BR>&gt; </BODY>