<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" 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 12 (filtered medium)"><!--[if !mso]><style id=owaTempEditStyle>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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"MS Sans Serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"MS\000D\000A            Sans Serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
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;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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 bgcolor=white lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Ok well folks, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The OFFICIAL way is to use function module SAP_WAPI_CREATE_EVENT or SAP_WAPI_CREATE_EVENT_EXTENDED<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Which give you a parameter to ask for the commit work. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>And will work for ABAP OO containers as well. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jocelyn <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><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:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <b>On Behalf Of </b>Ramki Maley<br><b>Sent:</b> Friday, 1 July 2011 3:41 AM<br><b>To:</b> SAP Workflow Users' Group<br><b>Subject:</b> Re: Workflow does not start<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>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: <o:p></o:p></p><p class=MsoNormal><span style='font-family:"MS Sans Serif","serif";color:maroon'>I use a different FM. </span><o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal><span style='font-family:"MS Sans Serif","serif";color:navy'>call function 'SWE_EVENT_CREATE'</span><o:p></o:p></p><p><span style='font-family:"MS Sans Serif","serif";color:navy'>&nbsp; exporting</span><o:p></o:p></p><p><span style='font-family:"MS Sans Serif","serif";color:navy'>&nbsp;&nbsp;&nbsp; objtype = c_objtype</span><o:p></o:p></p><p><span style='font-family:"MS Sans Serif","serif";color:navy'>&nbsp;&nbsp;&nbsp; objkey = w_objkey</span><o:p></o:p></p><p><span style='font-family:"MS Sans Serif","serif";color:navy'>&nbsp;&nbsp;&nbsp; event = c_event</span><o:p></o:p></p><p><span style='font-family:"MS Sans Serif","serif";color:navy'>&nbsp; importing</span><o:p></o:p></p><p><span style='font-family:"MS Sans Serif","serif";color:navy'>&nbsp;&nbsp;&nbsp; event_id = w_event_id</span><o:p></o:p></p><p><span style='font-family:"MS Sans Serif","serif";color:navy'>&nbsp;&nbsp;&nbsp; tables</span><o:p></o:p></p><p><span style='font-family:"MS Sans Serif","serif";color:navy'>&nbsp;&nbsp;&nbsp; event_container = wf_container</span><o:p></o:p></p><p><span style='font-family:"MS Sans Serif","serif";color:navy'>&nbsp;&nbsp;exceptions</span><o:p></o:p></p><p><span style='font-family:"MS Sans Serif","serif";color:navy'>&nbsp;&nbsp;&nbsp; objtype_not_found = 1</span><o:p></o:p></p><p><span style='font-family:"MS Sans Serif","serif";color:navy'>&nbsp;&nbsp;&nbsp; others = 2.</span><o:p></o:p></p><p>&nbsp;<o:p></o:p></p><p><span style='font-family:"MS&#13;&#10;            Sans Serif","serif";color:navy'>commit work.</span><o:p></o:p></p><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"MS Sans Serif","serif";color:maroon'>A commit work statement following raising the event my help too.</span><o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div class=MsoNormal align=center style='text-align:center'><span lang=EN-US><hr size=2 width="100%" align=center></span></div><p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a> [<a href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</a>] <b>On Behalf Of </b><a 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 href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br><b>Subject:</b> Workflow does not start</span><span lang=EN-US><o:p></o:p></span></p><div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Hello experts,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>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; </span><span style='font-size:10.0pt;font-family:"Courier New";background:white'>SWW_WI_CREATE_VIA_EVENT_IBF</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>&nbsp; is not found. At the risk of stating the obvious should FM&nbsp; </span><span style='font-size:10.0pt;font-family:"Courier New";background:white'>SWW_WI_CREATE_VIA_EVENT_IBF</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>&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?<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Any thoughts on this issue.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Thanks<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>David Dittmer<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=2 width="100%" align=center></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>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><br></span><o:p></o:p></p><pre>---------------------------------------------------------<o:p></o:p></pre><pre>This e-mail transmission may contain information that is <o:p></o:p></pre><pre>proprietary, privileged and/or confidential and is<o:p></o:p></pre><pre>intended exclusively for the person(s) to whom it is<o:p></o:p></pre><pre>addressed. Any use, copying, retention or disclosure by<o:p></o:p></pre><pre>any person other than the intended recipient or the<o:p></o:p></pre><pre>intended recipient's designees is strictly prohibited. If<o:p></o:p></pre><pre>you are not the intended recipient or their designee,<o:p></o:p></pre><pre>please notify the sender immediately by return e-mail and<o:p></o:p></pre><pre>delete all copies.<o:p></o:p></pre><pre>---------------------------------------------------------<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>SAP-WUG mailing list<o:p></o:p></pre><pre><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><o:p></o:p></pre><pre><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><o:p></o:p></pre></div></body></html>