<?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: Write PDF file into application server. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-pdf-file-into-application-server/m-p/6395217#M1405404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;transfer all the data from ur itabs to one final itab declared as follow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF final_itab OCCURS 0,&lt;/P&gt;&lt;P&gt;                 document  TYPE string,&lt;/P&gt;&lt;P&gt;           END OF final_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then finally,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET 'yourfile.pdf' FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  len = strlen( final_itab-DOCUMENT ).&lt;/P&gt;&lt;P&gt;  TRANSFER final_itab-DOCUMENT  TO 'yourfile.pdf'  LENGTH len.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET 'yourfile.pdf'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This ends the coding mate.&lt;/P&gt;&lt;P&gt;Enjoy it n have a good day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Dec 2009 10:39:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-07T10:39:08Z</dc:date>
    <item>
      <title>Write PDF file into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-pdf-file-into-application-server/m-p/6395214#M1405401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a smartform and converted into PDF using function module as given below. Now I want to write this generated PDF file into application server. I am not generating any spool request too. How can I proceed from here?  Pls advice..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      bin_filesize                 = lv_bin_filesize&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      otf                              = ls_job_output_info-otfdata&lt;/P&gt;&lt;P&gt;      doctab_archive         = lt_docs&lt;/P&gt;&lt;P&gt;      lines                           = lt_lines&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      err_conv_not_possible  = 1&lt;/P&gt;&lt;P&gt;      err_otf_mc_noendmarker = 2&lt;/P&gt;&lt;P&gt;      OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;P&gt;Saj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 10:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-pdf-file-into-application-server/m-p/6395214#M1405401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T10:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Write PDF file into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-pdf-file-into-application-server/m-p/6395215#M1405402</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;Try using open dataset to write ur file into the application server. The following syntax might help u&lt;/P&gt;&lt;P&gt;OPEN DATASET 'urfilename.pdf' FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ibrar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 10:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-pdf-file-into-application-server/m-p/6395215#M1405402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T10:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Write PDF file into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-pdf-file-into-application-server/m-p/6395216#M1405403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I use OPEN DATASET becase which internal table should I write to file?&lt;/P&gt;&lt;P&gt;We have 3 internal tables exporting from above function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 10:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-pdf-file-into-application-server/m-p/6395216#M1405403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T10:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Write PDF file into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-pdf-file-into-application-server/m-p/6395217#M1405404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;transfer all the data from ur itabs to one final itab declared as follow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF final_itab OCCURS 0,&lt;/P&gt;&lt;P&gt;                 document  TYPE string,&lt;/P&gt;&lt;P&gt;           END OF final_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then finally,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET 'yourfile.pdf' FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  len = strlen( final_itab-DOCUMENT ).&lt;/P&gt;&lt;P&gt;  TRANSFER final_itab-DOCUMENT  TO 'yourfile.pdf'  LENGTH len.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET 'yourfile.pdf'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This ends the coding mate.&lt;/P&gt;&lt;P&gt;Enjoy it n have a good day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 10:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-pdf-file-into-application-server/m-p/6395217#M1405404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T10:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Write PDF file into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-pdf-file-into-application-server/m-p/6395218#M1405405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this doesn't work..one thing i understood it supposed to be in BINARY mode...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2009 10:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-pdf-file-into-application-server/m-p/6395218#M1405405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-28T10:19:32Z</dc:date>
    </item>
  </channel>
</rss>

