<!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></FONT>&nbsp;</DIV>
<DIV><SPAN class=569193609-20122001><FONT face=Arial color=#0000ff
size=2>David,</FONT></SPAN></DIV>
<DIV><SPAN class=569193609-20122001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=569193609-20122001><FONT face=Arial color=#0000ff size=2>you're
right, the time is hard-coded, so this would be a case for Alan
:-)</FONT></SPAN></DIV>
<DIV><SPAN class=569193609-20122001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=569193609-20122001><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> Thursday, December 13, 2001 3:42
  PM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> START_WITH_DELAY in
  SWE_EVENT_CREATE.... function modules<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>Hi Stephan,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thanks for this....learn something new all the
  time, isn't life great !!</FONT></DIV>
  <DIV><FONT face=Arial size=2>OK here's another question....can this time be
  configured ? It looks like its</FONT></DIV>
  <DIV><FONT face=Arial size=2>hard coded to me in the function modules. 10
  minutes seems a trifle excessive.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Alan....looks like a development request to me ?
  Could we make this configurable ?</FONT></DIV>
  <DIV><FONT face=Arial size=2>Can't hurt to ask right....:)</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Happy holidays.</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</FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></DIV>
  <BLOCKQUOTE dir=ltr
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
    <A title=Stephan.Becker.ext@mchw.siemens.de
    href="mailto:Stephan.Becker.ext@mchw.siemens.de">Becker Stephan (extern)</A>
    </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=SAP-WUG@MITVMA.MIT.EDU
    href="mailto:SAP-WUG@MITVMA.MIT.EDU">SAP-WUG@MITVMA.MIT.EDU</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 11, 2001 3:24
    AM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: Multiple Events triggered
    - 'No receiver entered' message for one of them in SWEL</DIV>
    <DIV><BR></DIV>
    <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></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>