<html><body>
<p><font size="2" face="sans-serif">Hi Karsten,</font><br>
<br>
<font size="2" face="sans-serif">I believe the BUS2012.RELEASESTEPCREATED event is triggered (a) &quot;On Create&quot; of the Release Step, when &quot;creating&quot; purchase orders that are subject to the Release Strategy, and also (b) &quot;On Create&quot; of the Release Step, when &quot;changing&quot; purchase orders that are subject to the Release Strategy.</font><br>
<br>
<font size="2" face="sans-serif">SAP Note </font><font size="2" face="Arial">797775 may correct your issue without having any other impact on the SAP standard functionality.</font><br>
<font size="2" face="sans-serif"><br>
Regards.<br>
Sheldon Oxenberg<br>
CSC<br>
</font><br>
<br>
<img width="16" height="16" src="cid:1__=0ABBF164DFAFAAAE8f9e8a93df938690@csc.com" border="0" alt="Inactive hide details for &quot;Ernst, Karsten&quot; ---10/01/2013 04:01:55 AM---Hi Sheldon, thanks for the hint with the note and especi"><font size="2" color="#424282" face="sans-serif">&quot;Ernst, Karsten&quot; ---10/01/2013 04:01:55 AM---Hi Sheldon, thanks for the hint with the note and especially the SWEC.</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:        </font><font size="1" face="sans-serif">&quot;Ernst, Karsten&quot; &lt;Karsten.Ernst@fhp-ww.com&gt;</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">&quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:        </font><font size="1" face="sans-serif">10/01/2013 04:01 AM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject:        </font><font size="1" face="sans-serif">RE: [RMX:WL] Re: Check Function Module - how to stop duplicate WF        trigger</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Sent by:        </font><font size="1" face="sans-serif">sap-wug-bounces@mit.edu</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font size="2" color="#1F497D" face="Calibri">Hi Sheldon,</font><br>
<font size="2" color="#1F497D" face="Calibri">thanks for the hint with the note and especially the SWEC.</font><br>
<font size="2" color="#1F497D" face="Calibri">&nbsp;</font><br>
<font size="2" color="#1F497D" face="Calibri">Currently we only have set the flag for CREATE in the respective object.</font><br>
<img src="cid:2__=0ABBF164DFAFAAAE8f9e8a93df938690@csc.com" width="1232" height="252"><br>
<font size="2" color="#1F497D" face="Calibri">&nbsp;</font><br>
<font size="2" color="#1F497D" face="Calibri">Nevertheless the system issues the event after a change to the PO as well.</font><br>
<font size="2" color="#1F497D" face="Calibri">What we do is the following.</font><br>
<font size="2" color="#1F497D" face="Calibri">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'. </font><br>
<font size="2" color="#1F497D" face="Calibri">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.</font><br>
<font size="2" color="#1F497D" face="Calibri">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 .</font><br>
<font size="2" color="#1F497D" face="Calibri">&nbsp;</font><br>
<font size="2" color="#1F497D" face="Calibri">Any ideas??</font><br>
<font size="2" color="#1F497D" face="Calibri">&nbsp;</font><br>
<font size="2" color="#1F497D" face="Calibri">Best regards</font><br>
<font size="2" color="#1F497D" face="Calibri">Karsten</font><br>
<font size="2" color="#1F497D" face="Calibri">&nbsp;</font><br>
<font size="3" face="Times New Roman">&nbsp;</font><br>
<font size="2" face="Tahoma"><b>From:</b></font><font size="2" face="Tahoma">&nbsp;sap-wug-bounces@mit.edu [</font><font size="2" face="Tahoma"><a href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</a></font><font size="2" face="Tahoma">] </font><font size="2" face="Tahoma"><b>On Behalf Of </b></font><font size="2" face="Tahoma">Sheldon Oxenberg</font><font size="2" face="Tahoma"><b><br>
Sent:</b></font><font size="2" face="Tahoma">&nbsp;Monday, September 30, 2013 4:56 PM</font><font size="2" face="Tahoma"><b><br>
To:</b></font><font size="2" face="Tahoma">&nbsp;SAP Workflow Users' Group</font><font size="2" face="Tahoma"><b><br>
Subject:</b></font><font size="2" face="Tahoma">&nbsp;[RMX:WL] Re: Check Function Module - how to stop duplicate WF trigger</font><br>
<font size="3" face="Times New Roman">&nbsp;</font>
<p><font size="2" face="Arial">Hi Karsten,</font><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
I believe many of us have encountered this before. &nbsp;You may need to remove config in Transaction SWEC.<br>
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</font><font size="3" face="Times New Roman"><br>
<br>
<br>
</font><img src="cid:1__=0ABBF164DFAFAAAE8f9e8a93df938690@csc.com" width="16" height="16" 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"><font size="2" color="#424282" face="Arial">&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.</font><font size="3" face="Times New Roman"><br>
</font><font size="1" color="#5F5F5F" face="Arial"><br>
From: </font><font size="1" face="Arial">&quot;Ernst, Karsten&quot; &lt;</font><a href="mailto:Karsten.Ernst@fhp-ww.com"><font size="1" color="#0000FF" face="Arial"><u>Karsten.Ernst@fhp-ww.com</u></font></a><font size="1" face="Arial">&gt;</font><font size="1" color="#5F5F5F" face="Arial"><br>
To: </font><font size="1" face="Arial">&quot;</font><a href="mailto:sap-wug@mit.edu"><font size="1" color="#0000FF" face="Arial"><u>sap-wug@mit.edu</u></font></a><font size="1" face="Arial">&quot; &lt;</font><a href="mailto:sap-wug@mit.edu"><font size="1" color="#0000FF" face="Arial"><u>sap-wug@mit.edu</u></font></a><font size="1" face="Arial">&gt;</font><font size="1" color="#5F5F5F" face="Arial"><br>
Date: </font><font size="1" face="Arial">09/30/2013 10:35 AM</font><font size="1" color="#5F5F5F" face="Arial"><br>
Subject: </font><font size="1" face="Arial">Check Function Module - how to stop duplicate WF trigger</font><font size="1" color="#5F5F5F" face="Arial"><br>
Sent by: </font><a href="mailto:sap-wug-bounces@mit.edu"><font size="1" color="#0000FF" face="Arial"><u>sap-wug-bounces@mit.edu</u></font></a><br>
<hr width="100%" size="2" align="left" noshade><br>
<font size="3" face="Times New Roman"><br>
<br>
</font><font size="2" face="Calibri"><br>
Hi everybody,<br>
 <br>
I have quite a strange but interesting question I think to the experts in the group.<br>
Due to the pre-processing setup the PO event BUS2012.RELEASESTEPCREATED is issues twice for the same object (same PO) within seconds.<br>
We see no chance to prevent the double triggering of the event and this should not be the discussion here.<br>
What I am looking for is your help on how to implement a Check Function Module to be integrated in the Event Type Linkage.<br>
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.<br>
If possible it might be could to check the WF Number / Receiver Type (WS9…) as well.<br>
 <br>
As I have limited knowledge on how to implement this and especially on how to check for the active 1</font><font size="2" face="Calibri"><sup>st</sup></font><font size="2" face="Calibri">&nbsp;instance of the workflow for the current object, any hint or code snippet is highly appreciated.<br>
 <br>
Best regards<br>
Karsten<br>
 </font><font size="3" color="#808080" face="Calibri"><br>
Karsten Ernst</font><font size="1" color="#808080" face="Calibri"><br>
 </font><font size="1" color="#808080" face="Calibri"><b><br>
Freudenberg Home and Cleaning Solutions GmbH </b></font><font size="1" color="#808080" face="Calibri"><br>
Supply Chain Management Systems and Processes<br>
 <br>
Mail: &nbsp; &nbsp; </font><a href="mailto:Karsten.Ernst@fhp-ww.com"><font size="1" color="#0000FF" face="Calibri"><u>Karsten.Ernst@fhp-ww.com</u></font></a><font size="2" face="Calibri"><br>
 </font><font size="3" face="Times New Roman">&nbsp;</font>
<p><font size="3" face="Times New Roman">&nbsp;</font><br>
<hr width="100%" size="2" align="left"><br>
<font size="1" color="#808080" face="Arial">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</font><font size="2" face="Courier New">_______________________________________________<br>
SAP-WUG mailing list</font><font size="2" color="#0000FF" face="Courier New"><u><br>
</u></font><a href="mailto:SAP-WUG@mit.edu"><font size="2" color="#0000FF" face="Courier New"><u>SAP-WUG@mit.edu</u></font></a><font size="2" color="#0000FF" face="Courier New"><u><br>
</u></font><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug"><font size="2" color="#0000FF" face="Courier New"><u>http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></a>
<p><font size="3" face="serif"><br>
</font><hr width="100%" size="2" align="left"><font size="1" color="#808080" face="Arial">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</font><tt><font size="2">_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
</font></tt><tt><font size="2"><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></font></tt><tt><font size="2"><br>
</font></tt>
<p></body></html>