I think it has to do with criterion name. trying giving different criterion name. if need more information let me know.<br><br>
<div><span class="gmail_quote">On 1/11/08, <b class="gmail_sendername">Snehal Kutumbale</b> &lt;<a href="mailto:snehal.kutumbale@gmail.com">snehal.kutumbale@gmail.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>Thank you Mark for the clarification.</div>
<div>&nbsp;</div>
<div>Yes, I am generating separete approaval guids for different approvers and setting similar approval index on same approval level ( like 1 for all the 1st approvers of different line itmes, 2 for all the 2nd approvers of different line items etc....) 
</div>
<div>&nbsp;</div>
<div>When, I analysed the workflow, paralled branches for sub-workflow had been created and the 2 work-items&nbsp;were in the inbox of the approver X and Y. But the moment approver X approved 1st line item, the event restartApprovalStep of bus2121 was raised and&nbsp;the cart got approved. 
</div>
<div>&nbsp;</div>
<div>We are on the latest support pack(11) of srm5.0. Also, setting the security level as &#39;4&#39; through the badi in every case. </div>
<div>&nbsp;</div>
<div>Any clarification on the workflow behaviour for restartApprovalStep would help.</div>
<div>&nbsp;</div>
<div>Thank you once again. </div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>Snehal<br><br>&nbsp;</div>
<div>
<div><span class="e" id="q_11767974625dbdb9_1"><span class="gmail_quote">On 1/10/08, <b class="gmail_sendername">Griffiths, Mark</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mark.griffiths@sap.com" target="_blank">
mark.griffiths@sap.com</a>&gt; wrote:</span> </span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><span class="e" id="q_11767974625dbdb9_3">
<div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">You need to assign your different approvers to different approval guids.&nbsp; If this is done then the workflow should work with just index 1, sending the approvals in parallel, and only completing when all necessary approvals are received. 
</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Other things which often cause&nbsp;issues here are:</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">&nbsp;- make sure you are on as recent a support pack as possible with all OSS notes applied</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">&nbsp;- make sure your workflow security setting is correct in your roles / role personalisation.&nbsp; Medium doesn&#39;t work properly with the BADI processes so I would normally use LOW. 
</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Regards,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Mark</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">SAP UK</font></span></div>
<div>&nbsp;</div><font face="Arial Black" color="#000080" size="1"></font><br>
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</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>On Behalf Of </b>Snehal Kutumbale<br><b>Sent:</b> 10 January 2008 09:41<br><b>To:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sap-wug@mit.edu" target="_blank">
sap-wug@mit.edu</a><br><b>Subject:</b> WS14500015 - Item based approval<br></font><br>&nbsp;</div>
<div><span>
<div></div>
<div>Hello Everyone,</div>
<div>&nbsp;</div>
<div>We are using the workfow WS14500015 for line item approval of SC. Also, we have coded the logic to find approvers in BBP_WFL_APPROV_BADI.<br><br>Now the problem is, I have a shopping cart which has 3 line items. The 1st line item has approver X as the 1st approver and the 2nd &amp; 3rd line items have approver Y as the 1st approver. 
<br><br>This will mean that the cart should not be set to &#39;RELEASED&#39; when approver X approvers teh 1st line item. It should wait for approver Y to approve the other 2 line items.<br><br>Our problem is, when approver X approves the 1st line item, the entire cart gets approved. 
<br><br>I have checked, and there are different work items getting created for both the approvals.<br><br clear="all">The problem I am suspecting is due to the approval index. I have generated the approval index as 1 for both the approvers as they are 1st approvers for different line items. The workflow might be incrementing the index and thus getting completed when it does not find any approvers on index 2.&nbsp; For testing when I generated separate index for both approvers( 
ie.1 and 2), it seems to be working fine, but isn&#39;t this incorrect? Both the approvers are the 1st approver of line itmes and the approval index should be 1 for both and not 2 !! </div>
<div>&nbsp;</div>
<div>Please advice. <br>-- <br>Regards,<br>Snehal </div></span></div></div><br></span></div>_______________________________________________<br>SAP-WUG mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:SAP-WUG@mit.edu" target="_blank">
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><br clear="all"><br>-- <br>Regards,<br><span class="sg">Snehal </span><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>