Hi All,
I know there are several posts regarding the attachment of PDF file in a workflow item, But i have tried all solutions given under them and still attachment is not working.
My requirement is to attach a PDF when PO is released. For this i have created a ZBUS2012 with Z method. In that method i have created a RFC to get data from SRM server.
I have passed the XSTRING data of a smartform using convert_otf to the 'SAP_WAPI_ATTACHMENT_ADD' and the att_bin parameter is getting populated. As suggested by various posts i have tried the following code for attaching
swc_set_element container 'SOFM' att_id-doc_id
After this I have done the binding in task with SOFM.
And after this i have done binding of workflow container i.e. SOFM from task to Attach_objects.
Thanks in advance