<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML DIR=ltr><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-15"></HEAD><BODY><DIV><FONT face='Arial' color=#000000 size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm testing the FM sap_wapi_start_workflow, but I'm 
having some trouble filling in the container.</FONT></DIV>
<DIV><FONT face=Arial size=2>The object is BUS2012, I created a new object 
ZBUS2012.</FONT></DIV>
<DIV><FONT face=Arial size=2>When I look into the start event, The system 
transfers the purchaseorder (which is the object), releasecode and 
wf_initiator.</FONT></DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is my code : </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>
<P><FONT face=Arial size=2>REPORT TEST.</FONT></P>
<P><FONT face=Arial size=2>data : l_obj type swotobjid.</FONT></P>
<P><FONT face=Arial size=2>data : l_tab type table of swr_cont.</FONT></P>
<P><FONT face=Arial size=2>data : lw_tab type swr_cont.</FONT></P>
<P><FONT face=Arial size=2>l_obj-objkey = '4500003943'.</FONT></P>
<P><FONT face=Arial size=2>l_obj-objtype = 'BUS2012'.</FONT></P>
<P><FONT face=Arial size=2>l_obj-describe = 'BUS2012'.</FONT></P>
<P><FONT face=Arial size=2>lw_tab-element = 'BUS2012'.</FONT></P>
<P><FONT face=Arial size=2>lw_tab-value = l_obj.</FONT></P>
<P><FONT face=Arial size=2>append lw_tab to l_tab.</FONT></P>
<P><FONT face=Arial size=2>lw_tab-element = 'releasecode'.</FONT></P>
<P><FONT face=Arial size=2>lw_tab-value = 'E4'.</FONT></P>
<P><FONT face=Arial size=2>append lw_tab to l_tab.</FONT></P>
<P><FONT face=Arial size=2>CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'</FONT></P>
<P><FONT face=Arial size=2>EXPORTING</FONT></P>
<P><FONT face=Arial size=2>task = 'WS20000075'</FONT></P>
<P><FONT face=Arial size=2>LANGUAGE = SY-LANGU</FONT></P>
<P><FONT face=Arial size=2>DO_COMMIT = 'X'</FONT></P>
<P><FONT face=Arial size=2>USER = SY-UNAME</FONT></P><FONT color=#0000ff>
<P><FONT face=Arial size=2>* START_ASYNCHRONOUS = ' '</FONT></P>
<P><FONT face=Arial size=2>* DESIRED_START_DATE =</FONT></P>
<P><FONT face=Arial size=2>* DESIRED_START_TIME =</FONT></P>
<P><FONT face=Arial size=2>* DESIRED_START_ZONLO = SY-ZONLO</FONT></P>
<P><FONT face=Arial size=2>* IFS_XML_CONTAINER =</FONT></P>
<P><FONT face=Arial size=2>* IMPORTING</FONT></P>
<P><FONT face=Arial size=2>* RETURN_CODE =</FONT></P>
<P><FONT face=Arial size=2>* WORKITEM_ID =</FONT></P>
<P><FONT face=Arial size=2>* NEW_STATUS =</FONT></P></FONT>
<P><FONT face=Arial size=2>TABLES</FONT></P>
<P><FONT face=Arial size=2>INPUT_CONTAINER = l_tab</FONT></P><FONT 
color=#0000ff>
<P><FONT face=Arial size=2>* MESSAGE_LINES =</FONT></P>
<P><FONT face=Arial size=2>* MESSAGE_STRUCT =</FONT></P>
<P><FONT face=Arial size=2>* AGENTS =</FONT></P></FONT><FONT size=1>
<P><FONT face=Arial size=2>.</FONT></P>
<P><FONT face=Arial size=2></FONT>&nbsp;</P>
<P><FONT face=Arial size=2>Anyone can tell me what I'm doing wrong ?</FONT></P>
<P><FONT face=Arial size=2></FONT>&nbsp;</P>
<P><FONT face=Arial size=2>thanks !</FONT></P></FONT></DIV></BODY></HTML>