<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>SAP_WAPI_CREATE_EVENT and Workflow binding</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hello Workflow folks,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">We are having a similar problem as Srinivas Oota recently posted here. We are attempting to code an event to kick off a workflow and the container doesn't seem to be passed to the workflow from the function call. Originally we just attempted to copy the SAP logic in LHRTEM00NETF53 to generate the event PDRELA_025.MOVED where approriate, by copying the code used when PDRELA_025.MOVEREQUESTED is generated, which uses function SWE_EVENT_CREATE. However when we did this, our moved event was not being generated, despite the fact that this same code still works for the moverequested event.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">So as Jocelyn suggested, we changed our code to use function SAP_WAPI_CREATE_EVENT and have populated the container with the data required by the workflow. The event is now generated, but the values in the container don't appear to have been passed to the workflow even though the return code from the function is 0 and the only message generated by the function call is "Event created - at least one receiver found". I confirmed the fields were not populated by running SAP_WAPI_READ_CONTAINER as suggested and found the two container elements I defined and populated for the event function call are in the container, but not populated as I would have expected them to be.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Any suggestions on what we might be missing?</FONT>
</P>
<BR>
<P><B><I><FONT COLOR="#800080" SIZE=4 FACE="Monotype Corsiva">Kathy Penhall</FONT></I></B><I></I><FONT COLOR="#000000" SIZE=1 FACE="Arial"><BR>
</FONT><FONT SIZE=1 FACE="Arial">HR Applications<BR>
SAP Support Services</FONT><FONT SIZE=1 FACE="Times New Roman"><BR>
</FONT><FONT SIZE=1 FACE="Arial">693 Taylor Avenue<BR>
(tel)204-477-7197<BR>
</FONT>
</P>
</BODY>
</HTML>