<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
Definitely, the SAP_WAPI_START_WORKFLOW should be used when the workflow itself is not dependent on events being fired, because events are very tricky. You must make sure that&nbsp;the event is not getting fired in 2 places, for&nbsp;different situations.<BR>
&nbsp;<BR>
If you're basing your custom workflow on events there's this FM, advisable to create own events and then call FM SWE_EVENT_CREATE_IN_UPD_TASK which you can call in UPDATE task to start your workflow, and it works perfect.<BR>
&nbsp;<BR>
Regards,<BR>
Vijay<BR><BR><BR>
<BLOCKQUOTE>
<HR>
To: sap-wug@mit.edu<BR>Subject: Best Practices?<BR>From: Hal_Fairless-NR@raytheon.com<BR>Date: Thu, 16 Aug 2007 07:09:21 -0700<BR><BR><BR><FONT face=sans-serif size=2>Workflow Folk,</FONT> <BR><BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; I have recently encounter a situation where a workflow was being started directly, and although the required information had been added to the database, the Commit process had not completed and when the w/f tried to start, the necessary object(s) had not be instantiated. &nbsp;We changed the process to initiate an 'event' and let the w/f processes take care of starting it and everything is now working as expected. &nbsp;My QUESTIONS to you all are: &nbsp;</FONT> <BR><BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; From a best practice's perspective, what are your thoughts on starting workflows directly??? &nbsp;</FONT> <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; When is it appropriate??? &nbsp; </FONT><BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; Have others experienced similar situations and specific solutions???? &nbsp;</FONT> <BR><BR><FONT face=sans-serif size=2>Regards and Thanks,</FONT> <BR><BR><FONT face=sans-serif size=2>Hal Fairless</FONT> <BR><FONT face=sans-serif size=2>SAP Workflow Support</FONT> <BR><FONT face=sans-serif size=2>RMS, Tucson </FONT></BLOCKQUOTE><br /><hr />Catch the cricket action with MSN!  <a href='http://content.msn.co.in/Sports/Cricket/Default.aspx' target='_new'>Click here!</a></body>
</html>