<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi group,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have a tricky question for the group. Using table 
T779X to trigger a function module when an org unit</FONT></DIV>
<DIV><FONT face=Arial size=2>is created to trigger a workflow, the function 
module&nbsp;does the following :-</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>1. Uses SWE_EVENT_CREATE to trigger the event 
'Created' and a WS workflow is started. In this workflow there is a wait step 
based on an event called 'Responsibility'.</FONT></DIV>
<DIV><FONT face=Arial size=2>2. The function module could also trigger the event 
'Responsibility' using SWE_EVENT_CREATE immediately after the 'Created' 
event.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here's the issue: the wait step for the event 
'Responsibility' does not find a receiver because the 2 events are almost 
triggered simultaneously and the wait step in the workflow has not 
been&nbsp;created yet&nbsp;!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have put&nbsp;in the ABAP code the command 'WAIT 
UP TO n SECONDS' after the event 'Created' is triggered but hate this as it 
slows the dialog transaction !! I have tried using SWE_EVENT_CREATE_IN_UPD_TASK 
but that doesn't help either.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Has anyone else had this sort of problem, if so how 
did you go about solving it ?.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Cheers</FONT></DIV>
<DIV><FONT face=Arial size=2>Dave Weston</FONT></DIV>
<DIV><FONT face=Arial size=2>Clockwork.ca&nbsp;&nbsp;</FONT></DIV>
<DIV>&nbsp;&nbsp;&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>