<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<BR>Hi,<BR>
&nbsp;<BR>
I understood what the problem was. The SWC_SET_TABLE is expecting every column of the table to be of the same CHARACTER data type. My internal table had many columns with different data types CHAR, NUMC, DEC etc. That's why SWC_SET_TABLE wasn't correctly filling up the container element, and so SAP_WAPI_START_WORKFLOW was giving out an ugly error that the container table couldn't be filled properly.<BR>
&nbsp;<BR>
Regards,<BR>
Vijay<BR><BR>
<BLOCKQUOTE>
<HR>
From: vijay_d15@hotmail.com<BR>To: sap-wug@mit.edu; sap_wug@mit.edu<BR>Subject: Tables to workflow container<BR>Date: Mon, 14 Jan 2008 18:45:34 +0000<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
Hi,<BR>&nbsp;<BR>Can we pass tables with multiple columns to the workflow container?<BR>I"m starting my workflow using FM SAP_WAPI_START_WORKFLOW and I'm passing a table which has multiple columns to the container.<BR>I've updated the container using SWC_TABLE_SET in my program. After executing the FM SAP_WAPI_START_WORKFLOW<BR>i'm getting this strange error saying <BR>&nbsp;<BR>Exception&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ERROR<BR>Message ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SWF_UTL_000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 120<BR>Message:<BR>Structures of type 'ZTEST' cannot be assigned any constants.<BR>&nbsp;<BR>Any idea on this? Thanks in advance for the replies.<BR>&nbsp;<BR>Regards,<BR>Vijay<BR><BR>
<HR>
Live the life in style with MSN Lifestyle. Check out! <A href="http://content.msn.co.in/Lifestyle/Default" target=_blank>Try it now!</A> </BLOCKQUOTE><br /><hr />Live the life in style with MSN Lifestyle. Check out! <a href='http://content.msn.co.in/Lifestyle/Default' target='_new'>Try it now!</a></body>
</html>