<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 the event is not getting fired in 2 places, for different situations.<BR>
<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>
<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> 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. 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. My QUESTIONS to you all are: </FONT> <BR><BR><FONT face=sans-serif size=2> From a best practice's perspective, what are your thoughts on starting workflows directly??? </FONT> <BR><FONT face=sans-serif size=2> When is it appropriate??? </FONT><BR><FONT face=sans-serif size=2> Have others experienced similar situations and specific solutions???? </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>