<div>Hi Markus.</div>
<div>Even if you complete it manually using Workflow API, you still have to tell the workflow system what is decision you selected. In your case, you only call the workflow API <font size="2">SAP_WAPI_WORKITEM_COMPLETE, but do not specify your decision.
</font></div>
<div><font size="2">So, how to define your decision?</font></div>
<div><font size="2">By filling the container &quot;_WI_Result&quot; and &quot;_RESULT&quot; in the work item, and the value is either &quot;0001&quot; or &quot;0002&quot; (just check the sequence of the outcomes of the decision step in your workflow builder.
</font></div>
<div><font size="2">To set the value of the container, specify it in the table parameter &quot;SIMPLE_CONTAINER&quot; of the function SAP_WAPI_WORKITEM_COMPLETE.</font></div>
<p><font size="2"></font>&nbsp;</p>
<div><font size="2">Regards,</font></div>
<div><font size="2"></font>&nbsp;</div>
<div><font size="2">Yulianto</font></div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 2/22/07, <b class="gmail_sendername">Guenther, Annegret</b> &lt;<a href="mailto:annegret.guenther@eds.com">annegret.guenther@eds.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div dir="ltr" align="left"><span><font face="Comic Sans MS" color="#0000ff" size="2">Hi Markus,</font></span></div>
<div dir="ltr" align="left"><span><font face="Comic Sans MS" color="#0000ff" size="2">how you are completing the task? By edit the workitem? Then I think, there is also the posssibility to select one of the both exits? If you select one, the the Workflow knows the way he has to go.
</font></span></div>
<div dir="ltr" align="left"><span><font face="Comic Sans MS" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Comic Sans MS" color="#0000ff" size="2">Regards,</font></span></div>
<div dir="ltr" align="left"><span><font face="Comic Sans MS" color="#0000ff" size="2">Anne</font></span></div><br>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div lang="de" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>Von:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sap-wug-bounces@mit.edu" target="_blank">
sap-wug-bounces@mit.edu</a>] <b>Im Auftrag von </b>Markus Klein<br><b>Gesendet:</b> Mittwoch, 21. Februar 2007 18:35<br><b>An:</b> SAP Workflow Users&#39; Group<br><b>Betreff:</b> Workflow Error, when setting a User Decision task in status completed
<br></font><br>&nbsp;</div>
<div></div>
<div><font face="Arial" size="2"><span>Hello,</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span>in my workflow i have a User Decision task with 2 exists. When i try to set the status of a workitem of this task to completed using the Function Module&nbsp;&quot;SAP_WAPI_WORKITEM_COMPLETE&quot; the workitem itself gets the status completed, but the parent workflow gets the status error with the following message &quot;Error when defining a successor for node &lt;node&gt;&quot; in the protocol.
</span></font></div>
<div><font face="Arial" size="2"><span>Its clear why this happens, as the workflow-runtime doesnt know how to continue when the workitem is completed this way. The question is tho, how can i overcome this error? There has to be a way,&nbsp;where i can manually set a user decision task to completeted and the parent workflow just continues.
</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span>cheers,</span></font></div>
<div><font face="Arial" size="2"><span>Markus</span></font></div>
<div>&nbsp;</div>
<div>
<p align="left"><font color="#808080"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">_________________<br><br></span><b><span style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">Markus Klein</span></b></font><span style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Arial">
<br><font color="#808080"><em>SAP Senior Consultant</em><br><br></font></span><strong><span style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><font color="#808080">ABS Team GmbH</font></span></strong><b><span style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">
<br></span></b><span style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Arial"><font color="#808080">Muehlenweg 65<br>37120 Bovenden</font></span></p>
<p><span lang="EN-GB" style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><font color="#808080">Tel +49 551 820 33 0<br>Mobil +49 151 126 23 047<br>Email <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:klein@abs-team.de" target="_blank">
klein@abs-team.de</a></font></span></p>
<p><b><span style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><span style="COLOR: windowtext; TEXT-DECORATION: none"><font color="#808080"><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.abs-team.de/" target="_blank">
www.abs-team.de</a></font></span></span></b></p>
<p><span style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><span style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><font color="#808080" size="1">Geschäftsführer: Dr. Andreas Rupprecht - HRB Göttingen 1535</font></span></span></p></div>

<div>&nbsp;</div></blockquote></div><br>_______________________________________________<br>SAP-WUG mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br><br></blockquote></div><br>