<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=656332709-14082006><FONT face=Arial 
color=#0000ff size=2>You don't say if you actually have called swc_set_element 
27 times. If you have, you </FONT></SPAN><SPAN class=656332709-14082006><FONT 
face=Arial color=#0000ff size=2>should change your code and use swc_set_table 
(with a t_main internal table) instead of calling swc_set_element multiple 
times.</FONT></SPAN></DIV>
<DIV align=left><FONT face=Arial size=2>-- </FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Kjetil Kilhavn, Statoil ØFT KTJ 
BAS&nbsp;DEV SAP</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV><FONT face=Arial 
size=2></FONT><FONT face=Arial size=2></FONT><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
  [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Dart, 
  Jocelyn<BR><B>Sent:</B> 14. august 2006 02:49<BR><B>To:</B> SAP Workflow 
  Users' Group<BR><B>Subject:</B> RE: Problems when passing structure typed data 
  into workflow container<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV dir=ltr align=left><SPAN class=896404800-14082006><FONT face=Arial 
  color=#0000ff size=2>Which release?&nbsp; It matters.</FONT></SPAN></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV><!-- Converted from text/rtf format -->
  <P><SPAN lang=en-us><FONT face=Arial size=1>Regards,</FONT></SPAN> <BR><SPAN 
  lang=en-us><B><FONT face=Arial color=#000080 size=1>Jocelyn 
  Dart</FONT></B></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080 
  size=1>Senior Consultant</FONT></SPAN> <BR><SPAN lang=en-us><B><FONT 
  face=Arial color=#808080 size=1>SAP Australia Pty Ltd.</FONT></B></SPAN> 
  <BR></P><BR>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
  [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Lu Luis<BR><B>Sent:</B> 
  Saturday, 12 August 2006 10:37 PM<BR><B>To:</B> 
  sap-wug@mit.edu<BR><B>Subject:</B> Problems when passing structure typed data 
  into workflow container<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV id=mb_0>
  <DIV>Hi workflowers,<BR><BR>I'm now facing a problem when passing data of 
  stuctured type into workflow container.<BR><BR>I've defined a DDIC structure 
  named ZMAIN, and called folloing macro to build the container data of this 
  type. <BR><SPAN style="FONT-WEIGHT: bold">Data: ls_main type 
  ZMAIN.</SPAN><BR>* Populate data into ls_main ......<BR>* Then call 
  macro:<BR><SPAN style="FONT-WEIGHT: bold">swc_set_element</SPAN>&nbsp; <SPAN 
  style="FONT-WEIGHT: bold">container</SPAN>&nbsp;<SPAN 
  style="FONT-WEIGHT: bold"> 'MAIN'&nbsp; ls_main. </SPAN><BR><BR>After the the 
  macro, multiple entries are created in the table <SPAN 
  style="FONT-WEIGHT: bold">container</SPAN>. However, when calling FM 
  SAP_WAPI_START_WORKFLOW with this <SPAN style="FONT-WEIGHT: bold">container, 
  </SPAN>I get following error message: <SPAN style="FONT-STYLE: italic">The 
  single-line element 'MAIN' is passed several times ('27 times') </SPAN>and the 
  FM call fails with no workflow started.<BR><SPAN 
  style="FONT-STYLE: italic"><BR></SPAN>If I pass a simple type data(such as 
  BUKRS) into the container and start the workflow, things work fine, so I guess 
  the workflow is working fine. Can someone pls what's happenning over this 
  issue? <BR><BR>Thanks in advance. <BR><BR>Best regards<BR></DIV>
  <DIV><SPAN class=sg>Luis</SPAN></DIV></DIV></BLOCKQUOTE><p></p><p><font size=1>-------------------------------------------------------------------<br>The information contained in this message may be CONFIDENTIAL and is<br>intended for the addressee only. Any unauthorised use, dissemination of the<br>information or copying of this message is prohibited. If you are not the<br>addressee, please notify the sender immediately by return e-mail and delete<br>this message.<br>Thank you.</font size></BODY></HTML>