<!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 5.00.2920.0" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>Hi
Michel, </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>I
won't give you my personal opinion of the HR events because language that strong
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>should
never be put in an email, but I can perhaps give you a few clues based on
my</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>own
experience with HR events.&nbsp; If there's an HR person out there perhaps they
can</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=700081720-20062001>elaborate....</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=700081720-20062001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>The
problem stems from the "lock indicator" field, which is used to indicate whether
or</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>not an
HR record is active.&nbsp; Some *expletive deleted* put the lock indicator in
the key</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>of the
HR record.&nbsp; So when you are going through the approval process what can
happen is </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=700081720-20062001>this:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=700081720-20062001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>User
creates original locked record: CREATED event is raised for the new locked
record.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>Locked
record is approved: APPROVED event is raised for the locked record.&nbsp; The
locked</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>record
is then "unlocked" - because this is a change in key, this means the
locked</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>record
has been deleted and a new record is created - raising the CREATED event.
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>An
unlocked record is locked again - i.e. the approval has&nbsp;been cancelled,
therefore</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>a
REQUESTCANCELLED event is raised for the unlocked record, and the record is then
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>locked
- because this is a change in key, this means the locked record has been
deleted</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>and a
new record has been created - raising the CREATED event and so on and so
forth.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=700081720-20062001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>If you
think this is *expletive deleted* confusing you are absolutely correct.&nbsp; I
was working</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>across
several types of HR records - I can't remember if ATTENDANCE was one of them
but</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>the
behaviour seemed to be common to a&nbsp; lot of HR records. </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=700081720-20062001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>In the
end for my HR workflows, I ended up using the HR event tables and the option of
using</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>HR
event function modules to control the events to try and make sure the following
was happening:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=700081720-20062001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>If a
record is created "locked" - raise REQUESTED event (not
CREATED)</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>If a
record is created "unlocked" - raise CREATED event</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>If a
locked record is unlocked - raise APPROVED event for old record, CREATED for new
record </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>If an
unlocked record is locked - raise REQUESTCANCELLED event for old record,
REQUESTED for new record</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=700081720-20062001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>At
least that way I had a consistent behaviour going that I could workflow
against.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>But
I'll admit that as a non-HR person I did get the help of some friendly HR folk
to help </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>me
sort this out, and I had some HR event function module examples to work
from.</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>Hope
that helps a little anyway.</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=700081720-20062001>If
anyone else in the SAP-WUG has some better way of handling it, I'd love to know
it myself for future</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=700081720-20062001>reference.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=700081720-20062001>Regards,</SPAN></FONT></DIV>
<DIV>
<DIV style="HEIGHT: 90px; WIDTH: 374px"><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 (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></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
  size=2>-----Original Message-----<BR><B>From:</B> Michel Laviolette
  [mailto:michel_laviolette@hotmail.com]<BR><B>Sent:</B> Thursday, 21 June 2001
  5:31 AM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B>
  attendance.approved vs attendance.created (40B)<BR><BR></DIV></FONT>
  <DIV>Hi,</DIV>
  <DIV>I've been experiencing discrepancies with some of the events raised
  (created) through the HR attendance approval process. I have event traces
  (logs) indicating that the attendance approval&nbsp;sometimes (???) raises the
  ATTENDANCE.CREATED followed by ATTENDANCE.REQUESTCANCELLED... Some other
  times, the event ATTENDANCE.APPROVED is followed by ATTENDANCE.CREATED. These
  inconsistencies seam to originate behind the 'Fast Entry' (PA71) approval
  process. My Attendance workflow has a wait for event REQUESTCANCELLED which
  needless to say only traps half of the conditions listed above.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>My Questions:</DIV>
  <DIV>1) Can anyone explain why the REQUESTCANCELLED &amp; APPROVED events are
  interchanged?</DIV>
  <DIV>2) If I include a wait for event APPROVED, what other processes could be
  impacted?</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Many thanks,</DIV>
  <DIV>Michel Laviolette</DIV>
  <DIV>Workflow Developer</DIV>
  <DIV>Hull Quebec Canada</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV><BR clear=all>
  <HR>
  Get Your Private, Free E-mail from MSN Hotmail at <A
  href="http://www.hotmail.com">http://www.hotmail.com</A>.<BR>
  <P></P></BLOCKQUOTE></BODY></HTML>