<?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 Error while opening Smartform Attachment in Email in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-smartform-attachment-in-email/m-p/11576794#M1938516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My &lt;/SPAN&gt;requirement is&lt;SPAN style="font-size: 10pt;"&gt; converted one smartform into PDF and sent it via Email,but the attachment in the mail is not opening giving error as Failed to load PDF document or this document cannot be opened as it is an attachment sent via email and not decoded properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;suggest some&amp;nbsp; solution with supporting code well &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in Advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Suprit Patil.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 19:59:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-03-09T19:59:34Z</dc:date>
    <item>
      <title>Error while opening Smartform Attachment in Email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-smartform-attachment-in-email/m-p/11576794#M1938516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My &lt;/SPAN&gt;requirement is&lt;SPAN style="font-size: 10pt;"&gt; converted one smartform into PDF and sent it via Email,but the attachment in the mail is not opening giving error as Failed to load PDF document or this document cannot be opened as it is an attachment sent via email and not decoded properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;suggest some&amp;nbsp; solution with supporting code well &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in Advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Suprit Patil.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 19:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-smartform-attachment-in-email/m-p/11576794#M1938516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-09T19:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error while opening Smartform Attachment in Email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-smartform-attachment-in-email/m-p/11576795#M1938517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally I would use the function module &lt;SPAN style="font-size: 13.3333px;"&gt;SSFCOMP_PDF_PREVIEW first to check whether the otf data (job_output_info-otfdata from the FM that called the smartform) will open a correct PDF with the contents of the smartform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that works correctly, the problem may be in converting the otfdata and attaching it to the email. For that I generally use the classes cl_bcs &amp;amp; cl_document_bcs (there plenty of examples that can be found on the net).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as adding the attachment goes, there is an add_attachment method in the class cl_document_bcs. And for that you'll have to convert the otfdata to either SOLI_TAB or&lt;/P&gt;&lt;P&gt;SOLIX_TAB. You can use FM SX_OBJECT_CONVERT_OTF_PDF for that I believe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 20:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-smartform-attachment-in-email/m-p/11576795#M1938517</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2016-03-09T20:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error while opening Smartform Attachment in Email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-smartform-attachment-in-email/m-p/11576796#M1938518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Patrick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 04:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-smartform-attachment-in-email/m-p/11576796#M1938518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-10T04:38:30Z</dc:date>
    </item>
  </channel>
</rss>

