Checkfunction in SWEC/SWEINST

Workflow99@aol.com Workflow99 at aol.com
Sat Oct 8 19:20:42 EDT 2005


 
 
 
Hi Manish,
 
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.
 
2)
  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. 
  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 FM.
 
Perhaps, I can help more if you can post the code of yor FM.
 
Regards,
Ramki Maley
Workflow Developer,  USCBP.
248-613-1287 (C)

 
 
In a message dated 10/8/2005 3:09:58 PM Eastern Standard Time,  
manish.khanna at amd.com writes:

Hi,
 
Now  that I have realized that consignment documents cannot have release 
strategy  and our requirement is to trigger an approval workflow when a 
consignment  document is "changed" I thought of the following.
 
1.  Create a check function.
2.  Attach it (in SWEC)  to change object EINKBELEG / BUS2013 / On  Change / 
Changed(event in BUS2013)
3.  The check function triggers BUS2013/'RELEASESTEPCREATED'  event.
 
Now  this seems to be a solution, but its not working.
 
Why  ?? Because
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.
 
2.  When it is called 
 a) The database locks on EINK, EKPO etc are not released (strange  !!!)
 b) sometimes 2 RELEASESTEPCREATED are  triggered.
 
Any  ideas or tips ??
 
Thanks
Manish


_______________________________________________
SAP-WUG  mailing  list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20051008/82103d94/attachment.htm


More information about the SAP-WUG mailing list