<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi everybody,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US">I have quite a strange but interesting question I think to the experts in the group.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Due to the pre-processing setup the PO event BUS2012.RELEASESTEPCREATED is issues twice for the same object (same PO) within seconds.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">We see no chance to prevent the double triggering of the event and this should not be the discussion here.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What I am looking for is your help on how to implement a Check Function Module to be integrated in the Event Type Linkage.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I would like to determine if there is already an active WF instance available for the current PO number (should be the object key of the event) and if this is the case the event should raise an exception and should not
 trigger the WF to start.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If possible it might be could to check the WF Number / Receiver Type (WS9&#8230;) as well.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">As I have limited knowledge on how to implement this and especially on how to check for the active 1<sup>st</sup> instance of the workflow for the current object, any hint or code snippet is highly appreciated.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Karsten<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:12.0pt;color:gray;mso-fareast-language:DE">Karsten Ernst<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;color:gray;mso-fareast-language:DE"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:9.0pt;color:gray;mso-fareast-language:DE">Freudenberg Home and Cleaning Solutions GmbH
<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;color:gray;mso-fareast-language:DE">Supply Chain Management Systems and Processes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;color:gray;mso-fareast-language:DE"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;color:gray;mso-fareast-language:DE">Mail:&nbsp;&nbsp;&nbsp;&nbsp;
<a href="mailto:Karsten.Ernst@fhp-ww.com"><span style="color:blue">Karsten.Ernst@fhp-ww.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">Freudenberg Home and Cleaning Solutions GmbH<br>
Im Technologiepark 19, D-69469 Weinheim<br>
<br>
Gesch&auml;ftsf&uuml;hrer: Dr. Klaus Peter Meier, Arndt Miersch, Frank Reuther<br>
Sitz der Gesellschaft: Weinheim, Amtsgericht Mannheim HRB 431930<br>
</font>
</body>
</html>