<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Attaching PDF document to workflow container using SWC* macros in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220743#M1826558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okie so downloaded PDF also is corrupt when you open right..? I will suggest you to just search on for OTF to PDF stuff so many documents/links are their.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 07:46:59 GMT</pubDate>
    <dc:creator>nabheetscn</dc:creator>
    <dc:date>2014-03-24T07:46:59Z</dc:date>
    <item>
      <title>Attaching PDF document to workflow container using SWC* macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220740#M1826555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to attach the quality notification printout (PDF) along with other other details through action box. For this QM06_FM_TASK_SEND_PAPER_ATTACH configured. This function module a pdf as per the configuration with below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_CLEAR_CONTAINER CONTAINDER1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_ELEMENT CONTAINER1 'DOCUMENTTITLE' CONTENT_HEADER1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_ELEMENT CONTAINER1 'DOCUMENTNAME' TEXT-201.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_ELEMENT CONTAINER1 'DOCUMENTTYPE' 'SCR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_TABLE CONTAINER1 'DOCUMENTCONTENT' CONTENT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_ELEMENT CONTAINER1 'NO_DIALOG' 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the same email I need to attach notification printout in the form of PDF. For this I put enhacement point starting of this FM and got OTF data from print program. This OTF data I have tried to attach to email as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_CLEAR_CONTAINER CONTAINER1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_ELEMENT CONTAINER1 'ATTACHMENT' 'MESSAGE1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_ELEMENT CONTAINER1 'ATTACHMENTTITLE' 'PRINT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_ELEMENT CONTAINER1 'ATTACHEMENTTYPE' 'PDF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_ELEMENT CONTAINER1 'DOCUMENTSIZE' G_FILESIZE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_TABLE CONTAINER1 'CONTENT_HEX' BINDATA[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_TABLE CONTAINER1 'DOCUMENTCONTENT' CONTENT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_CALL_METHOD MESSAGE1 'ATTACH' CONTAINER1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried by converting OTF to binary () or PDF . I could able to attach but that PDF is corrupted. Please suggest me. I have attached enhacement code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 07:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220740#M1826555</guid>
      <dc:creator>suresh_kumar53</dc:creator>
      <dc:date>2014-03-24T07:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching PDF document to workflow container using SWC* macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220741#M1826556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple question why did you use GUI_UPLOAD/GUI_DOWNLOAD..? I would request you to search on SCN convert OTF data to binary data etc using CL_BCS class method. You just have to use. Please search for the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 07:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220741#M1826556</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-03-24T07:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching PDF document to workflow container using SWC* macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220742#M1826557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nabheet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for quick reply. I have used GUI_UPLOAD/DOWNLOAD to check whether PDF conversion is correct or not. If you see just below this code I have used 'SCMS_XSTRING_TO_BINARY' and passed it to CONTENT_HEX but not worked. Even I used CONVERT_OTF and passed the result to 'DOCUMENTCONTENT' but not worked. I mean I could able to attach but PDF getting corrupted in the email.&amp;nbsp; If you have please send me sample code for attaching PDF to workflow container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 07:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220742#M1826557</guid>
      <dc:creator>suresh_kumar53</dc:creator>
      <dc:date>2014-03-24T07:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching PDF document to workflow container using SWC* macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220743#M1826558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okie so downloaded PDF also is corrupt when you open right..? I will suggest you to just search on for OTF to PDF stuff so many documents/links are their.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 07:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220743#M1826558</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-03-24T07:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching PDF document to workflow container using SWC* macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220744#M1826559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nabheet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PDF download on desktop is not corrupted. I can open that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried to attach coverted binary data or PDF data to these macors then the created email attachement corrupted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 08:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220744#M1826559</guid>
      <dc:creator>suresh_kumar53</dc:creator>
      <dc:date>2014-03-24T08:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching PDF document to workflow container using SWC* macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220745#M1826560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After analysing your code. In the FM : GUI_DOWNLOAD. Instead of 'BIN', try : 'RAW'.&lt;/P&gt;&lt;P&gt;Hope this should take care of your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Remi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 08:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220745#M1826560</guid>
      <dc:creator>RemiKaimal</dc:creator>
      <dc:date>2014-03-24T08:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching PDF document to workflow container using SWC* macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220746#M1826561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an workflow by using swdd and it's working fine. now i need to send pdf with user decission. could you please anybody help me how to send it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220746#M1826561</guid>
      <dc:creator>PrabhuPole</dc:creator>
      <dc:date>2016-07-26T14:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching PDF document to workflow container using SWC* macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220747#M1826562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First convert the PDF to string format by using function module CONVERT_OTF then g&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;et the attachment id with function module 'SAP_WAPI_ATTACHMENT_ADD' by passing the work item id and pdf in string format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;write above steps inside an activity step with import parameter ‘I_WORKITEMID’ and export parameter ‘E_ATTCHID’. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;In next activity step with the attachment id generate the object instance of attachment by using method ‘GENERICINSTANTIATE’ of business object ‘SYSTEM’. This instance is of type ‘SOFM’, and in decision step to have the PDF in attachment format pass this instance to container element ‘ATTACHMENTS’ of send mail step.&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Regards,&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Deb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 11:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220747#M1826562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-03T11:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching PDF document to workflow container using SWC* macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220748#M1826563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks alot&amp;nbsp; for your quick guidance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have completed the workflow without using CONVERT_OTF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have created adobe form in SFP,&lt;/P&gt;&lt;P&gt;2. created report to display adobe form,&lt;/P&gt;&lt;P&gt;3. Once execute report , an workflow will trigger and mail will go with attachment&amp;nbsp; to respective manager for approval .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Prabhu. Pole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaching-pdf-document-to-workflow-container-using-swc-macros/m-p/10220748#M1826563</guid>
      <dc:creator>PrabhuPole</dc:creator>
      <dc:date>2016-08-03T12:48:51Z</dc:date>
    </item>
  </channel>
</rss>

