<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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi Sheldon,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">thanks for the hint with the note and especially the SWEC.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Currently we only have set the flag for CREATE in the respective object.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"></span><img width="1232" height="252" id="Picture_x0020_1" src="cid:image001.png@01CEBE8A.FEA05DD0"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Nevertheless the system issues the event after a change to the PO as well.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">What we do is the following.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">After the&nbsp; creation of a purchase requisition of a certain scenario we call a function module which transfers the purch.requistion into a PO using
 FM 'BAPI_PO_CREATE1'. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">For some cases we need to do some adjustments to the just created PO and we do this after the document is available on the database using FM 'BAPI_PO_CHANGE'.
 Unfortunately the adjustment we need to do is not possible to be set in the initial CREATE step.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">And it looks like the 'BAPI_PO_CHANGE' is causing the system to create another BUS2012.RELEASESTEPCREATED event. In my opinion this should not
 happen according to the setup in SWEC .<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Any ideas??<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Karsten<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu]
<b>On Behalf Of </b>Sheldon Oxenberg<br>
<b>Sent:</b> Monday, September 30, 2013 4:56 PM<br>
<b>To:</b> SAP Workflow Users' Group<br>
<b>Subject:</b> [RMX:WL] Re: Check Function Module - how to stop duplicate WF trigger<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Hi Karsten,</span><br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">I believe many of us have encountered this before. &nbsp;You may need to remove config in Transaction SWEC.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Please review SAP Note 797775, and you can search the internet, for example, &quot;SAP bus2012 releasestepcreated event&quot;<br>
<br>
Regards,<br>
Sheldon Oxenberg<br>
CSC</span><br>
<br>
<br>
<img width="16" height="16" id="_x0000_i1025" src="cid:image002.gif@01CEBE8A.FEA05DD0" alt="Inactive hide details for &quot;Ernst, Karsten&quot; ---09/30/2013 10:35:51 AM---Hi everybody, I have quite a strange but interesting que"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#424282">&quot;Ernst,
 Karsten&quot; ---09/30/2013 10:35:51 AM---Hi everybody, I have quite a strange but interesting question I think to the experts in the group.</span><br>
<br>
<span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#5F5F5F">From:
</span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&quot;Ernst, Karsten&quot; &lt;<a href="mailto:Karsten.Ernst@fhp-ww.com">Karsten.Ernst@fhp-ww.com</a>&gt;</span><br>
<span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#5F5F5F">To: </span>
<span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&quot;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&quot; &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;</span><br>
<span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#5F5F5F">Date:
</span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">09/30/2013 10:35 AM</span><br>
<span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#5F5F5F">Subject:
</span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Check Function Module - how to stop duplicate WF trigger</span><br>
<span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#5F5F5F">Sent by:
</span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a></span><o:p></o:p></p>
<div class="MsoNormal">
<hr size="2" width="100%" noshade="" style="color:#8091A5" align="left">
</div>
<p class="MsoNormal"><br>
<br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Hi everybody,</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">I have quite a strange but interesting question I think to the experts in the group.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Due to the pre-processing setup the PO event BUS2012.RELEASESTEPCREATED is issues twice for the same object (same PO) within seconds.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">We see no chance to prevent the double triggering of the event and this should not be the discussion here.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">What I am looking for is your help on how to implement a Check Function Module to be integrated in the Event Type Linkage.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">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.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">If possible it might be could to check the WF Number / Receiver Type (WS9…) as well.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">As I have limited knowledge on how to implement this and especially on how to check for the active 1<sup>st</sup>&nbsp;instance of the workflow for the current object, any hint or code snippet is
 highly appreciated.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Best regards</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Karsten</span><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span><br>
<span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:gray">Karsten Ernst</span><br>
<span style="font-size:7.5pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:gray">&nbsp;</span><br>
<b><span style="font-size:7.5pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:gray">Freudenberg Home and Cleaning Solutions GmbH
</span></b><br>
<span style="font-size:7.5pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:gray">Supply Chain Management Systems and Processes</span><br>
<span style="font-size:7.5pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:gray">&nbsp;</span><br>
<span style="font-size:7.5pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:gray">Mail: &nbsp; &nbsp;
</span><a href="mailto:Karsten.Ernst@fhp-ww.com"><span style="font-size:7.5pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Karsten.Ernst@fhp-ww.com</span></a><br>
<span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span> <o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<div class="MsoNormal">
<hr size="2" width="100%" align="left">
</div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">Freudenberg Home and Cleaning Solutions GmbH<br>
Im Technologiepark 19, D-69469 Weinheim<br>
<br>
Geschäftsführer: Dr. Klaus Peter Meier, Arndt Miersch, Frank Reuther<br>
Sitz der Gesellschaft: Weinheim, Amtsgericht Mannheim HRB 431930</span><tt><span style="font-size:10.0pt">_______________________________________________</span></tt><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><br>
<tt>SAP-WUG mailing list</tt><br>
<tt><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a></tt><br>
<tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></tt></span><o:p></o:p></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äftsführer: Dr. Klaus Peter Meier, Arndt Miersch, Frank Reuther<br>
Sitz der Gesellschaft: Weinheim, Amtsgericht Mannheim HRB 431930<br>
</font>
</body>
</html>