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