<?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 Script layout  PDF attachment mail error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-layout-pdf-attachment-mail-error/m-p/7201567#M1521335</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;When I triend sending theScript layout  PDF as attachment in teh mail,I can see th attachment in  in box but attahcment is not opening and giving an error saying 'File damaged and Cannot be opened'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONVERT_OTF'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      format                = 'PDF'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MAX_LINEWIDTH         = 132&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      bin_filesize          = doc_size&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      otf                   = hotfdata&lt;/P&gt;&lt;P&gt;      lines                 = htline&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      err_max_linewidth     = 1&lt;/P&gt;&lt;P&gt;      err_format            = 2&lt;/P&gt;&lt;P&gt;      err_conv_not_possible = 3&lt;/P&gt;&lt;P&gt;      OTHERS                = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Basheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 09:47:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-17T09:47:16Z</dc:date>
    <item>
      <title>Script layout  PDF attachment mail error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-layout-pdf-attachment-mail-error/m-p/7201567#M1521335</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;When I triend sending theScript layout  PDF as attachment in teh mail,I can see th attachment in  in box but attahcment is not opening and giving an error saying 'File damaged and Cannot be opened'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONVERT_OTF'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      format                = 'PDF'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MAX_LINEWIDTH         = 132&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      bin_filesize          = doc_size&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      otf                   = hotfdata&lt;/P&gt;&lt;P&gt;      lines                 = htline&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      err_max_linewidth     = 1&lt;/P&gt;&lt;P&gt;      err_format            = 2&lt;/P&gt;&lt;P&gt;      err_conv_not_possible = 3&lt;/P&gt;&lt;P&gt;      OTHERS                = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Basheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 09:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-layout-pdf-attachment-mail-error/m-p/7201567#M1521335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T09:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script layout  PDF attachment mail error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-layout-pdf-attachment-mail-error/m-p/7201568#M1521336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the CL_BCS class to send mail , it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still facing problem, refere below links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/gaurav.parmar2/blog/2008/02/13/issue-smart-form-output-to-email-as-pdf-attachment&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/Snippets/mail" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/Snippets/mail&lt;/A&gt;&lt;EM&gt;send&lt;/EM&gt;through&lt;EM&gt;output&lt;/EM&gt;controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amarnath S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 09:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-layout-pdf-attachment-mail-error/m-p/7201568#M1521336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T09:53:14Z</dc:date>
    </item>
  </channel>
</rss>

