<!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> </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> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D924575806-23122001>call=20
function 'SWE_EVENT_CREATE'<BR>  exporting<BR>   =20
objtype           =
           =20
=3D 'BUS2054'<BR>   =20
objkey           &=
nbsp;           =20
=3D gen_object_key<BR>   =20
event           &n=
bsp;           &nb=
sp;=20
=3D 'CREATED'<BR>*  =20
CREATOR           =
           =20
=3D ' '<BR>*  =20
TAKE_WORKITEM_REQUESTER       =3D '=20
'<BR>*  =20
START_WITH_DELAY         &nb=
sp;   =20
=3D ' '<BR>*  =20
START_RECFB_SYNCHRON         =
; =3D '=20
'<BR>*  =20
NO_COMMIT_FOR_QUEUE         =
 =20
=3D ' '<BR>*  =20
DEBUG_FLAG          &nb=
sp;        =20
=3D ' '<BR>*  =20
NO_LOGGING          &nb=
sp;        =20
=3D ' '<BR>*  =20
IDENT           &n=
bsp;           &nb=
sp;=20
=3D<BR>*  IMPORTING<BR>*   =20
EVENT_ID           =
;         =20
=3D<BR>  tables<BR>   =20
event_container         &nbs=
p;    =20
=3D evt_container<BR>* EXCEPTIONS<BR>*  =20
OBJTYPE_NOT_FOUND         &n=
bsp;  =20
=3D 1<BR>*  =20
OTHERS           &=
nbsp;           =20
=3D 2</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D924575806-23122001></SPAN></FONT> </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> </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.  I also have a custom WF template with a =
manditory import=20
  parameter like the object ZJCAN.  I would like to start this =
workflow=20
  from an ABAP.  What is the proper way of starting this =
workflow?  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>