<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
hi,<BR>
&nbsp;<BR>
you can try putting conditions in the header of the workflow which is linked to the event.<BR>
can you maintain a condition for first release code - R5? In that case workflow will be triggered only for the initial release code. Is that sensible? Otherwise you can also maintain programming parameters in SWETYPV&nbsp;check function modules, with which you can check if current object id i.e purchase order is already executing in the approval workflow, if yes then don't trigger the event. i.e sy-subrc = 4 or something.<BR>
&nbsp;<BR>
Regards,<BR>
Vijay<BR><BR>
<BLOCKQUOTE>
<HR>
Subject: Purchase Req - Multiple Release codes<BR>Date: Mon, 20 Aug 2007 11:51:56 -0500<BR>From: pprasad@citgo.com<BR>To: sap-wug@mit.edu<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<FONT face=Arial size=2>Hello MIT Friends,</FONT> <BR>
<FONT face=Arial size=2>&nbsp;&nbsp; I have an issue with my Purchase requsition workflow. The only triggering event for this workflow is 'Releasestepcreated'. Everything was working great until now just because we had only one releasecode At ONE TIME. But now they have come up with the idea that suppose if the Release code is greaterr than release codeR5(250,000 to 500,000), the config has been changed in such a way that for example, 3 release codes will appear in the 'Release Strategy' tab R5, R6 and R7. Before R7 was the only release code and when he approves it, that’s it. But now before R7 approves it, the workflow should first go to R5 and he has to hit the Release button and save it and then it has to go the next release code 'R6' and then after he releases it, the workflow should go to R7. I have taken care of all these logic.</FONT><BR>
<FONT face=Arial size=2>Now the problem I am facing is the 'ReleaseStepCreated' event is being triggered 3 time when the purchase req is created. How do I restrict this event to be triggered just once at anytime?</FONT><BR>
<FONT face=Arial size=2>Any help is greatly appreciated.</FONT> <BR>
<I><FONT face=Arial size=2>Thanks,</FONT></I> <BR><I><U><FONT face="Arial Black" color=#800080 size=2>Prashanthi Prasad</FONT></U></I> <BR><I><FONT face=Arial size=2>SAP ABAP/Workflow</FONT></I> <BR><I><FONT face=Arial size=2>CITGO Petroleum Corporation</FONT></I> <BR><I><FONT face=Arial size=2>pprasad@citgo.com</FONT></I> <BR><I><FONT face=Arial size=2>832-486-4899</FONT></I> <BR></BLOCKQUOTE><br /><hr />Catch the cricket action with MSN!  <a href='http://content.msn.co.in/Sports/Cricket/Default.aspx' target='_new'>Click here!</a></body>
</html>