<p>Hi Experts,</p>
<p>I have a requirement where in I need to attach multiple attachments to the user decision step. I am able to attach the total number of attachments correctly but unfortunately I am able to attach the duplicates (all the attachments are same as first attahment).<br>
Below is the logic I follwed, please correct where I am doing wrong.</p>
<p>For document id there might be multiple attachments.Got all the attachments into an internal table. Loop the table ,convert the data to Xstring and call function module SAP_WAPI_ATTACHMENT_ADD to create the attachment.After the function module is called I am using the macro swc0_create_object to bind the attachment id to the export parameter of my method. <br>
I believe the problem is with the binding of swc0_create_object .<br> For example : swc0_create_object e_doc_id &#39;SOFM&#39; ls_att_id-doc_id.<br>In the above example for e_doc_id I have referred to SWCO_OBJECT which is structure referred to OBJ_RECORD not table type to hold multiple records. Please let me know how can I attach multiple records.</p>

<p>Thanks and Regards,<br>Srini..<br><br clear="all"><br>-- <br></p>