<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<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 workflow from being started. So
then the question is how far you are willing to go in terms of hacking the GOS
functionality....</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=133523807-25012007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=133523807-25012007><FONT face=Arial
color=#0000ff>Note: I didn't recommend that you hack the GOS, 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>Kjetil Kilhavn, Statoil OFT GBS
BAS DEV 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 tabIndex=-1>
<FONT face=Tahoma><B>From:</B> sap-wug-bounces@mit.edu
[mailto: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: GOS - Start Workflow
only if not already started?<BR></FONT><BR></DIV>
<DIV></DIV>
<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><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV style="CLEAR: both">Best Regards,<BR><SPAN class=correction
id="">Ramki</SPAN> <SPAN class=correction id="">Maley</SPAN>.</DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </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 {
        FONT-SIZE: 12px; MARGIN: 0px; COLOR: #000; FONT-FAMILY: Tahoma, Verdana, Arial, Sans-Serif; BACKGROUND-COLOR: #fff
}
.AOLPlainTextBody PRE {
        FONT-SIZE: 9pt
}
.AOLInlineAttachment {
        MARGIN: 10px
}
.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
}
.AOLAttachmentHeader .Title {
        PADDING-RIGHT: 3px; PADDING-LEFT: 3px; BACKGROUND: #b5ddfa; PADDING-BOTTOM: 3px; FONT: 11px arial; PADDING-TOP: 3px
}
.AOLAttachmentHeader .FieldLabel {
        PADDING-RIGHT: 10px; PADDING-LEFT: 9px; BACKGROUND: #f9f9f9; PADDING-BOTTOM: 1px; FONT: 11px arial; COLOR: #000000; PADDING-TOP: 1px
}
.AOLAttachmentHeader .FieldValue {
        BACKGROUND: #f9f9f9; FONT: 11px arial; COLOR: #000000
}
.AOLAttachmentHeader A {
        COLOR: #2864b4; TEXT-DECORATION: none
}
.AOLImage A {
        COLOR: #2864b4; TEXT-DECORATION: none
}
.AOLAttachmentHeader A:hover {
        COLOR: #2864b4; TEXT-DECORATION: underline
}
.AOLImage A:hover {
        COLOR: #2864b4; TEXT-DECORATION: underline
}
BODY {
        BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: 10pt; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px; FONT-FAMILY: "Verdana"; BACKGROUND-COLOR: white
}
P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
IMG.managedImg {
        WIDTH: 0px; HEIGHT: 0px
}
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="">Ramki</SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </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><FONT face=Arial color=#0000ff></FONT> </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><FONT face=Arial color=#0000ff></FONT> </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><FONT face=Arial
color=#0000ff></FONT> </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>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="">workflow</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="">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>
<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
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></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></FONT> </DIV>
<DIV><SPAN><SPAN><SPAN class=correction
id="">TIA</SPAN></SPAN></SPAN>.</DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </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"><FONT face=Arial
color=#0000ff></FONT> </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></BLOCKQUOTE><p></p><p><font size=1>-------------------------------------------------------------------<br>The information contained in this message may be CONFIDENTIAL and is<br>intended for the addressee only. Any unauthorised 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 size></BODY></HTML>