<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DISO-8859-1">
<TITLE>Starting WF using Z Bus Object Type Event</TITLE>
 
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D924575806-23122001>hello</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D924575806-23122001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D924575806-23122001>attached is a source code sample from an abap =
program=20
we use that triggers our workflows</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D924575806-23122001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D924575806-23122001>call=20
function 'SWE_EVENT_CREATE'<BR>&nbsp; exporting<BR>&nbsp;&nbsp;&nbsp;=20
objtype&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
=3D 'BUS2054'<BR>&nbsp;&nbsp;&nbsp;=20
objkey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
=3D gen_object_key<BR>&nbsp;&nbsp;&nbsp;=20
event&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&n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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
=3D<BR>*&nbsp; IMPORTING<BR>*&nbsp;&nbsp;&nbsp;=20
EVENT_ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
=3D<BR>&nbsp; tables<BR>&nbsp;&nbsp;&nbsp;=20
event_container&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
=3D evt_container<BR>* EXCEPTIONS<BR>*&nbsp;&nbsp;=20
OBJTYPE_NOT_FOUND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
=3D 1<BR>*&nbsp;&nbsp;=20
OTHERS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
=3D 2</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D924575806-23122001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D924575806-23122001>hope=20
this helps</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D924575806-23122001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D924575806-23122001>ronen</SPAN></FONT></DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
  <DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Snyder, Brian=20
  [mailto:BSnyder@wafertech.com]<BR><B>Sent:</B> Friday, December 21, =
2001 3:01=20
  AM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Starting WF =
using Z=20
  Bus Object Type Event<BR><BR></DIV></FONT>
  <P><FONT face=3DArial size=3D2>I have a custom business object type =
ZJCAN in my=20
  SAP 31H system.&nbsp; I also have a custom WF template with a =
manditory import=20
  parameter like the object ZJCAN.&nbsp; I would like to start this =
workflow=20
  from an ABAP.&nbsp; What is the proper way of starting this =
workflow?&nbsp; I=20
  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=3DArial size=3D2>Any sample code or direction would be =
very=20
  appreciated.</FONT> </P>
  <P><FONT face=3DArial size=3D2>Thanks,</FONT> </P>
  <P><B><FONT color=3D#000000 face=3DArial size=3D2>Brian =
Snyder</FONT></B>=20
  <BR><B><FONT color=3D#800000 face=3DArial =
size=3D1>WaferTech</FONT></B> <BR><B><FONT=20
  color=3D#800000 face=3DArial size=3D1>360.817.3141</FONT></B> =
<BR><B><FONT=20
  color=3D#800000 face=3DArial size=3D1>bsnyder@wafertech.com</FONT></B> =
 
</P></BLOCKQUOTE></BODY></HTML>