<?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 SO_DOCUMENT_SEND_API1 not working to Email SapScript PDF in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-not-working-to-email-sapscript-pdf/m-p/11785822#M1953039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have converted my SapScript using&amp;nbsp; SX_OBJECT_CONVERT_OTF_PDF and it converts the SapScript to PDF fine. I can download the file to my desktop and it opens with adobe with no issue, I can even email it from my desktop and it opens fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOWEVER, when I try to email it from my program using either&amp;nbsp; SO_DOCUMENT_SEND_API1 or&amp;nbsp; SO_NEW_DOCUMENT_ATT_SEND_API1 the attaching the file as&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;contents_hex&lt;/STRONG&gt;&lt;/SPAN&gt; the email arrives with attachment fine but when I try to open the file, I get a message saying that the attachment has been corrupted and cannot be repaired. This is the same file that opens without issue when downloaded. as a matter of fact I left the download in the program and the same file comes both ways opens on download corrupted message through email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have noticed that I am using PDF as document type&amp;nbsp; lt_objpack&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;doc_type &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'PDF'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. and it our table TSOTD - Valid Object Types there is no entry for PDF. Do we need to perhaps add a PDF entry??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/985976" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2016 14:41:58 GMT</pubDate>
    <dc:creator>former_member244850</dc:creator>
    <dc:date>2016-06-29T14:41:58Z</dc:date>
    <item>
      <title>SO_DOCUMENT_SEND_API1 not working to Email SapScript PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-not-working-to-email-sapscript-pdf/m-p/11785822#M1953039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have converted my SapScript using&amp;nbsp; SX_OBJECT_CONVERT_OTF_PDF and it converts the SapScript to PDF fine. I can download the file to my desktop and it opens with adobe with no issue, I can even email it from my desktop and it opens fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOWEVER, when I try to email it from my program using either&amp;nbsp; SO_DOCUMENT_SEND_API1 or&amp;nbsp; SO_NEW_DOCUMENT_ATT_SEND_API1 the attaching the file as&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;contents_hex&lt;/STRONG&gt;&lt;/SPAN&gt; the email arrives with attachment fine but when I try to open the file, I get a message saying that the attachment has been corrupted and cannot be repaired. This is the same file that opens without issue when downloaded. as a matter of fact I left the download in the program and the same file comes both ways opens on download corrupted message through email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have noticed that I am using PDF as document type&amp;nbsp; lt_objpack&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;doc_type &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'PDF'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. and it our table TSOTD - Valid Object Types there is no entry for PDF. Do we need to perhaps add a PDF entry??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/985976" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 14:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-not-working-to-email-sapscript-pdf/m-p/11785822#M1953039</guid>
      <dc:creator>former_member244850</dc:creator>
      <dc:date>2016-06-29T14:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: SO_DOCUMENT_SEND_API1 not working to Email SapScript PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-not-working-to-email-sapscript-pdf/m-p/11785823#M1953040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I rewrote it using cl_bcs and it now works without issue.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 16:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-not-working-to-email-sapscript-pdf/m-p/11785823#M1953040</guid>
      <dc:creator>former_member244850</dc:creator>
      <dc:date>2016-06-29T16:50:51Z</dc:date>
    </item>
  </channel>
</rss>

