<?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 pdf file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-file/m-p/4157264#M993904</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;   I have converted a script into pdf file thru standard program 'RSTXPDFT4. Now I am saving it in the application server. Again I have read that pdf by storing it in the internal table and then downloading thru 'gui_download'. At last what I found is I could not open it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I am opening it  with adobe reader, it says the file is not properly decoded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did as below to store it in application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset p_file1 for output in binary mode.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  loop at pdf into wa_pdf.&lt;/P&gt;&lt;P&gt;    transfer pdf-tdformat to p_file1.&lt;/P&gt;&lt;P&gt;    transfer pdf-tdline to p_file1.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  message e003(zmsg).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset p_file1.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  message e004(zmsg).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What may be the reason. Please help. Its urgent.Error  is occuring while storing in application server. Please provide exact method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;khadeer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: khadeer basha on Jul 26, 2008 2:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jul 2008 12:48:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-26T12:48:19Z</dc:date>
    <item>
      <title>pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-file/m-p/4157264#M993904</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;   I have converted a script into pdf file thru standard program 'RSTXPDFT4. Now I am saving it in the application server. Again I have read that pdf by storing it in the internal table and then downloading thru 'gui_download'. At last what I found is I could not open it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I am opening it  with adobe reader, it says the file is not properly decoded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did as below to store it in application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset p_file1 for output in binary mode.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  loop at pdf into wa_pdf.&lt;/P&gt;&lt;P&gt;    transfer pdf-tdformat to p_file1.&lt;/P&gt;&lt;P&gt;    transfer pdf-tdline to p_file1.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  message e003(zmsg).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset p_file1.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  message e004(zmsg).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What may be the reason. Please help. Its urgent.Error  is occuring while storing in application server. Please provide exact method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;khadeer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: khadeer basha on Jul 26, 2008 2:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 12:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-file/m-p/4157264#M993904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-26T12:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-file/m-p/4157265#M993905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Khadeer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just refer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="837569"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="744158"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also caution:&lt;/P&gt;&lt;P&gt;While adding the attachment using the mail FM, you will have to speify the correct file extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 13:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-file/m-p/4157265#M993905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-26T13:20:53Z</dc:date>
    </item>
  </channel>
</rss>

