<?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: Error while converting internal table into PDF in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284038#M1219399</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;Firstly, How are you generating/triggering the spool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using any write statements to write the content of the internal table to the spool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see all the contents of the internal table in the spool when you select the spool and click 'Display' in trxn SP01?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2009 06:32:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-10T06:32:15Z</dc:date>
    <item>
      <title>Error while converting internal table into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284037#M1219398</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;&lt;/P&gt;&lt;P&gt;According to my requirement, i need to download the contents of the internal table into PDF file.&lt;/P&gt;&lt;P&gt;But when i create a spool of the internal table contents it shows zero pages even when there is content and it gets displayed when i double click on the TYPE column in Spool number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to this when i use the FM 'CONVERT_ABAPSPOOLJOB_2_PDF'  and then 'GUI_DOWNLOAD' to convert it into PDF and download on local machine, a PDF file gets generated but it showz error  stating 'No Pages found'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What might be the reason for this error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 05:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284037#M1219398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T05:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error while converting internal table into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284038#M1219399</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;Firstly, How are you generating/triggering the spool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using any write statements to write the content of the internal table to the spool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see all the contents of the internal table in the spool when you select the spool and click 'Display' in trxn SP01?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 06:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284038#M1219399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T06:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error while converting internal table into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284039#M1219400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i am creating a spool, and i can see all the data in SP01, but the no. of pages is zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 06:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284039#M1219400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T06:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error while converting internal table into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284040#M1219401</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;pls see the code below...it is working..&lt;/P&gt;&lt;P&gt;DATA :textlines LIKE tline OCCURS 100 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA otf LIKE itcoo OCCURS 1000 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA it_lines LIKE tline OCCURS 100 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA options LIKE itcpo.&lt;/P&gt;&lt;P&gt;DATA header LIKE thead.&lt;/P&gt;&lt;P&gt;DATA result	LIKE	itcpp.&lt;/P&gt;&lt;P&gt;DATA: bin_filesize TYPE i,&lt;/P&gt;&lt;P&gt;fullpath type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: filesize TYPE i,&lt;/P&gt;&lt;P&gt;      convcount TYPE i,&lt;/P&gt;&lt;P&gt;      cancel(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;textlines-tdformat = '*'.&lt;/P&gt;&lt;P&gt;textlines-tdline    = 'Hello Hao'.&lt;/P&gt;&lt;P&gt;APPEND textlines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options-tdgetotf = 'X'.&lt;/P&gt;&lt;P&gt;options-tdnoprev = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'PRINT_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  APPLICATION                    = 'TX'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMS                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEVICE                         = 'PRINTER'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   dialog                         = ' '&lt;/P&gt;&lt;P&gt;    header                         = header&lt;/P&gt;&lt;P&gt;   OPTIONS                        = options&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEW_ARCHIVE_PARAMS             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   RESULT                         = RESULT&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    lines                          =  textlines&lt;/P&gt;&lt;P&gt;   otfdata                        = otf&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CANCELED                       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEVICE                         = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORM                           = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OPTIONS                        = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNCLOSED                       = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN                        = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORMAT                         = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TEXTFORMAT                     = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COMMUNICATION                  = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BAD_PAGEFORMAT_FOR_PRINT       = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                         = 11&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;     IMPORTING&lt;/P&gt;&lt;P&gt;          bin_filesize      = filesize&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          otf               = otf&lt;/P&gt;&lt;P&gt;          lines             = it_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_bad_otf           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fullpath = 'C:/foldename/test.pdf'.&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                  = bin_filesize&lt;/P&gt;&lt;P&gt;    filename                      = fullpath&lt;/P&gt;&lt;P&gt;    filetype                      = 'BIN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  APPEND                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BYTEORDER_MARK             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILELENGTH                    = c&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                      = it_lines&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORMAT_TAB                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;P&gt;Keerthi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keerthy K on Mar 10, 2009 7:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 06:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284040#M1219401</guid>
      <dc:creator>keerthy_k</dc:creator>
      <dc:date>2009-03-10T06:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error while converting internal table into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284041#M1219402</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 Printer options how you were using whether Print Immediately/No Print/Print 0 pages etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One you got the spool correctly ,then you can use the FM: CONVERT_ABAPSPOOLJOB_2_PDF and do the necessary things.&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;Sreeram Kumar.Madisetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 06:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284041#M1219402</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2009-03-10T06:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error while converting internal table into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284042#M1219403</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;Go through this link below:&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="1530373"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 06:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-converting-internal-table-into-pdf/m-p/5284042#M1219403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T06:43:17Z</dc:date>
    </item>
  </channel>
</rss>

