<!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 color=#0000ff size=2><SPAN
class=755492108-11122001>dave,</SPAN></FONT></DIV>
<DIV><SPAN class=755492108-11122001><FONT face=Arial color=#0000ff size=2>use
the parameter "start_with_delay" in the swe_event_create_in_upd_task function
module for one of your event creations, that will delay the creation of that
event for 10 minutes without slowing down the dialog task. when you are starting
event creation in the dialog task, always use the _in_update_task function
module, as otherwise you have an event and no corresponding document on the
database in case of an update failure.</FONT></SPAN></DIV>
<DIV><SPAN class=755492108-11122001><FONT face=Arial color=#0000ff
size=2>stephan</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
  size=2>-----Original Message-----<BR><B>From:</B> David Weston
  [mailto:weston@clockwork.ca]<BR><B>Sent:</B> Tuesday, December 11, 2001 2:32
  AM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Multiple Events
  triggered - 'No receiver entered' message for one of them in
  SWEL<BR><BR></FONT></DIV>
  <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></BLOCKQUOTE></BODY></HTML>