<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE id=ridTitle>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>BODY {
        MARGIN-TOP: 25px; FONT-SIZE: 10pt; MARGIN-LEFT: 25px; COLOR: #000000; FONT-FAMILY: Arial, Helvetica
}
P.msoNormal {
        MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
LI.msoNormal {
        MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
</STYLE>
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY id=ridBody background=cid:986304011@16022005-303C>
<DIV dir=ltr align=left><SPAN class=986304011-16022005>even better
!</SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P><B><FONT color=#000080 size=1>Phil Soady</FONT></B> <BR><FONT color=#808080
size=1>Senior Consultant</FONT> <BR><FONT color=#808080 size=1>Business
Technologies</FONT> <BR><B><FONT color=#808080 size=1>SAP Australia
</FONT></B><BR><FONT color=#808080 size=1>M +61 (0) 412 213 079</FONT>
<BR><FONT color=#808080 size=1>E </FONT><A
href="mailto:phil.soady@sap.com"><U><FONT color=#0000ff
size=1>phil.soady@sap.com</FONT></U></A> </P>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Griffiths,
Mark<BR><B>Sent:</B> Wednesday,16 February 2005 9:59 PM<BR><B>To:</B> SAP
Workflow Users' Group<BR><B>Subject:</B> RE:
SAP_WAPI_START_WORKFLOW<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=819135510-16022005>No hacking required: try
using SWW_WI_START_SIMPLE (description "Creation and Immediate Start of
WI - Simplified Interface").</SPAN></DIV>
<DIV><SPAN class=819135510-16022005></SPAN> </DIV>
<DIV><SPAN class=819135510-16022005>It isn't a WAPI but is included in the
BC610/BIT610 course (so it has an air of officialdom about it).</SPAN></DIV>
<DIV><SPAN class=819135510-16022005></SPAN> </DIV>
<DIV><SPAN class=819135510-16022005>Cheers,</SPAN></DIV>
<DIV><SPAN class=819135510-16022005></SPAN> </DIV>
<DIV><SPAN class=819135510-16022005>Mark</SPAN></DIV>
<DIV><SPAN class=819135510-16022005></SPAN> </DIV>
<DIV><SPAN class=819135510-16022005>SAP UK</SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma>-----Original Message-----<BR><B>From:</B>
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of
</B>Soady, Phil<BR><B>Sent:</B> 16 February 2005 10:34<BR><B>To:</B> SAP
Workflow Users' Group<BR><B>Subject:</B> RE:
SAP_WAPI_START_WORKFLOW<BR><BR></FONT></DIV>
<DIV><SPAN class=701295909-16022005>HAcks allowed ?</SPAN></DIV>
<DIV><SPAN class=701295909-16022005>read on...</SPAN></DIV>
<DIV><SPAN class=701295909-16022005></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005>call SAP_WAPI_START_WORKFLOW
(commit work and wait).</SPAN></DIV>
<DIV><SPAN class=701295909-16022005>You may need to place a short wait
statement in there.</SPAN></DIV>
<DIV><SPAN class=701295909-16022005></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005>Wait upto n seconds.</SPAN></DIV>
<DIV><SPAN class=701295909-16022005></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005>you get the WORKITEM ID
back.</SPAN></DIV>
<DIV><SPAN class=701295909-16022005></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005>Then call</SPAN></DIV>
<DIV><SPAN class=701295909-16022005>SAP_WAPI_EXECUTE_WORKITEM
</SPAN></DIV>
<DIV><SPAN class=701295909-16022005></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005>If the first step is a dialog one.
Away she goes....</SPAN></DIV>
<DIV><SPAN class=701295909-16022005></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005>Worse case scenario is you read all
workitems using SAP_WAPI_WORKITEMS_BY_TASK </SPAN></DIV>
<DIV><SPAN class=701295909-16022005> for a TASK to be executed. It
should belong to the WORKITEM ID of the Workflow actually
started.</SPAN></DIV>
<DIV><SPAN class=701295909-16022005>then call <SPAN
class=701295909-16022005>SAP_WAPI_EXECUTE_WORKITEM with this
ID.</SPAN></SPAN></DIV>
<DIV><SPAN class=701295909-16022005><SPAN
class=701295909-16022005></SPAN></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005><SPAN class=701295909-16022005>I just
tested this with a single step WFLOW.</SPAN></SPAN></DIV>
<DIV><SPAN class=701295909-16022005><SPAN
class=701295909-16022005></SPAN></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005><SPAN
class=701295909-16022005>WSXXXXXX</SPAN></SPAN></DIV>
<DIV><SPAN class=701295909-16022005><SPAN class=701295909-16022005>has 1
step </SPAN></SPAN></DIV>
<DIV><SPAN class=701295909-16022005><SPAN class=701295909-16022005>decision
task</SPAN></SPAN></DIV>
<DIV><SPAN class=701295909-16022005><SPAN
class=701295909-16022005></SPAN></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005><SPAN
class=701295909-16022005></SPAN></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005><SPAN
class=701295909-16022005></SPAN></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005><SPAN class=701295909-16022005>SE37
SAP_WAPI_START_WORKFLOW </SPAN></SPAN></DIV>
<DIV><SPAN class=701295909-16022005><SPAN class=701295909-16022005>The SE37
on <SPAN class=701295909-16022005>SAP_WAPI_EXECUTE_WORKITEM with the
returned wI ID.</SPAN></SPAN></SPAN></DIV>
<DIV><SPAN class=701295909-16022005><SPAN class=701295909-16022005><SPAN
class=701295909-16022005>It worked.</SPAN></SPAN></SPAN></DIV>
<DIV><SPAN class=701295909-16022005><SPAN class=701295909-16022005><SPAN
class=701295909-16022005></SPAN></SPAN></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005><SPAN class=701295909-16022005><SPAN
class=701295909-16022005></SPAN></SPAN></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005><SPAN class=701295909-16022005>DONT
FORGET: The WSxxxxxx needs to have the user calling it as an agent, not just
the tasks!</SPAN></SPAN></DIV>
<DIV><SPAN class=701295909-16022005><SPAN
class=701295909-16022005></SPAN></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005><SPAN class=701295909-16022005>;-)
Smoking</SPAN></SPAN></DIV>
<DIV><SPAN class=701295909-16022005><SPAN
class=701295909-16022005></SPAN></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005><SPAN
class=701295909-16022005></SPAN></SPAN> </DIV>
<DIV><SPAN class=701295909-16022005></SPAN> </DIV><!-- Converted from text/rtf format -->
<P><B><FONT color=#000080 size=1>Phil Soady</FONT></B> <BR><FONT
color=#808080 size=1>Senior Consultant</FONT> <BR><FONT color=#808080
size=1>Business Technologies</FONT> <BR><B><FONT color=#808080 size=1>SAP
Australia </FONT></B><BR><FONT color=#808080 size=1>M +61 (0) 412 213
079</FONT> <BR><FONT color=#808080 size=1>E </FONT><A
href="mailto:phil.soady@sap.com"><U><FONT color=#0000ff
size=1>phil.soady@sap.com</FONT></U></A> </P>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Dart,
Jocelyn<BR><B>Sent:</B> Wednesday,16 February 2005 12:27 PM<BR><B>To:</B>
SAP Workflow Users' Group<BR><B>Subject:</B> RE:
SAP_WAPI_START_WORKFLOW<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=168372201-16022005>Rick, </SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=168372201-16022005>No, you are
correct, the WAPI can only start the workflow. It can't interrupt
the current transaction as this could cause logical unit of work issues
with the current transaction, e.g. data may not be saved or data
relationships may be corrupted. What you can do is use your own
screen, e.g. in a BADI if it is available and allows you to do this,
and then pass this information to the workflow using the WAPI - e.g. so
that the workflow can then skip that first step as it already has the
data. </SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=168372201-16022005></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=168372201-16022005>Other than that,
yes you can raise the work item as an express item, which will give a
message with the option of going immediately to their inbox. </SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=168372201-16022005></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=168372201-16022005>Would you please
give me the chapter/section/page/statement you are referring to and we'll
put a clarification up on the workflowbook site. </SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=168372201-16022005>Regards,</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=168372201-16022005>Jocelyn
</SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="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>Josefek,
Richard<BR><B>Sent:</B> Wednesday,16 February 2005 7:55 AM<BR><B>To:</B>
SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B>
SAP_WAPI_START_WORKFLOW<BR></FONT><BR></DIV>
<DIV></DIV>
<P><SPAN class=760534820-15022005>I am trying to get the first step of
my workflow to popup immediately without the user visiting their inbox.
In the publication "<EM>Practical Workflow for SAP</EM>" it seems to
infer that this can be accomplished by using
SAP_WAPI_START_WORKFLOW.</SPAN></P>
<P><SPAN class=760534820-15022005>For testing purposes, I have a single
step workflow that brings up a form for the user to fill out. I have
been trying to use this WAPI and have had some success in starting the
workflow, but it appears in the users inbox. </SPAN></P>
<P><SPAN class=760534820-15022005>Does anyone have any experience with
this. Can you enlighten me as to how to get this form to popup when the
WAPI is executed?</SPAN></P>
<P><SPAN class=760534820-15022005>Thanx</SPAN></P>
<P><SPAN class=760534820-15022005>Rick</SPAN></P>
<P>---------------------------------------------------------<BR>This
e-mail transmission may contain information that is proprietary,
privileged and/or confidential and is intended exclusively for the
person(s) to whom it is addressed. Any use, copying, retention or
disclosure by any person other than the intended recipient or the
intended recipient's designees is strictly prohibited. If you are not
the intended recipient or their designee, please notify the sender
immediately by return e-mail and delete all copies.
<BR><BR>---------------------------------------------------------<BR></P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>