<div>Hi David,</div>
<div> </div>
<div>You can use the Process control with choosing the option as &#39;Cancel Workflow(including all callers)&#39; in your subworkflow as the last step. This is the most efficient way to cal cancel the calling main workflow for your scenario.</div>

<div> </div>
<div>Regards,</div>
<div>Guru<br><br></div>
<div class="gmail_quote">On Thu, Nov 5, 2009 at 11:33 PM, <span dir="ltr">&lt;<a href="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Send SAP-WUG mailing list submissions to<br>       <a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br>       <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>or, via email, send a message with subject or body &#39;help&#39; to<br>
       <a href="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</a><br><br>You can reach the person managing the list at<br>       <a href="mailto:sap-wug-owner@mit.edu">sap-wug-owner@mit.edu</a><br><br>When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of SAP-WUG digest...&quot;<br><br><br>Today&#39;s Topics:<br><br>  1. RE: Sub-Workflow when complete must terminate workflow<br>     (BPT Consulting)<br>  2. RE: Sub-Workflow when complete must terminate workflow<br>
     (<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>)<br>  3. RE: Sub-Workflow when complete must terminate workflow<br>     (<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>)<br>
<br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 5 Nov 2009 09:53:50 -0800 (PST)<br>From: BPT Consulting &lt;<a href="mailto:bptconsulting@sbcglobal.net">bptconsulting@sbcglobal.net</a>&gt;<br>
Subject: RE: Sub-Workflow when complete must terminate workflow<br>To: &quot;SAP Workflow Users&#39; Group&quot; &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>Message-ID: &lt;<a href="mailto:761047.13782.qm@web81603.mail.mud.yahoo.com">761047.13782.qm@web81603.mail.mud.yahoo.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br><br>David,<br>?<br>Sounds like you have the sub Workflow?functioning properly.? Add a condition in the main Workflow using the container element (passed back from sub Workflow) to a branch for termination.<br>
?<br>Regards,<br>Thomas<br><br><br>--- On Thu, 11/5/09, <a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a> &lt;<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>&gt; wrote:<br>
<br><br>From: <a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a> &lt;<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>&gt;<br>Subject: RE: Sub-Workflow when complete must terminate workflow<br>
To: <a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br>Date: Thursday, November 5, 2009, 10:47 AM<br><br><br><br><br><br><br><br><br>Hello Thomas,<br>Thanks for your recommendation. I have already ?selected ?the second approach. I tried that yesterday using a condition but could not get it work. I want the ?condition ?if ?TRUE to ?terminate the workflow but I could not get the workflow to do it as it just creates a loop and returns to the main flow?..is there some syntax that can be inserted in the condition to make it terminate.<br>
?<br>regards<br>?<br>David S Dittmer<br>Accenture<br>||?<br>?<br><br><br><br>From: <a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a> [mailto:<a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>] On Behalf Of BPT Consulting<br>
Sent: Wednesday, November 04, 2009 8:34 PM<br>To: SAP Workflow Users&#39; Group<br>Subject: Re: Sub-Workflow when complete must terminate workflow<br>?<br><br><br><br><br><br>David,<br><br>?<br><br>Put the wait for event in the main Workflow process.? Then you can control what steps are processed.? If that design doesn&#39;t work for you then pass?a container element from sub Workflow to main Workflow.? Use this element to make decision on steps to process.<br>
<br>?<br><br>Regards,<br><br>Thomas Maue<br><br>--- On Wed, 11/4/09, <a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a> &lt;<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>&gt; wrote:<br>
<br><br>From: <a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a> &lt;<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>&gt;<br>Subject: Sub-Workflow when complete must terminate workflow<br>
To: <a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br>Date: Wednesday, November 4, 2009, 4:19 PM<br><br><br>Hello Workflow experts,<br>My workflow has a sub-workflow created in the middle of the main workflow. The sub-workflow has a wait for event step and when that step is triggered the sub-workflow runs to completion but at the same time the main workflow is triggered and activity steps are actioned ?which should not be triggered.<br>
?<br>My question is how can I develop the workflow that the completion of the sub-workflow will not trigger the main workflow to process? unwanted steps. It is not possible to place the sub-workflow at the end of the main workflow.<br>
?<br>I have checked the FAQ but could find nothing since I am sure that this issue must have ?arisen time and time again<br>?<br>I am hopeful ?that an experienced workflow developer should ?be able to advise me how to solve this issue.<br>
?<br>David S Dittmer<br>Accenture<br>?<br>?<br><br>This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.<br>
<br>-----Inline Attachment Follows-----<br><br>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
?<br><br><br>This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.<br>
-----Inline Attachment Follows-----<br><br><br>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20091105/43918834/attachment-0001.htm" target="_blank">http://mailman.mit.edu/pipermail/sap-wug/attachments/20091105/43918834/attachment-0001.htm</a><br>
<br>------------------------------<br><br>Message: 2<br>Date: Thu, 5 Nov 2009 12:58:49 -0500<br>From: &lt;<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>&gt;<br>Subject: RE: Sub-Workflow when complete must terminate workflow<br>
To: &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>Message-ID:<br>       &lt;<a href="mailto:A734A9C4C8D2FA4C986455C9C925CEC50143899AE6C1@AMRXM3114.dir.svc.accenture.com">A734A9C4C8D2FA4C986455C9C925CEC50143899AE6C1@AMRXM3114.dir.svc.accenture.com</a>&gt;<br>
<br>Content-Type: text/plain;       charset=&quot;us-ascii&quot;<br><br>Thanks Egor it works for me.<br><br>regards<br><br>David S Dittmer<br>Accenture<br><br><br><br>-----Original Message-----<br>From: <a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a> [mailto:<a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>] On Behalf Of yegorm<br>
Sent: Thursday, November 05, 2009 6:03 AM<br>To: SAP Workflow Users&#39; Group<br>Subject: Re: Sub-Workflow when complete must terminate workflow<br><br>Hello, David!<br><br>I suppose there are several ways to do that. For example:<br>
- put a &#39;Process Control&#39; step with function &#39;Terminate workflow&#39; into<br>your main workflow right after your subworkflow.<br><br><br>Best regards,<br>Egor<br>_______________________________________________<br>
SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br><br><br><br>
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.<br>
<br><br><br>------------------------------<br><br>Message: 3<br>Date: Thu, 5 Nov 2009 13:02:52 -0500<br>From: &lt;<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>&gt;<br>Subject: RE: Sub-Workflow when complete must terminate workflow<br>
To: &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>Message-ID:<br>       &lt;<a href="mailto:A734A9C4C8D2FA4C986455C9C925CEC50143899AE6C2@AMRXM3114.dir.svc.accenture.com">A734A9C4C8D2FA4C986455C9C925CEC50143899AE6C2@AMRXM3114.dir.svc.accenture.com</a>&gt;<br>
<br>Content-Type: text/plain; charset=&quot;us-ascii&quot;<br><br>Thanks Thomas I inserted a process control step in the main workflow after the sub-workflow and this completes the workflow.<br><br>regards<br><br>David S Dittmer<br>
Accenture<br><br>________________________________<br>From: <a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a> [mailto:<a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>] On Behalf Of BPT Consulting<br>
Sent: Thursday, November 05, 2009 11:54 AM<br>To: SAP Workflow Users&#39; Group<br>Subject: RE: Sub-Workflow when complete must terminate workflow<br><br>David,<br><br>Sounds like you have the sub Workflow functioning properly.  Add a condition in the main Workflow using the container element (passed back from sub Workflow) to a branch for termination.<br>
<br>Regards,<br>Thomas<br><br><br>--- On Thu, 11/5/09, <a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a> &lt;<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>&gt; wrote:<br>
<br>From: <a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a> &lt;<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>&gt;<br>Subject: RE: Sub-Workflow when complete must terminate workflow<br>
To: <a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br>Date: Thursday, November 5, 2009, 10:47 AM<br>Hello Thomas,<br>Thanks for your recommendation. I have already  selected  the second approach. I tried that yesterday using a condition but could not get it work. I want the  condition  if  TRUE to  terminate the workflow but I could not get the workflow to do it as it just creates a loop and returns to the main flow.....is there some syntax that can be inserted in the condition to make it terminate.<br>
<br>regards<br><br>David S Dittmer<br>Accenture<br>||<br><br>________________________________<br>From: <a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a> [mailto:<a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>] On Behalf Of BPT Consulting<br>
Sent: Wednesday, November 04, 2009 8:34 PM<br>To: SAP Workflow Users&#39; Group<br>Subject: Re: Sub-Workflow when complete must terminate workflow<br><br>David,<br><br>Put the wait for event in the main Workflow process.  Then you can control what steps are processed.  If that design doesn&#39;t work for you then pass a container element from sub Workflow to main Workflow.  Use this element to make decision on steps to process.<br>
<br>Regards,<br>Thomas Maue<br><br>--- On Wed, 11/4/09, <a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a> &lt;<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>&gt; wrote:<br>
<br>From: <a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a> &lt;<a href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a>&gt;<br>Subject: Sub-Workflow when complete must terminate workflow<br>
To: <a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br>Date: Wednesday, November 4, 2009, 4:19 PM<br>Hello Workflow experts,<br>My workflow has a sub-workflow created in the middle of the main workflow. The sub-workflow has a wait for event step and when that step is triggered the sub-workflow runs to completion but at the same time the main workflow is triggered and activity steps are actioned  which should not be triggered.<br>
<br>My question is how can I develop the workflow that the completion of the sub-workflow will not trigger the main workflow to process  unwanted steps. It is not possible to place the sub-workflow at the end of the main workflow.<br>
<br>I have checked the FAQ but could find nothing since I am sure that this issue must have  arisen time and time again<br><br>I am hopeful  that an experienced workflow developer should  be able to advise me how to solve this issue.<br>
<br>David S Dittmer<br>Accenture<br><br><br>This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.<br>
<br>-----Inline Attachment Follows-----<br>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a>&lt;<a href="http://us.mc816.mail.yahoo.com/mc/compose?to=SAP-WUG@mit.edu" target="_blank">http://us.mc816.mail.yahoo.com/mc/compose?to=SAP-WUG@mit.edu</a>&gt;<br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br><br><br><br>This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.<br>
<br>-----Inline Attachment Follows-----<br>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a>&lt;<a href="http://us.mc816.mail.yahoo.com/mc/compose?to=SAP-WUG@mit.edu" target="_blank">http://us.mc816.mail.yahoo.com/mc/compose?to=SAP-WUG@mit.edu</a>&gt;<br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br><br><br><br><br>This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.<br>
-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20091105/09d301f6/attachment.htm" target="_blank">http://mailman.mit.edu/pipermail/sap-wug/attachments/20091105/09d301f6/attachment.htm</a><br>
<br>------------------------------<br><br>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
<br><br>End of SAP-WUG Digest, Vol 60, Issue 6<br>**************************************<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Guru Dutt<br>Tel : +919748445814<br>Email : <a href="mailto:gurudutt.sap@gmail.com">gurudutt.sap@gmail.com</a><br>