<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>
 
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=074214202-20032002><FONT face=Arial color=#0000ff size=2>Hi
Phil, </FONT></SPAN></DIV>
<DIV><SPAN class=074214202-20032002><FONT face=Arial color=#0000ff size=2>Did
you know you can pass the old/new changes made by a change document as event
parameters?</FONT></SPAN></DIV>
<DIV><SPAN class=074214202-20032002><FONT face=Arial color=#0000ff
size=2>There's documentation on this technique in the SAP Library - you just
need to create the relevant</FONT></SPAN></DIV>
<DIV><SPAN class=074214202-20032002><FONT face=Arial color=#0000ff size=2>event
parameters in your business object and the standard functionality does the rest.
</FONT></SPAN></DIV>
<DIV><SPAN class=074214202-20032002><FONT face=Arial color=#0000ff size=2>That
might solve your problem also. </FONT></SPAN></DIV>
<DIV><SPAN class=074214202-20032002><FONT face=Arial color=#0000ff
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=074214202-20032002><FONT face=Arial color=#0000ff size=2>
<DIV style="WIDTH: 374px; HEIGHT: 90px"><FONT size=2>
<TABLE>
  <TBODY>
  <TR>
    <TD></TD></FONT>
    <TD>
      <DIV><FONT size=2><FONT color=#0000ff>Jocelyn Dart</FONT> <BR><FONT
      color=#0000ff>Consultant (EBP, BBP, Ecommerce, Internet Transaction
      Server, Workflow)</FONT> <BR><FONT color=#0000ff>SAP
      Australia</FONT></FONT></DIV>
      <DIV><FONT color=#0000ff><FONT size=2>Email </FONT><A
      href="mailto:jocelyn.dart@sap.com"><FONT
      size=2>jocelyn.dart@sap.com</FONT></A><BR><FONT size=2>Tel: +61<SPAN
      class=153385400-09052000> 412 390 267</SPAN><BR>Fax: +61&nbsp;2 9935
      4880</FONT></FONT></DIV></TD></TR></TBODY></TABLE></DIV></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> Francois Beaubien
  [mailto:Beaubien.Francois@hydro.qc.ca]<BR><B>Sent:</B> Wednesday, 20 March
  2002 3:44 AM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> RE :
  Workflow Timing<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN
  class=781572715-19032002>Hello,</SPAN></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN
  class=781572715-19032002></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=781572715-19032002>I
  have use the enqueue function in situation like this to validate that the LUW
  is completed. The lock object is release (dequeue) after the V1
  functions&nbsp;are completed. Be aware that the change documents are probably
  inserted with a V2 function module. </SPAN></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN
  class=781572715-19032002></SPAN></FONT>&nbsp;</DIV>
  <DIV><SPAN class=781572715-19032002></SPAN><FONT face=Arial><FONT
  color=#0000ff><FONT size=2><SPAN class=781572715-19032002>You could call the
  </SPAN>EVVBAKE<SPAN class=781572715-19032002> enqueue function&nbsp;in a loop
  until&nbsp;the order is save and add a delay for the V2 function to
  complete.&nbsp;</SPAN></FONT></FONT></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
  <DIV><SPAN class=781572715-19032002><FONT face=Arial color=#0000ff size=2>You
  can see the lock entries in SM12 and the update module in SM13 (you must set
  the "update debugging" setting in the debu</FONT></SPAN><SPAN
  class=781572715-19032002><FONT face=Arial color=#0000ff size=2>gger to see
  them). </FONT></SPAN></DIV>
  <DIV><SPAN class=781572715-19032002><FONT face=Arial color=#0000ff
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=781572715-19032002><FONT face=Arial color=#0000ff size=2>To
  be 100% certain, you must query the VBHDR table to&nbsp;confirm that all
  update function modules are completed. </FONT></SPAN></DIV><!-- Converted from text/rtf format -->
  <P><SPAN lang=fr-ca><FONT face="Trebuchet MS" color=#0000ff>Frangois Beaubien,
  ing.</FONT></SPAN> <BR></P>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV></DIV>
    <DIV class=OutlookMessageHeader lang=fr dir=ltr align=left><FONT face=Tahoma
    size=2>-----Message d'origine-----<BR><B>De&nbsp;:</B> Czerwiec, Phil
    [mailto:Phil.Czerwiec@andrew.com] <BR><B>Envoyi&nbsp;:</B> lundi 18 mars
    2002 11:26<BR><B>@&nbsp;:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Objet&nbsp;:</B>
    Workflow Timing<BR><BR></FONT></DIV>
    <P><FONT face="Times New Roman">We have several workflows that are triggered
    on the event of the Sales Order Change.&nbsp; One of the sub-workflows that
    is triggered by this event is to check the document change log (tables CDHDR
    &amp; CDPOS).&nbsp; Occasionally, there seems to be a timing problem.&nbsp;
    It appears that the document change log is read before the tables have been
    updated.&nbsp; We are using the SAP supplied function module
    'CHANGEDOCUMENT_READ_WITHOUT_ED' to identified which type of change was
    made.&nbsp; How can we ensure that the document change log has been updated
    before it is read?&nbsp;&nbsp;&nbsp;&nbsp; </FONT></P>
    <P><FONT face="Times New Roman">Phil Czerwiec</FONT> <BR><FONT
    face="Times New Roman">Andrew Corporation</FONT> <BR><FONT
    face="Times New Roman">P - (708) 873-2223</FONT> <BR><FONT
    face="Times New Roman">C - (708) 218-3120</FONT>
</P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>