<?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: PDF Convertion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-convertion/m-p/1634692#M283068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;i use it in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZGRO_PDF_SPOOL_DOWNLOAD.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: FILESIZE TYPE I.&lt;/P&gt;&lt;P&gt;DATA: SPOOL_NR LIKE TSP01-RQIDENT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF PDF_OUTPUT OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE TLINE.&lt;/P&gt;&lt;P&gt;DATA: END   OF PDF_OUTPUT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  SPOOL_NR = 7909.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            SRC_SPOOLID              = SPOOL_NR&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            PDF_BYTECOUNT            = FILESIZE&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            PDF                      = PDF_OUTPUT&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            ERR_NO_ABAP_SPOOLJOB     = 1&lt;/P&gt;&lt;P&gt;            ERR_NO_SPOOLJOB          = 2&lt;/P&gt;&lt;P&gt;            ERR_NO_PERMISSION        = 3&lt;/P&gt;&lt;P&gt;            ERR_CONV_NOT_POSSIBLE    = 4&lt;/P&gt;&lt;P&gt;            ERR_BAD_DESTDEVICE       = 5&lt;/P&gt;&lt;P&gt;            USER_CANCELLED           = 6&lt;/P&gt;&lt;P&gt;            ERR_SPOOLERROR           = 7&lt;/P&gt;&lt;P&gt;            ERR_TEMSEERROR           = 8&lt;/P&gt;&lt;P&gt;            ERR_BTCJOB_OPEN_FAILED   = 9&lt;/P&gt;&lt;P&gt;            ERR_BTCJOB_SUBMIT_FAILED = 10&lt;/P&gt;&lt;P&gt;            ERR_BTCJOB_CLOSE_FAILED  = 11&lt;/P&gt;&lt;P&gt;            OTHERS                   = 12.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Download Spool&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            BIN_FILESIZE = FILESIZE&lt;/P&gt;&lt;P&gt;            FILENAME     = 'D:\TESTPDF.PDF'&lt;/P&gt;&lt;P&gt;            FILETYPE     = 'BIN'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            DATA_TAB     = PDF_OUTPUT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no Problems. Do you make the same Download?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2006 10:38:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-19T10:38:41Z</dc:date>
    <item>
      <title>PDF Convertion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-convertion/m-p/1634691#M283067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an application to create a pdf of the timeslip of a user. We create a spool (ABAP List) and in the spool the abap list is ok (portrait, even if its X_90_132).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we convert the spool with CONVERT_ABAPSPOOLJOB_2_PDF we get a working PDF but the format has changed to landscape. The text looks terrible, because there is allways to much space between the characters. The same line is now streched over the whole landscape line. Althought some part of the page is lost because only 54 lines are shown instead of 90.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone an idea how i should be able to convert the spool coorectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-convertion/m-p/1634691#M283067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Convertion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-convertion/m-p/1634692#M283068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;i use it in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZGRO_PDF_SPOOL_DOWNLOAD.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: FILESIZE TYPE I.&lt;/P&gt;&lt;P&gt;DATA: SPOOL_NR LIKE TSP01-RQIDENT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF PDF_OUTPUT OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE TLINE.&lt;/P&gt;&lt;P&gt;DATA: END   OF PDF_OUTPUT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  SPOOL_NR = 7909.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            SRC_SPOOLID              = SPOOL_NR&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            PDF_BYTECOUNT            = FILESIZE&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            PDF                      = PDF_OUTPUT&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            ERR_NO_ABAP_SPOOLJOB     = 1&lt;/P&gt;&lt;P&gt;            ERR_NO_SPOOLJOB          = 2&lt;/P&gt;&lt;P&gt;            ERR_NO_PERMISSION        = 3&lt;/P&gt;&lt;P&gt;            ERR_CONV_NOT_POSSIBLE    = 4&lt;/P&gt;&lt;P&gt;            ERR_BAD_DESTDEVICE       = 5&lt;/P&gt;&lt;P&gt;            USER_CANCELLED           = 6&lt;/P&gt;&lt;P&gt;            ERR_SPOOLERROR           = 7&lt;/P&gt;&lt;P&gt;            ERR_TEMSEERROR           = 8&lt;/P&gt;&lt;P&gt;            ERR_BTCJOB_OPEN_FAILED   = 9&lt;/P&gt;&lt;P&gt;            ERR_BTCJOB_SUBMIT_FAILED = 10&lt;/P&gt;&lt;P&gt;            ERR_BTCJOB_CLOSE_FAILED  = 11&lt;/P&gt;&lt;P&gt;            OTHERS                   = 12.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Download Spool&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            BIN_FILESIZE = FILESIZE&lt;/P&gt;&lt;P&gt;            FILENAME     = 'D:\TESTPDF.PDF'&lt;/P&gt;&lt;P&gt;            FILETYPE     = 'BIN'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            DATA_TAB     = PDF_OUTPUT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no Problems. Do you make the same Download?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-convertion/m-p/1634692#M283068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Convertion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-convertion/m-p/1634693#M283069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sap/abap/pdf_creation.htm" target="test_blank"&gt;http://www.erpgenie.com/sap/abap/pdf_creation.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exactly ur requirement is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful pls mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-convertion/m-p/1634693#M283069</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-19T10:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Convertion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-convertion/m-p/1634694#M283070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First thx for the help &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Dieter Gröhn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a 4.70 System I use: &lt;/P&gt;&lt;P&gt;      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          src_spoolid                    = spoolid&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          pdf_bytecount                  = numbytes&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;          pdf                            = pdf_line_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      call method cl_bsp_utility=&amp;gt;download&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          content_type        = 'application/pdf'&lt;/P&gt;&lt;P&gt;          content_disposition = 'attachment; filename=zeitwirtschaft.pdf'&lt;/P&gt;&lt;P&gt;          response            = response&lt;/P&gt;&lt;P&gt;          navigation          = navigation&lt;/P&gt;&lt;P&gt;          object_t            = pdf_line_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a ERP-System i have to convert the to xstring, because the cl_bsp_utility=&amp;gt;download only accept a table type x as of this release...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          src_spoolid                    = spoolid&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          pdf_bytecount                  = numbytes&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;          pdf                            = pdf_line_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      data: spool_nr type tsp01-rqident,&lt;/P&gt;&lt;P&gt;            pdf_tab_line type tline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      field-symbols &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type x.&lt;BR /&gt;&lt;BR /&gt; loop at pdf_line_tab into pdf_tab_line.&lt;BR /&gt; assign pdf_tab_line to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;casting type x.&lt;BR /&gt; concatenate pdf_line_xstring&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into pdf_line_xstring in byte mode.&lt;BR /&gt; endloop.&lt;BR /&gt;&lt;BR /&gt;cl_bsp_utility=&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;download(&lt;/P&gt;&lt;P&gt;                content_type        = 'application/pdf'&lt;/P&gt;&lt;P&gt;                content_disposition = 'attachment; filename=zeitwirtschaft.pdf'&lt;/P&gt;&lt;P&gt;                response            = response&lt;/P&gt;&lt;P&gt;                navigation          = navigation&lt;/P&gt;&lt;P&gt;                object_s            = pdf_line_xstring &lt;/P&gt;&lt;P&gt;                ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But even if I use the download function its the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for the link. I just get an error 127 if I try to use the programm. Just to be sure, the Ident is the Spool-ID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interner Fehler 127/       127 im Spooler (obsolete c-call: rspoarsd_abap_read_spool_dataset)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regard&lt;/P&gt;&lt;P&gt;Stef&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 11:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-convertion/m-p/1634694#M283070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T11:38:55Z</dc:date>
    </item>
  </channel>
</rss>

