<?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: Sapscript-PDF in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134382#M1190072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;U have to first write code as   in CLOSE_FORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      RESULT = RESULT&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            otfdata = otf_data&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      OTHERS = 1.&lt;/P&gt;&lt;P&gt;And MOST IMPORTANT THING IS    **********************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  itcpo-tdnoprint  = 'X'.&lt;/P&gt;&lt;P&gt;  itcpo-tdimmed = ' '.&lt;/P&gt;&lt;P&gt;  itcpo-tdgetotf = 'X'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  itcpo-tdnewid    = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      form           = tnapr-fonam&lt;/P&gt;&lt;P&gt;      OPTIONS        = itcpo&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      canceled       = 01&lt;/P&gt;&lt;P&gt;      device         = 02&lt;/P&gt;&lt;P&gt;      OTHERS         = 03.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In OPEN_FORM U have to pass ITCPO as  above. Then in that u have to set  itcpo-tdgetotf = 'X'.&lt;/P&gt;&lt;P&gt;then only u get data in OTF format which u can convert in PDF Format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_pdf_data TYPE TABLE OF tline.&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;P&gt;          max_linewidth         = 132&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          bin_filesize          = pdf_file_size&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          otf                   = otf_data&lt;/P&gt;&lt;P&gt;          lines                 = t_pdf_data&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;&lt;/P&gt;&lt;P&gt; DATA : p_xl TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     program_name        = syst-cprog&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     field_name          = 'p_xl'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     file_name           = p_xl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : filename TYPE string.&lt;/P&gt;&lt;P&gt;concatenate p_xl ekko-ebeln '.pdf' into filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        bin_filesize            = pdf_file_size&lt;/P&gt;&lt;P&gt;        filename                = filename&lt;/P&gt;&lt;P&gt;        filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data_tab                = t_pdf_data&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_write_error        = 1&lt;/P&gt;&lt;P&gt;        no_batch                = 2&lt;/P&gt;&lt;P&gt;        gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;        invalid_type            = 4&lt;/P&gt;&lt;P&gt;        no_authority            = 5&lt;/P&gt;&lt;P&gt;        unknown_error           = 6&lt;/P&gt;&lt;P&gt;        header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;        separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;        filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;        header_too_long         = 10&lt;/P&gt;&lt;P&gt;        dp_error_create         = 11&lt;/P&gt;&lt;P&gt;        dp_error_send           = 12&lt;/P&gt;&lt;P&gt;        dp_error_write          = 13&lt;/P&gt;&lt;P&gt;        unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;        access_denied           = 15&lt;/P&gt;&lt;P&gt;        dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;        disk_full               = 17&lt;/P&gt;&lt;P&gt;        dp_timeout              = 18&lt;/P&gt;&lt;P&gt;        file_not_found          = 19&lt;/P&gt;&lt;P&gt;        dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;        control_flush_error     = 21&lt;/P&gt;&lt;P&gt;        OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;      WITH sy-msgv1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2009 05:22:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-02T05:22:28Z</dc:date>
    <item>
      <title>Sapscript-PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134373#M1190063</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;               Iam trying to output one Sapscript to Pdf File. &lt;/P&gt;&lt;P&gt;Iam trying to convert the OTF recieved after close form and using the otf iam callind the FM CONVERT_OTF -&amp;gt; but the Fm is returning blank itab for LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest a solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 07:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134373#M1190063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T07:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134374#M1190064</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;Never tried this one but this may help FM CONVERT_OTFSPOOLJOB_2_PDF.. just give the spool you can get it in TSP01 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try these FMs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FPCOMP_CREATE_PDF_FROM_SPOOL&lt;/P&gt;&lt;P&gt;CONVERT_ABAPSPOOLJOB_2_PDF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonard Chomi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 07:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134374#M1190064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T07:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134375#M1190065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;debug and check if ur getting ur otf data. before the call fm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 07:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134375#M1190065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T07:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134376#M1190066</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; Is the OTF table properly filled and did you give the format properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CONVERT_OTF'
           EXPORTING
                format                = 'PDF'
           IMPORTING
                bin_filesize          = pdf_fsize
                bin_file              = pdf_xstring
           TABLES
                otf                   = otf_table
                lines                 = pdf_table
           EXCEPTIONS
                err_max_linewidth     = 1
                err_format            = 2
                err_conv_not_possible = 3
                OTHERS                = 4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 07:20:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134376#M1190066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T07:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134377#M1190067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I chacked.. iam getting the otf data.. Convert_OTF is executing sucessfully, and giving Sy-subrc = 0. but no data in itab For Lines&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 07:20:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134377#M1190067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T07:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134378#M1190068</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;If you want to convert your sapscript in to PDF Document then first generate spool request number&lt;/P&gt;&lt;P&gt;for that script after that use the below report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSTXPDFT4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;through this you can convert your sapscript to PDF Document&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;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 07:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134378#M1190068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T07:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134379#M1190069</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;Check the below link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1836669"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankki Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 08:14:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134379#M1190069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T08:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134380#M1190070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u show us the code which u hv written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 08:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134380#M1190070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T08:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134381#M1190071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;      i wrote like this&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              RESULT   = ITCPP&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              OTFDATA  = otfdata&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              UNOPENED = 3.&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;                BIN_FILE              = ld_binfile&lt;/P&gt;&lt;P&gt;           TABLES&lt;/P&gt;&lt;P&gt;                OTF                   = OTFDATA[]&lt;/P&gt;&lt;P&gt;                LINES                 = PDFTAB[]&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 04:05:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134381#M1190071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T04:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134382#M1190072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;U have to first write code as   in CLOSE_FORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      RESULT = RESULT&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            otfdata = otf_data&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      OTHERS = 1.&lt;/P&gt;&lt;P&gt;And MOST IMPORTANT THING IS    **********************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  itcpo-tdnoprint  = 'X'.&lt;/P&gt;&lt;P&gt;  itcpo-tdimmed = ' '.&lt;/P&gt;&lt;P&gt;  itcpo-tdgetotf = 'X'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  itcpo-tdnewid    = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      form           = tnapr-fonam&lt;/P&gt;&lt;P&gt;      OPTIONS        = itcpo&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      canceled       = 01&lt;/P&gt;&lt;P&gt;      device         = 02&lt;/P&gt;&lt;P&gt;      OTHERS         = 03.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In OPEN_FORM U have to pass ITCPO as  above. Then in that u have to set  itcpo-tdgetotf = 'X'.&lt;/P&gt;&lt;P&gt;then only u get data in OTF format which u can convert in PDF Format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_pdf_data TYPE TABLE OF tline.&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;P&gt;          max_linewidth         = 132&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          bin_filesize          = pdf_file_size&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          otf                   = otf_data&lt;/P&gt;&lt;P&gt;          lines                 = t_pdf_data&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;&lt;/P&gt;&lt;P&gt; DATA : p_xl TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     program_name        = syst-cprog&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     field_name          = 'p_xl'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     file_name           = p_xl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : filename TYPE string.&lt;/P&gt;&lt;P&gt;concatenate p_xl ekko-ebeln '.pdf' into filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        bin_filesize            = pdf_file_size&lt;/P&gt;&lt;P&gt;        filename                = filename&lt;/P&gt;&lt;P&gt;        filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data_tab                = t_pdf_data&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_write_error        = 1&lt;/P&gt;&lt;P&gt;        no_batch                = 2&lt;/P&gt;&lt;P&gt;        gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;        invalid_type            = 4&lt;/P&gt;&lt;P&gt;        no_authority            = 5&lt;/P&gt;&lt;P&gt;        unknown_error           = 6&lt;/P&gt;&lt;P&gt;        header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;        separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;        filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;        header_too_long         = 10&lt;/P&gt;&lt;P&gt;        dp_error_create         = 11&lt;/P&gt;&lt;P&gt;        dp_error_send           = 12&lt;/P&gt;&lt;P&gt;        dp_error_write          = 13&lt;/P&gt;&lt;P&gt;        unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;        access_denied           = 15&lt;/P&gt;&lt;P&gt;        dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;        disk_full               = 17&lt;/P&gt;&lt;P&gt;        dp_timeout              = 18&lt;/P&gt;&lt;P&gt;        file_not_found          = 19&lt;/P&gt;&lt;P&gt;        dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;        control_flush_error     = 21&lt;/P&gt;&lt;P&gt;        OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;      WITH sy-msgv1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 05:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-pdf/m-p/5134382#M1190072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T05:22:28Z</dc:date>
    </item>
  </channel>
</rss>

