<HTML><BODY>
<div>I belong to the No Hacking club ;-)</div>


<div>I had the good fortune to be on two&nbsp;projects upgrading severely hacked systems!</div>


<div>&nbsp;</div>


<div style="CLEAR: both">Best Regards,<br>
<SPAN class=correction id="">Ramki</SPAN> <SPAN class=correction id="">Maley</SPAN>.</div>


<div>&nbsp;</div>
&nbsp;<br>
-----Original Message-----<br>
From: KJETILK@statoil.com<br>
To: sap-wug@mit.edu<br>
Sent: Thu, 25 Jan 2007 2:42 AM<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_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a>

<div dir=ltr align=left><SPAN class=133523807-25012007><FONT face=Arial color=#0000ff>Ah, I didn't think far enough. You are of course right in that it is not straightforward to actually prevent the <SPAN class=correction id="">workflow</SPAN> from being started. So then the question is how far you are willing to go in terms of hacking the <SPAN class=correction id="">GOS</SPAN> functionality....</FONT></SPAN></div>


<div dir=ltr align=left><SPAN class=133523807-25012007><FONT face=Arial color=#0000ff></FONT></SPAN>&nbsp;</div>


<div dir=ltr align=left><SPAN class=133523807-25012007><FONT face=Arial color=#0000ff>Note: I didn't recommend that you hack the <SPAN class=correction id="">GOS</SPAN>, I just mentioned that it is a possibility :-)</FONT></SPAN></div>


<div align=left><FONT face=Arial>

<div align=left><FONT face=Arial>-- </FONT></div>


<div align=left><FONT face=Arial><SPAN class=correction id="">Kjetil</SPAN> <SPAN class=correction id="">Kilhavn</SPAN>, Statoil OFT&nbsp;<SPAN class=correction id="">GBS</SPAN> BAS&nbsp;<SPAN class=correction id="">DEV</SPAN> SAP</FONT></div>


<div align=left>

<div align=left><FONT face=Arial>

<div align=left>

<div align=left>

<div align=left><FONT face=Arial color=#0000ff></FONT></FONT></div>
</div>
</div>
</div>
</FONT></div>
</div>
<br>

<BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">

<div class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma><B>From:</B> sap-wug-bounces@mit.edu [<SPAN class=correction id="">mailto</SPAN>:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>workflow99@aol.com<br>
<B>Sent:</B> Thursday, January 25, 2007 12:58 AM<br>
<B>To:</B> sap-wug@mit.edu<br>
<B>Subject:</B> Re: <SPAN class=correction id="">GOS</SPAN> - Start <SPAN class=correction id="">Workflow</SPAN> only if not already started?<br>
</FONT><br>
</div>


<div></div>


<div>Sorry Mike, not in this case. <SPAN class=correction id=""><SPAN class=correction id="">SWETYPV</SPAN></SPAN> comes in only when the <SPAN class=correction id=""><SPAN class=correction id="">workflow</SPAN></SPAN> is started by an event. In my case I need to start the <SPAN class=correction id=""><SPAN class=correction id="">workflow</SPAN></SPAN> directly.&nbsp;</div>


<div><FONT face=Arial color=#0000ff></FONT>&nbsp;</div>


<div style="CLEAR: both">Best Regards,<br>
<SPAN class=correction id=""><SPAN class=correction id="">Ramki</SPAN></SPAN> <SPAN class=correction id=""><SPAN class=correction id="">Maley</SPAN></SPAN>.</div>


<div><FONT face=Arial color=#0000ff></FONT>&nbsp;</div>
&nbsp;<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=""><SPAN class=correction id="">GOS</SPAN></SPAN> - Start <SPAN class=correction id=""><SPAN class=correction id="">Workflow</SPAN></SPAN> only if not already started?<br>
<br>

<STYLE>#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a .AOLPlainTextBody {    FONT-SIZE: 12px; MARGIN: 0px; COLOR: #000; FONT-FAMILY: Tahoma, Verdana, Arial, Sans-Serif; BACKGROUND-COLOR: #fff}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a .AOLPlainTextBody PRE {    FONT-SIZE: 9pt}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a .AOLInlineAttachment {    MARGIN: 10px}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a .AOLAttachmentHeader {    BORDER-RIGHT: #7da8d4 1px solid; BORDER-TOP: #7da8d4 1px solid; BACKGROUND: #f9f9f9; FONT: 11px arial; BORDER-LEFT: #7da8d4 1px solid; BORDER-BOTTOM: #7da8d4 1px solid}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a .AOLAttachmentHeader .Title {    PADDING-RIGHT: 3px; PADDING-LEFT: 3px; BACKGROUND: #b5ddfa; PADDING-BOTTOM: 3px; FONT: 11px arial; PADDING-TOP: 3px}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a .AOLAttachmentHeader .FieldLabel {    PADDING-RIGHT: 10px; PADDING-LEFT: 9px; BACKGROUND: #f9f9f9; PADDING-BOTTOM: 
 1px; FONT: 11px arial; COLOR: #000000; PADDING-TOP: 1px}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a .AOLAttachmentHeader .FieldValue {    BACKGROUND: #f9f9f9; FONT: 11px arial; COLOR: #000000}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a .AOLAttachmentHeader A {    COLOR: #2864b4; TEXT-DECORATION: none}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a .AOLImage A {    COLOR: #2864b4; TEXT-DECORATION: none}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a .AOLAttachmentHeader A:hover {    COLOR: #2864b4; TEXT-DECORATION: underline}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a .AOLImage A:hover {    COLOR: #2864b4; TEXT-DECORATION: underline}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a BODY {    BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: 10pt; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px; FONT-FAMILY: "Verdana"; BACKGROUND-COLOR: white}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a P {    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARG
 IN: 0px; PADDING-TOP: 0px}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a IMG.managedImg {    WIDTH: 0px; HEIGHT: 0px}#AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a IMG.placeholder {    BORDER-RIGHT: #dadad6 1px solid; BORDER-TOP: #dadad6 1px solid; BACKGROUND: #f4f4f4 no-repeat center center; BORDER-LEFT: #dadad6 1px solid; WIDTH: 275px; BORDER-BOTTOM: #dadad6 1px solid; HEIGHT: 206px}</STYLE>


<div id=AOLMsgPart_3_2de886ce-77ff-439b-88fd-d162b58fc7a4>

<div><SPAN class=correction id=""><SPAN class=correction id="">Ramki</SPAN></SPAN></div>


<div><FONT face=Arial color=#0000ff></FONT>&nbsp;</div>


<div>Not if you invoke the function module as part of the <SPAN class=correction id=""><SPAN class=correction id="">SWETYPV</SPAN></SPAN> configuration and use it to decide whether to start a <SPAN class=correction id=""><SPAN class=correction id="">workflow</SPAN></SPAN> or not !</div>


<div><FONT face=Arial color=#0000ff></FONT>&nbsp;</div>


<div>Mike<br>
&nbsp;</div>


<div><SPAN class=gmail_quote>On 24/01/07, <B class=gmail_sendername><A>workflow99@aol.com</A></B> &lt;<A>workflow99@aol.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>Thanks <SPAN><SPAN class=correction id=""><SPAN class=correction id="">Kjetil</SPAN></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=""><SPAN class=correction id="">workflow</SPAN></SPAN></SPAN> instance that starts and then ends. And as you mention no feedback to the user other than a mail notification. </div>


<div><FONT face=Arial color=#0000ff></FONT>&nbsp;</div>


<div style="CLEAR: both">Best Regards,<br>
<SPAN><SPAN class=correction id=""><SPAN class=correction id="">Ramki</SPAN></SPAN></SPAN> <SPAN><SPAN class=correction id=""><SPAN class=correction id="">Maley</SPAN></SPAN></SPAN>.</div>
<SPAN class=q>

<div><FONT face=Arial color=#0000ff></FONT>&nbsp;</div>
&nbsp;<br>
-----Original Message-----<br>
From: <A>KJETILK@statoil.com</A><br>
To: <A>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=""><SPAN class=correction id="">GOS</SPAN></SPAN></SPAN> - Start <SPAN><SPAN class=correction id=""><SPAN class=correction id="">Workflow</SPAN></SPAN></SPAN> only if not already started?<br>
<br>


<div>

<div dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff>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>Your main problem will be feedback to the user, who should be told why a <SPAN><SPAN class=correction id=""><SPAN class=correction id="">workflow</SPAN></SPAN></SPAN> is not started.</FONT></SPAN></div>


<div align=left><FONT face=Arial>

<div align=left><FONT face=Arial>-- </FONT></div>


<div align=left><FONT face=Arial><SPAN><SPAN class=correction id=""><SPAN class=correction id="">Kjetil</SPAN></SPAN></SPAN> <SPAN><SPAN class=correction id=""><SPAN class=correction id="">Kilhavn</SPAN></SPAN></SPAN>, Statoil OFT&nbsp;<SPAN><SPAN class=correction id=""><SPAN class=correction id="">GBS</SPAN></SPAN></SPAN> BAS&nbsp;<SPAN><SPAN class=correction id=""><SPAN class=correction id="">DEV</SPAN></SPAN></SPAN> SAP</FONT></div>


<div align=left>

<div align=left><FONT face=Arial>

<div align=left>

<div align=left>

<div align=left><FONT face=Arial color=#0000ff></FONT></div>
</div>
</div>
</FONT></div>
</div>
</FONT></div>
</div>
</SPAN></div>
</div>


<div><SPAN class=e id=q_110555ceddb4cb2d_4><FONT face=Arial color=#0000ff></FONT><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><B>From:</B> <A>sap-wug-bounces@mit.edu</A> [<SPAN><SPAN class=correction id=""><SPAN class=correction id="">mailto</SPAN></SPAN></SPAN>:<A> sap-wug-bounces@mit.edu</A>] <B>On Behalf Of </B><A>workflow99@aol.com</A><br>
<B>Sent:</B> Wednesday, January 24, 2007 2:54 PM <br>
<B>To:</B> <A>sap-wug@mit.edu</A><br>
<B>Subject:</B> <SPAN><SPAN class=correction id=""><SPAN class=correction id="">GOS</SPAN></SPAN></SPAN> - Start <SPAN><SPAN class=correction id=""><SPAN class=correction id="">Workflow</SPAN></SPAN></SPAN> only if not already started? <br>
</FONT><br>
&nbsp;</div>


<div></div>


<div>Hello friends,</div>


<div><FONT face=Arial color=#0000ff></FONT>&nbsp;</div>


<div>Have a <SPAN><SPAN><SPAN class=correction id=""><SPAN class=correction id="">workflow</SPAN></SPAN></SPAN></SPAN> that is started by an event. Now, there is a&nbsp;need to allow the users to start&nbsp;the same&nbsp;<SPAN><SPAN><SPAN class=correction id=""><SPAN class=correction id="">Workflow</SPAN></SPAN></SPAN></SPAN> from <SPAN><SPAN><SPAN class=correction id=""><SPAN class=correction id="">GOS</SPAN></SPAN></SPAN></SPAN> as well. Is there any way to prevent the <SPAN><SPAN><SPAN class=correction id=""><SPAN class=correction id="">GOS</SPAN></SPAN></SPAN></SPAN> from starting the <SPAN><SPAN><SPAN class=correction id=""><SPAN class=correction id="">Workflow</SPAN></SPAN></SPAN></SPAN> if an incomplete&nbsp;<SPAN><SPAN><SPAN class=correction id=""><SPAN class=correction id="">workflow</SPAN></SPAN></SPAN></SPAN>&nbsp;instance exists for the object? User training is not an option ;)</div>


<div><FONT face=Arial color=#0000ff></FONT>&nbsp;</div>


<div><SPAN><SPAN><SPAN class=correction id=""><SPAN class=correction id="">TIA</SPAN></SPAN></SPAN></SPAN>.</div>


<div><FONT face=Arial color=#0000ff></FONT>&nbsp;</div>


<div style="CLEAR: both">Best Regards,<br>
<SPAN><SPAN><SPAN class=correction id=""><SPAN class=correction id="">Ramki</SPAN></SPAN></SPAN></SPAN> <SPAN><SPAN><SPAN class=correction id=""><SPAN class=correction id="">Maley</SPAN></SPAN></SPAN></SPAN>.</div>


<div style="CLEAR: both"><FONT face=Arial color=#0000ff></FONT>&nbsp;</div>


<div style="CLEAR: both">Cross posted in SAP-WUG &amp; <SPAN><SPAN class=correction id=""><SPAN class=correction id="">SDN</SPAN></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>
&nbsp;</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=""><SPAN class=correction id="">unauthorised</SPAN></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>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>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>


<div class=AOLPlainTextBody id=AOLMsgPart_4_2de886ce-77ff-439b-88fd-d162b58fc7a4><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>


<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>
</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 class=correction id="">unauthorised</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>
</div>
<!-- end of AOLMsgPart_3_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a -->

<div class=AOLPlainTextBody id=AOLMsgPart_4_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a><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_5eb0eb53-ffd8-4a9a-a263-f77a92683e8a --></BODY></HTML>