<!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.50.4522.1800" name=3DGENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=3D997004702-28122001><FONT face=3DArial =
color=3D#0000ff size=3D2>Hi=20
Brian,</FONT></SPAN></DIV><SPAN class=3D997004702-28122001>
<DIV><BR><FONT face=3DArial color=3D#0000ff size=3D2>You can use the =
function module=20
mentioned by Ronen, or you can use the function module SWW_WI_CREATE =
which will=20
create the workitem that kick starts your workflow... You =
have to=20
create an object reference, and the workitem container, using macros =
then call=20
the function module..</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV>
<DIV></SPAN><SPAN class=3D997004702-28122001><FONT face=3DArial><FONT=20
color=3D#0000ff><FONT size=3D2>Easy as!!!<SPAN =
class=3D111340103-28122001> =20
As you cut out the =
middleman...</SPAN></FONT></FONT></FONT></SPAN></DIV></DIV>
<P><FONT face=3D"Bauhaus 93" color=3D#0000ff size=3D4>Paul =
Chambers</FONT>=20
<BR><B><FONT face=3DArial size=3D2>Consultant - (Portals, KM, Workflow, =
ABAP)</FONT></B> <BR><B><FONT face=3DArial size=3D2>SAP =
Australia</FONT></B>=20
<BR><FONT face=3DArial size=3D2>+61(0)401773898</FONT> <BR><FONT =
face=3DArial=20
size=3D2><A=20
href=3D"mailto:paul.chambers@sap.com">mailto:paul.chambers@sap.com</A></=
FONT> </P>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> ???? ????=20
[mailto:Ronen@mccann-kb.co.il]<BR><B>Sent:</B> Sunday, December 23, =
2001 6:00=20
PM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Re: =
Starting WF=20
using Z Bus Object Type Event<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D924575806-23122001>hello</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D924575806-23122001></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff 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 face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D924575806-23122001></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D924575806-23122001>call=20
function 'SWE_EVENT_CREATE'<BR> exporting<BR> =
=
objtype  =
; =20
=3D 'BUS2054'<BR> =20
=
objkey =
=
=20
=3D gen_object_key<BR> =20
=
event &=
nbsp; &=
nbsp;=20
=3D 'CREATED'<BR>* =20
=
CREATOR  =
; =20
=3D ' '<BR>* =20
TAKE_WORKITEM_REQUESTER =3D '=20
'<BR>* =20
=
START_WITH_DELAY &n=
bsp; =20
=3D ' '<BR>* =20
=
START_RECFB_SYNCHRON &nbs=
p; =3D '=20
'<BR>* =20
=
NO_COMMIT_FOR_QUEUE  =
; =20
=3D ' '<BR>* =20
=
DEBUG_FLAG &n=
bsp; =20
=3D ' '<BR>* =20
=
NO_LOGGING &n=
bsp; =20
=3D ' '<BR>* =20
=
IDENT &=
nbsp; &=
nbsp;=20
=3D<BR>* IMPORTING<BR>* =20
=
EVENT_ID &nbs=
p; =20
=3D<BR> tables<BR> =20
=
event_container &nb=
sp; =20
=3D evt_container<BR>* EXCEPTIONS<BR>* =20
=
OBJTYPE_NOT_FOUND &=
nbsp; =20
=3D 1<BR>* =20
=
OTHERS =
=
=20
=3D 2</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D924575806-23122001></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D924575806-23122001>hope=20
this helps</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D924575806-23122001></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D924575806-23122001>ronen</SPAN></FONT></DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><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=20
3:01 AM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> =
Starting WF=20
using Z 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=20
import parameter like the object ZJCAN. I would like to start =
this=20
workflow from an ABAP. What is the proper way of starting =
this=20
workflow? I have tried to use SWE_EVENT_CREATE but I am not =
sure how=20
to create the "container" for the ZJCAN object to pass in=20
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 face=3DArial color=3D#000000 size=3D2>Brian =
Snyder</FONT></B>=20
<BR><B><FONT face=3DArial color=3D#800000 =
size=3D1>WaferTech</FONT></B>=20
<BR><B><FONT face=3DArial color=3D#800000 =
size=3D1>360.817.3141</FONT></B>=20
<BR><B><FONT face=3DArial color=3D#800000=20
size=3D1>bsnyder@wafertech.com</FONT></B>=20
</P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>