<?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: How to convert xstring or binary data to PDF format Module pool programming SAP ABAP? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739199#M35246</link>
    <description>&lt;P&gt;As I understand it, you are uploading a PDF from somewhere and storing its binary representation in a database table. You are then downloading it, and now it doesn't open.&lt;/P&gt;
  &lt;P&gt;If that's the case, your data is getting corrupted in your process - the process itself should work, I've done it many times with different types of files. There are three points where corruption might happen.&lt;/P&gt;
  &lt;P&gt;1. On the upload&lt;/P&gt;
  &lt;P&gt;2. In the storing of the data in the database&lt;/P&gt;
  &lt;P&gt;3. On the download&lt;/P&gt;
  &lt;P&gt;Without further information - for example the relevant source code for each step (use the CODE button in the editor and right-click paste as plain text) - it's not possible to tell you a which point its going wrong..&lt;/P&gt;</description>
    <pubDate>Mon, 03 Sep 2018 07:33:20 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2018-09-03T07:33:20Z</dc:date>
    <item>
      <title>How to convert xstring or binary data to PDF format Module pool programming SAP ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739195#M35242</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I am uploading the PDF file data in custom database table in xstring format.&lt;/P&gt;
  &lt;P&gt;I want to read xstring data and display in PDF format in presentation server/desktop through module pool programming. Here I am not using any smartform/script.&lt;/P&gt;
  &lt;P&gt;How to convert xstring data to PDF format ?&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Shabbir&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 04:50:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739195#M35242</guid>
      <dc:creator>former_member396057</dc:creator>
      <dc:date>2018-09-03T04:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert xstring or binary data to PDF format Module pool programming SAP ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739196#M35243</link>
      <description>&lt;P&gt;If you're uploading a PDF then the xstring is already in PDF format. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 05:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739196#M35243</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-09-03T05:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert xstring or binary data to PDF format Module pool programming SAP ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739197#M35244</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;
  &lt;P&gt;I have xstring format data in custom database table. I am reading the xstring data and then download using 'GUI_DOWNLOAD' on desktop. The pdf file is not opening, it is showing &lt;STRONG&gt;error &lt;/STRONG&gt;" Adobe Reader could not open 'file1.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded ".&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Shabbir&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 06:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739197#M35244</guid>
      <dc:creator>former_member396057</dc:creator>
      <dc:date>2018-09-03T06:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert xstring or binary data to PDF format Module pool programming SAP ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739198#M35245</link>
      <description>&lt;P&gt;Are you &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;using filetype 'BIN' in the call of cl_gui_frontend_services=&amp;gt;gui_download&lt;/LI&gt; 
   &lt;LI&gt;the first one trying to read and display those data (if yes, check how it was built and saved in database, are those actual pdf data?)&lt;/LI&gt; 
  &lt;/UL&gt;</description>
      <pubDate>Mon, 03 Sep 2018 06:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739198#M35245</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-09-03T06:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert xstring or binary data to PDF format Module pool programming SAP ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739199#M35246</link>
      <description>&lt;P&gt;As I understand it, you are uploading a PDF from somewhere and storing its binary representation in a database table. You are then downloading it, and now it doesn't open.&lt;/P&gt;
  &lt;P&gt;If that's the case, your data is getting corrupted in your process - the process itself should work, I've done it many times with different types of files. There are three points where corruption might happen.&lt;/P&gt;
  &lt;P&gt;1. On the upload&lt;/P&gt;
  &lt;P&gt;2. In the storing of the data in the database&lt;/P&gt;
  &lt;P&gt;3. On the download&lt;/P&gt;
  &lt;P&gt;Without further information - for example the relevant source code for each step (use the CODE button in the editor and right-click paste as plain text) - it's not possible to tell you a which point its going wrong..&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 07:33:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739199#M35246</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-09-03T07:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert xstring or binary data to PDF format Module pool programming SAP ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739200#M35247</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Then you should use SCMS_XSTRING_BINARY to convert raw data in binary format.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;To display pdf format, you can use cl_gui_html_viewer, load then show_data method, through a container.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Hope to help.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Bye&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 08:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-xstring-or-binary-data-to-pdf-format-module-pool-programming/m-p/739200#M35247</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2018-09-03T08:05:26Z</dc:date>
    </item>
  </channel>
</rss>

