<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<br>

</span></div></div>