<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    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
      cite="mid:1DE5DE1DC1F14743A325FB8CDD2B76132C1D06A1@EXMBPR13.na.mmfg.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <style id="owaTempEditStyle"></style>
      <style title="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
      <meta content="MSHTML 6.00.6000.17093" name="GENERATOR">
      <div dir="ltr" align="left"><font><span class="817382017-30062011"><font><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><span class="817382017-30062011"></span></font>&nbsp;</div>
      <div dir="ltr" align="left"><font><span class="817382017-30062011"><font><font
                color="#000080" face="MS Sans Serif">call function
                'SWE_EVENT_CREATE'</font></font></span></font></div>
      <p dir="ltr" align="left"><font><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><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><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><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><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><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><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><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><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><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><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>&nbsp;</font></p>
      <p dir="ltr" align="left"><font><font color="#000080" face="MS
            Sans Serif">commit work.</font></font></p>
      <div>&nbsp;</div>
      <div><span class="817382017-30062011"><font color="#800000"
            face="MS Sans Serif" size="3">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 class="OutlookMessageHeader" dir="ltr" align="left"
        lang="en-us">
        <hr tabindex="-1">
        <font face="Tahoma" size="2"><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-size: 13px; color: rgb(0, 0, 0); direction: ltr;
        font-family: Tahoma;">
        <div dir="ltr"><font color="#000000" face="Tahoma" size="2">Hello
            experts,</font></div>
        <div dir="ltr"><font face="tahoma" size="2">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;<!--StartFragment -->
            <style type="text/css">SPAN {
        FONT-SIZE: 10pt; BACKGROUND: #ffffff; COLOR: #000000; FONT-FAMILY: "Courier New"
}
</style><span>SWW_WI_CREATE_VIA_EVENT_IBF</span>&nbsp; is not found. At the
            risk of stating the obvious should FM&nbsp;<!--StartFragment -->
            <style type="text/css">SPAN {
        FONT-SIZE: 10pt; BACKGROUND: #ffffff; COLOR: #000000; FONT-FAMILY: "Courier New"
}
</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 face="tahoma" size="2">Any thoughts on this
            issue.</font></div>
        <div dir="ltr">&nbsp;</div>
        <div dir="ltr"><font face="tahoma" size="2">Thanks</font></div>
        <div dir="ltr"><font face="tahoma" size="2">David Dittmer</font></div>
      </div>
      <br>
      <hr>
      <font color="gray" face="Arial" size="2">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 wrap="">---------------------------------------------------------
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 wrap="">
<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">http://mailman.mit.edu/mailman/listinfo/sap-wug</a>
</pre>
    </blockquote>
  </body>
</html>