<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=US-ASCII">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY id=role_body style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial" 
bottomMargin=7 leftMargin=7 topMargin=7 rightMargin=7><FONT id=role_document 
face=Arial color=#000000 size=2>
<DIV>
<DIV>
<DIV>
<DIV>Hi Manish,</DIV>
<DIV>&nbsp;</DIV>
<DIV>1) The Event function module assigned in SWEC is called everytime the 
specified change takes place. It is not necessary that the event have a 
receiver. A Check function module is assigned to a Event - Receiver 
combinationin in SWETYPV and it does not get executed unless the event linkage 
is active.</DIV>
<DIV>&nbsp;</DIV>
<DIV>2)</DIV>
<DIV>&nbsp; a) The Event FM is called in the update module and it is possible 
that locks are not released until all the updates are completed. </DIV>
<DIV>&nbsp; b) I did come across a similar situation for one of my BOs - but it 
was an SAP bug. I circumvented the problem by using a check in my 
event&nbsp;FM.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Perhaps, I can help more if you can post the code of yor FM.</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT lang=0 face=Arial size=2 FAMILY="SANSSERIF" 
PTSIZE="10">Regards,<BR>Ramki Maley<BR>Workflow Developer, 
USCBP.<BR>248-613-1287 (C)</FONT></DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>In a message dated 10/8/2005 3:09:58 PM Eastern Standard Time, 
manish.khanna@amd.com writes:</DIV>
<BLOCKQUOTE style="PADDING-LEFT: 0px; MARGIN-LEFT: 0px"><FONT 
  style="BACKGROUND-COLOR: transparent" face=Arial color=#000000 size=2>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2>Hi,</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff size=2>Now 
  that I have realized that consignment documents cannot have release strategy 
  and our requirement is to trigger an&nbsp;approval workflow when a consignment 
  document is "changed" I thought of the following.</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff size=2>1. 
  Create a check function.</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff size=2>2. 
  Attach it&nbsp;(in SWEC) &nbsp;to change object EINKBELEG / BUS2013 / On 
  Change / Changed(event in BUS2013)</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff size=2>3. 
  The check function&nbsp;triggers BUS2013/'RELEASESTEPCREATED' 
  event.</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff size=2>Now 
  this seems to be a solution, but its not working.</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff size=2>Why 
  ?? </FONT></SPAN><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2>Because</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff size=2>1. 
  It seems that the check function is not called every time. After some analysis 
  it seems that if BUS2013/CHANGED does not have a receiver, it does not calls 
  the check function. Don't know if this is correct.</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff size=2>2. 
  When it is called </FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2>&nbsp;a) The database locks on EINK, EKPO etc are not released (strange 
  !!!)</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2>&nbsp;b) sometimes 2 RELEASESTEPCREATED are 
  triggered.</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff size=2>Any 
  ideas or tips ??</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2>Thanks</FONT></SPAN></DIV>
  <DIV><SPAN class=323465018-08102005><FONT face=Arial color=#0000ff 
  size=2>Manish</FONT></SPAN></DIV><BR><BR>_______________________________________________<BR>SAP-WUG 
  mailing 
  list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></FONT></BLOCKQUOTE></DIV>
<DIV></DIV></DIV></FONT></BODY></HTML>