<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Starting WF using Z Bus Object Type Event</TITLE>
 
<META content="MSHTML 5.00.3103.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=291053001-21122001>Hi
Brian, </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=291053001-21122001>All
you need to do is enter the business object type, object key and event name into
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=291053001-21122001>the
matching parameters of SWE_EVENT_CREATE. </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=291053001-21122001>Unless
you are passing special event parameters there is no need to fill the event
container</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=291053001-21122001>as
SWE_EVENT_CREATE will automatically create all standard event container elements
for you. </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=291053001-21122001>All
you need to do is define the event container table as per the function module
interface.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=291053001-21122001>Regards,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=291053001-21122001>
<DIV style="HEIGHT: 90px; WIDTH: 374px"><FONT size=2>
<TABLE>
  <TBODY>
  <TR>
    <TD></TD></FONT>
    <TD>
      <DIV><FONT size=2><FONT color=#0000ff>Jocelyn Dart</FONT> <BR><FONT
      color=#0000ff>Consultant (EBP, BBP, Ecommerce, Internet Transaction
      Server, Workflow)</FONT> <BR><FONT color=#0000ff>SAP
      Australia</FONT></FONT></DIV>
      <DIV><FONT color=#0000ff><FONT size=2>Email </FONT><A
      href="mailto:jocelyn.dart@sap.com"><FONT
      size=2>jocelyn.dart@sap.com</FONT></A><BR><FONT size=2>Tel: +61<SPAN
      class=153385400-09052000> 412 390 267</SPAN><BR>Fax: +61&nbsp;2 9935
      4880</FONT></FONT></DIV></TD></TR></TBODY></TABLE></DIV></SPAN></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
  size=2>-----Original Message-----<BR><B>From:</B> Snyder, Brian
  [mailto:BSnyder@wafertech.com]<BR><B>Sent:</B> Friday, 21 December 2001 12:01
  PM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Starting WF using Z
  Bus Object Type Event<BR><BR></DIV></FONT>
  <P><FONT face=Arial size=2>I have a custom business object type ZJCAN in my
  SAP 31H system.&nbsp; I also have a custom WF template with a manditory import
  parameter like the object ZJCAN.&nbsp; I would like to start this workflow
  from an ABAP.&nbsp; What is the proper way of starting this workflow?&nbsp; I
  have tried to use SWE_EVENT_CREATE but I am not sure how to create the
  "container" for the ZJCAN object to pass in SWE_EVENT_CREATE.</FONT></P>
  <P><FONT face=Arial size=2>Any sample code or direction would be very
  appreciated.</FONT> </P>
  <P><FONT face=Arial size=2>Thanks,</FONT> </P>
  <P><B><FONT color=#000000 face=Arial size=2>Brian Snyder</FONT></B>
  <BR><B><FONT color=#800000 face=Arial size=1>WaferTech</FONT></B> <BR><B><FONT
  color=#800000 face=Arial size=1>360.817.3141</FONT></B> <BR><B><FONT
  color=#800000 face=Arial size=1>bsnyder@wafertech.com</FONT></B>
</P></BLOCKQUOTE></BODY></HTML>