<HTML><BODY>
<div>Sorry Mike, not in this case. <SPAN class=correction id="">SWETYPV</SPAN> comes in only when the <SPAN class=correction id="">workflow</SPAN> is started by an event. In my case I need to start the <SPAN class=correction id="">workflow</SPAN> directly. </div>
<div> </div>
<div style="CLEAR: both">Best Regards,<br>
<SPAN class=correction id="">Ramki</SPAN> <SPAN class=correction id="">Maley</SPAN>.</div>
<div> </div>
<br>
-----Original Message-----<br>
From: mikenickson@gmail.com<br>
To: sap-wug@mit.edu<br>
Sent: Wed, 24 Jan 2007 1:45 PM<br>
Subject: Re: <SPAN class=correction id="">GOS</SPAN> - Start <SPAN class=correction id="">Workflow</SPAN> only if not already started?<br>
<br>
<STYLE>
.AOLPlainTextBody {
margin: 0px;
font-family: Tahoma, Verdana, Arial, Sans-Serif;
font-size: 12px;
color: #000;
background-color: #fff;
}
.AOLPlainTextBody pre {
font-size: 9pt;
}
.AOLInlineAttachment {
margin: 10px;
}
.AOLAttachmentHeader {
font: 11px arial;
border: 1px solid #7DA8D4;
background: #F9F9F9;
}
.AOLAttachmentHeader .Title {
font: 11px arial;
background: #B5DDFA;
padding: 3px 3px 3px 3px;
}
.AOLAttachmentHeader .FieldLabel {
font: 11px arial;
color: #000000;
padding: 1px 10px 1px 9px;
background: #F9F9F9;
}
.AOLAttachmentHeader .FieldValue {
font: 11px arial;
color: #000000;
background: #F9F9F9;
}
.AOLAttachmentHeader a, .AOLImage a {
color: #2864B4;
text-decoration: none;
}
.AOLAttachmentHeader a:hover, .AOLImage a:hover {
color: #2864B4;
text-decoration: underline;
}
body {
background-color: white;
font-family: "Verdana";
font-size: 10pt;
border: 0px;
}
p {
margin: 0px;
padding: 0px;
}
img.managedImg {
width: 0px;
height: 0px;
}
img.placeholder {
width: 275px;
height: 206px;
background: #F4F4F4 center center no-repeat;
border: 1px solid #DADAD6 !important;
}
</STYLE>
<div id=AOLMsgPart_3_2de886ce-77ff-439b-88fd-d162b58fc7a4>
<div><SPAN class=correction id="">Ramki</SPAN></div>
<div> </div>
<div>Not if you invoke the function module as part of the <SPAN class=correction id="">SWETYPV</SPAN> configuration and use it to decide whether to start a <SPAN class=correction id="">workflow</SPAN> or not !</div>
<div> </div>
<div>Mike<br>
</div>
<div><SPAN class=gmail_quote>On 24/01/07, <B class=gmail_sendername><A href="javascript:parent.ComposeTo('workflow99@aol.com', '');">workflow99@aol.com</A></B> <<A href="javascript:parent.ComposeTo('workflow99@aol.com', '');">workflow99@aol.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>Thanks <SPAN><SPAN class=correction id="">Kjetil</SPAN></SPAN>! I am aware of the FM. Even with the FM, I would need a background step and end up with a <SPAN><SPAN class=correction id="">workflow</SPAN></SPAN> instance that starts and then ends. And as you mention no feedback to the user other than a mail notification. </div>
<div> </div>
<div style="CLEAR: both">Best Regards,<br>
<SPAN><SPAN class=correction id="">Ramki</SPAN></SPAN> <SPAN><SPAN class=correction id="">Maley</SPAN></SPAN>.</div>
<SPAN class=q>
<div> </div>
<br>
-----Original Message-----<br>
From: <A href="javascript:parent.ComposeTo('KJETILK@statoil.com', '');">KJETILK@statoil.com</A><br>
To: <A href="javascript:parent.ComposeTo('sap-wug@mit.edu', '');">sap-wug@mit.edu</A><br>
</SPAN>
<div><SPAN class=e id=q_110555ceddb4cb2d_2>Sent: Wed, 24 Jan 2007 11:19 AM<br>
Subject: RE: <SPAN><SPAN class=correction id="">GOS</SPAN></SPAN> - Start <SPAN><SPAN class=correction id="">Workflow</SPAN></SPAN> only if not already started?<br>
<br>
<div>
<div dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Of course. Function module SAP_WAPI_WORKITEMS_TO_OBJECT is always one of your best friends.</FONT></SPAN></div>
<div dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Your main problem will be feedback to the user, who should be told why a <SPAN><SPAN class=correction id="">workflow</SPAN></SPAN> is not started.</FONT></SPAN></div>
<div align=left><FONT face=Arial size=2>
<div align=left><FONT face=Arial size=2>-- </FONT></div>
<div align=left><FONT face=Arial size=2><SPAN><SPAN class=correction id="">Kjetil</SPAN></SPAN> <SPAN><SPAN class=correction id="">Kilhavn</SPAN></SPAN>, Statoil OFT <SPAN><SPAN class=correction id="">GBS</SPAN></SPAN> BAS <SPAN><SPAN class=correction id="">DEV</SPAN></SPAN> SAP</FONT></div>
<div align=left>
<div align=left><FONT face=Arial size=2>
<div align=left>
<div align=left>
<div align=left><FONT face=Arial color=#0000ff size=2></FONT></div>
</div>
</div>
</FONT></div>
</div>
</FONT></div>
</div>
</SPAN></div>
</div>
<div><SPAN class=e id=q_110555ceddb4cb2d_4><br>
<BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<div lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> <A href="javascript:parent.ComposeTo('sap-wug-bounces@mit.edu', '');">sap-wug-bounces@mit.edu</A> [<SPAN><SPAN class=correction id="">mailto</SPAN></SPAN>:<A href="javascript:parent.ComposeTo('sap-wug-bounces@mit.edu', '');"> sap-wug-bounces@mit.edu</A>] <B>On Behalf Of </B><A href="javascript:parent.ComposeTo('workflow99@aol.com', '');">workflow99@aol.com</A><br>
<B>Sent:</B> Wednesday, January 24, 2007 2:54 PM <br>
<B>To:</B> <A href="javascript:parent.ComposeTo('sap-wug@mit.edu', '');">sap-wug@mit.edu</A><br>
<B>Subject:</B> <SPAN><SPAN class=correction id="">GOS</SPAN></SPAN> - Start <SPAN><SPAN class=correction id="">Workflow</SPAN></SPAN> only if not already started? <br>
</FONT><br>
</div>
<div></div>
<div>Hello friends,</div>
<div><FONT face=Arial color=#0000ff size=2></FONT> </div>
<div>Have a <SPAN><SPAN><SPAN class=correction id="">workflow</SPAN></SPAN></SPAN> that is started by an event. Now, there is a need to allow the users to start the same <SPAN><SPAN><SPAN class=correction id="">Workflow</SPAN></SPAN></SPAN> from <SPAN><SPAN><SPAN class=correction id="">GOS</SPAN></SPAN></SPAN> as well. Is there any way to prevent the <SPAN><SPAN><SPAN class=correction id="">GOS</SPAN></SPAN></SPAN> from starting the <SPAN><SPAN><SPAN class=correction id="">Workflow</SPAN></SPAN></SPAN> if an incomplete <SPAN><SPAN><SPAN class=correction id="">workflow</SPAN></SPAN></SPAN> instance exists for the object? User training is not an option ;)</div>
<div><FONT face=Arial color=#0000ff size=2></FONT> </div>
<div><SPAN><SPAN><SPAN class=correction id="">TIA</SPAN></SPAN></SPAN>.</div>
<div> </div>
<div style="CLEAR: both">Best Regards,<br>
<SPAN><SPAN><SPAN class=correction id="">Ramki</SPAN></SPAN></SPAN> <SPAN><SPAN><SPAN class=correction id="">Maley</SPAN></SPAN></SPAN>.</div>
<div style="CLEAR: both"> </div>
<div style="CLEAR: both">Cross posted in SAP-WUG & <SPAN><SPAN class=correction id="">SDN</SPAN></SPAN>.</div>
<div>
<HR style="MARGIN-TOP: 10px">
<A href="http://pr.atwola.com/promoclk/1615326657x4311227241x4298082137/aol?redir=http%3A%2F%2Fwww%2Eaol%2Ecom%2Fnewaol" target=_blank><B>Check out the new AOL</B> </A>. Most comprehensive set of free safety and security tools, free access to millions of high-quality videos from across the web, free AOL Mail and more.<br>
</div>
</BLOCKQUOTE>
<div></div>
<div><FONT size=1>-------------------------------------------------------------------<br>
The information contained in this message may be CONFIDENTIAL and is<br>
intended for the addressee only. Any <SPAN><SPAN class=correction id="">unauthorised</SPAN></SPAN> use, dissemination of the<br>
information or copying of this message is prohibited. If you are not the<br>
addressee, please notify the sender immediately by return e-mail and delete<br>
this message.<br>
Thank you.</FONT> </div>
</SPAN></div>
<div><PRE><TT>_______________________________________________
SAP-WUG mailing list
<A href="javascript:parent.ComposeTo('SAP-WUG%40mit.edu', '');">SAP-WUG@mit.edu</A>
<A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A>
</TT></PRE></div>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
<A href="javascript:parent.ComposeTo('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>
</BLOCKQUOTE></div>
<br>
</div>
<!-- end of AOLMsgPart_3_2de886ce-77ff-439b-88fd-d162b58fc7a4 -->
<div class=AOLPlainTextBody id=AOLMsgPart_4_2de886ce-77ff-439b-88fd-d162b58fc7a4><PRE><TT>_______________________________________________
SAP-WUG mailing list
<A href="mailto:SAP-WUG%40mit.edu">SAP-WUG@mit.edu</A>
<A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A>
</TT></PRE></div>
<!-- end of AOLMsgPart_4_2de886ce-77ff-439b-88fd-d162b58fc7a4 -->
<div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
<a href="http://pr.atwola.com/promoclk/1615326657x4311227241x4298082137/aol?redir=http%3A%2F%2Fwww%2Eaol%2Ecom%2Fnewaol" target="_blank"><b>Check out the new AOL</b></a>. Most comprehensive set of free safety and security tools, free access to millions of high-quality videos from across the web, free AOL Mail and more.<br />
</div>
</BODY></HTML>