<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19088">
</head>
<body bgcolor="#ffffff" ocsi="x">
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 13px">
<div>Thank you, FM <font color="#000080" face="MS Sans Serif">'SWE_EVENT_CREATE'&nbsp; requires less parameters..let me see if this will do the job.</font></div>
<div><font color="#000080" size="2" face="ms sans serif"></font>&nbsp;</div>
<div><font color="#000080" size="2" face="ms sans serif">regards</font></div>
<div><font color="#000080" size="2" face="ms sans serif">David Dittmer</font></div>
<div dir="ltr"><font color="#000000" size="2" face="Tahoma"></font>&nbsp;</div>
<div style="DIRECTION: ltr" id="divRpF448126">
<hr tabindex="-1">
<font color="#000000" size="2" face="Tahoma"><b>From:</b> sap-wug-bounces@mit.edu [sap-wug-bounces@mit.edu] On Behalf Of Ramki Maley [rmaley@erpworkflow.com]<br>
<b>Sent:</b> Thursday, June 30, 2011 1:40 PM<br>
<b>To:</b> SAP Workflow Users' Group<br>
<b>Subject:</b> Re: Workflow does not start<br>
</font><br>
</div>
<div></div>
<div>SAP_WAPI_CREATE_EVENT is what I use.<br>
<br>
Cheers,<br>
Ramki.<br>
<br>
On 6/30/11 1:28 PM, Pinciak, David wrote:
<blockquote type="cite"><style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
<div dir="ltr" align="left"><font size="&#43;0"><span class="817382017-30062011"><font size="&#43;0"><font face="MS Sans Serif"><font color="#800000"><font size="3">I use a different FM.
</font></font></font></font></span></font></div>
<div dir="ltr" align="left"><font size="&#43;0"><span class="817382017-30062011"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font size="&#43;0"><span class="817382017-30062011"><font size="&#43;0"><font color="#000080" face="MS Sans Serif">call function 'SWE_EVENT_CREATE'</font></font></span></font></div>
<p dir="ltr" align="left"><font size="&#43;0"><font face="MS Sans Serif"><font color="#000080"><span class="817382017-30062011">&nbsp;
</span>exporting</font></font></font></p>
<p dir="ltr" align="left"><font size="&#43;0"><font face="MS Sans Serif"><font color="#000080"><span class="817382017-30062011">&nbsp;&nbsp;&nbsp;
</span>objtype = c_objtype</font></font></font></p>
<p dir="ltr" align="left"><font size="&#43;0"><font face="MS Sans Serif"><font color="#000080"><span class="817382017-30062011">&nbsp;&nbsp;&nbsp;
</span>objkey = w_objkey</font></font></font></p>
<p dir="ltr" align="left"><font size="&#43;0"><font face="MS Sans Serif"><font color="#000080"><span class="817382017-30062011">&nbsp;&nbsp;&nbsp;
</span>event = c_event</font></font></font></p>
<p dir="ltr" align="left"><font size="&#43;0"><font face="MS Sans Serif"><font color="#000080"><span class="817382017-30062011">&nbsp;
</span>importing</font></font></font></p>
<p dir="ltr" align="left"><font size="&#43;0"><font face="MS Sans Serif"><font color="#000080"><span class="817382017-30062011">&nbsp;&nbsp;&nbsp;
</span>event_id = w_event_id</font></font></font></p>
<p dir="ltr" align="left"><font size="&#43;0"><font face="MS Sans Serif"><font color="#000080"><span class="817382017-30062011">&nbsp;&nbsp;&nbsp;
</span>tables</font></font></font></p>
<p dir="ltr" align="left"><font size="&#43;0"><font face="MS Sans Serif"><font color="#000080"><span class="817382017-30062011">&nbsp;&nbsp;&nbsp;
</span>event_container = wf_container</font></font></font></p>
<p dir="ltr" align="left"><font size="&#43;0"><font face="MS Sans Serif"><font color="#000080"><span class="817382017-30062011">&nbsp;&nbsp;</span>exceptions</font></font></font></p>
<p dir="ltr" align="left"><font size="&#43;0"><font face="MS Sans Serif"><font color="#000080"><span class="817382017-30062011">&nbsp;&nbsp;&nbsp;
</span>objtype_not_found = 1</font></font></font></p>
<p dir="ltr" align="left"><font size="&#43;0"><font face="MS Sans Serif"><font color="#000080"><span class="817382017-30062011">&nbsp;&nbsp;&nbsp;
</span>others = 2.</font></font></font></p>
<p dir="ltr" align="left"><font size="&#43;0"></font>&nbsp;</p>
<p dir="ltr" align="left"><font size="&#43;0"><font color="#000080" face="MS
            Sans Serif">commit work.</font></font></p>
<div>&nbsp;</div>
<div><span class="817382017-30062011"><font color="#800000" size="3" face="MS Sans Serif">A commit work statement following raising the event my help too.</font></span></div>
<div><span class="817382017-30062011"></span>&nbsp;</div>
<div><span class="817382017-30062011"></span>&nbsp;</div>
<div><br>
</div>
<div dir="ltr" lang="en-us" class="OutlookMessageHeader" align="left">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>From:</b> <a class="moz-txt-link-abbreviated" href="mailto:sap-wug-bounces@mit.edu">
sap-wug-bounces@mit.edu</a> [<a class="moz-txt-link-freetext" href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</a>]
<b>On Behalf Of </b><a class="moz-txt-link-abbreviated" href="mailto:david.s.dittmer@accenture.com">david.s.dittmer@accenture.com</a><br>
<b>Sent:</b> Thursday, June 30, 2011 1:01 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br>
<b>Subject:</b> Workflow does not start<br>
</font><br>
</div>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: rgb(0,0,0); FONT-SIZE: 13px">
<div dir="ltr"><font color="#000000" size="2" face="Tahoma">Hello experts,</font></div>
<div dir="ltr"><font size="2" face="tahoma">I am trying to trigger a workflow from a totally customized procedure which saves into a custom table. The workflow must trigger when the object is saved. I have set up a business object with events/attributes and
 methods and when manually triggering the event using transaction SWUE the event is triggered. However when the object is saved the event is not triggered automatically. When I debugged the&nbsp;code the transaction to create the event&nbsp;
<style type="text/css">SPAN {
        FONT-FAMILY: "Courier New"; BACKGROUND: #ffffff; COLOR: #000000; FONT-SIZE: 10pt
}
</style><span>SWW_WI_CREATE_VIA_EVENT_IBF</span>&nbsp; is not found. At the risk of stating the obvious should FM&nbsp;
<style type="text/css">SPAN {
        FONT-FAMILY: "Courier New"; BACKGROUND: #ffffff; COLOR: #000000; FONT-SIZE: 10pt
}
</style><span>SWW_WI_CREATE_VIA_EVENT_IBF</span>&nbsp; not be inserted in to the save procedure of the customized transaction or is there another
 way of triggering this event perhaps by expanding the attributes of the business object?</font></div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr"><font size="2" face="tahoma">Any thoughts on this issue.</font></div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr"><font size="2" face="tahoma">Thanks</font></div>
<div dir="ltr"><font size="2" face="tahoma">David Dittmer</font></div>
</div>
<br>
<hr>
<font color="gray" size="2" face="Arial">This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original.
 Any other use of the email by you is prohibited.<br>
</font>
<pre>---------------------------------------------------------
This e-mail transmission may contain information that is 
proprietary, privileged and/or confidential and is
intended exclusively for the person(s) to whom it is
addressed. Any use, copying, retention or disclosure by
any person other than the intended recipient or the
intended recipient's designees is strictly prohibited. If
you are not the intended recipient or their designee,
please notify the sender immediately by return e-mail and
delete all copies.
---------------------------------------------------------
</pre>
<pre><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SAP-WUG mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a>
<a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a>
</pre>
</blockquote>
</div>
</div>
</body>
</html>