<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Bjorn,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><br>
I just have to ask, why are you trying to use SAP_WAPI_START_WORKFLOW and
filling in release strategies&nbsp; ? <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The concept of release strategies is so that events get raised,
and workflows get started without you needing to write your own SAP_WAPI*
calls.&nbsp; If you are doing this as an exercise to get familiar with that function,
then kudos.&nbsp; But you should probably use SAP_WAPI_CREATE_EVENT, as managing the
start of your workflows via events is far better than starting them directing
(IMHO).<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If I were testing out SAP_WAPI_START_WORKFLOW (or even
SAP_WAPI_CREATE_EVENT) I would try using a business object that was not linked
to release strategies because I think they just muddy the waters.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hope this is somewhat helpful.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Sue<o:p></o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <b>On Behalf Of </b>Bjorn
Demol<br>
<b>Sent:</b> Thursday, September 13, 2007 9:16 AM<br>
<b>To:</b> sap-wug@mit.edu<br>
<b>Subject:</b> sap_wapi_start_workflow<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Hi,</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I'm
testing the FM sap_wapi_start_workflow, but I'm having some trouble filling in
the container.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>The
object is BUS2012, I created a new object ZBUS2012.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>When
I look into the start event, The system transfers the purchaseorder (which is
the object), releasecode and wf_initiator.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>When
I try the FM, the sy-subrc returns 0, but I don't see an item in the inbox
where I expect the item to appear.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>This
is my code : </span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>REPORT TEST.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>data : l_obj
type swotobjid.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>data : l_tab
type table of swr_cont.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>data :
lw_tab type swr_cont.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>l_obj-objkey
= '4500003943'.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>l_obj-objtype
= 'BUS2012'.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>l_obj-describe
= 'BUS2012'.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>lw_tab-element
= 'BUS2012'.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>lw_tab-value
= l_obj.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>append
lw_tab to l_tab.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>lw_tab-element
= 'releasecode'.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>lw_tab-value
= 'E4'.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>append
lw_tab to l_tab.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>CALL
FUNCTION 'SAP_WAPI_START_WORKFLOW'</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>EXPORTING</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>task =
'WS20000075'</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>LANGUAGE =
SY-LANGU</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>DO_COMMIT =
'X'</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>USER =
SY-UNAME</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
START_ASYNCHRONOUS = ' '</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
DESIRED_START_DATE =</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
DESIRED_START_TIME =</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
DESIRED_START_ZONLO = SY-ZONLO</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
IFS_XML_CONTAINER =</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
IMPORTING</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
RETURN_CODE =</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
WORKITEM_ID =</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
NEW_STATUS =</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>TABLES</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>INPUT_CONTAINER
= l_tab</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
MESSAGE_LINES =</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
MESSAGE_STRUCT =</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>*
AGENTS =</span><span style='color:blue'><o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>.</span><span
style='font-size:7.5pt'><o:p></o:p></span></p>

<p><span style='font-size:7.5pt'>&nbsp;<o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Anyone can
tell me what I'm doing wrong ?</span><span style='font-size:7.5pt'><o:p></o:p></span></p>

<p><span style='font-size:7.5pt'>&nbsp;<o:p></o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>thanks !</span><span
style='font-size:7.5pt'><o:p></o:p></span></p>

</div>

</div>

</body>

</html>