<?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: Printing PDF data through ABAP program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-pdf-data-through-abap-program/m-p/7216632#M1523332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NEW-PAGE PRINT OFF. &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ABAP4_COMMIT_WORK'. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get the spool number..  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  spoolno = sy-spono. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt; "Convert spool to PDF &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;continued ...  &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   = spoolno &lt;/P&gt;&lt;P&gt;      no_dialog     = ' ' &lt;/P&gt;&lt;P&gt;    IMPORTING &lt;/P&gt;&lt;P&gt;      pdf_bytecount = l_no_of_bytes &lt;/P&gt;&lt;P&gt;      pdf_spoolid   = l_pdf_spoolid &lt;/P&gt;&lt;P&gt;      btc_jobname   = l_jobname &lt;/P&gt;&lt;P&gt;      btc_jobcount  = l_jobcount &lt;/P&gt;&lt;P&gt;    TABLES &lt;/P&gt;&lt;P&gt;      pdf           = it_pdf. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;now you have the data in ur internal table.. download the data using below FM. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  "Download PDF file C Drive &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD' &lt;/P&gt;&lt;P&gt;    EXPORTING &lt;/P&gt;&lt;P&gt;      filename = 'C:\itab_to_pdf.pdf' &lt;/P&gt;&lt;P&gt;      filetype = 'BIN' &lt;/P&gt;&lt;P&gt;    TABLES &lt;/P&gt;&lt;P&gt;      data_tab = it_pdf.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Aug 2010 11:23:08 GMT</pubDate>
    <dc:creator>former_member572142</dc:creator>
    <dc:date>2010-08-06T11:23:08Z</dc:date>
    <item>
      <title>Printing PDF data through ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-pdf-data-through-abap-program/m-p/7216629#M1523329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've an requirment to print a PDF data through ABAP program and PDF data is in Binary format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please suggest me any function module realted to this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to re-build the program in CRM box, Currently their is a program to get data from CRM box as per the GUI ID it will fetch all the attachments and we are fittering for PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the End of program we have final internal table with Binary formate and we are sending PDF through email. But, client is asking us for addtion future to Print PDF through ABAP Program as per the PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinldy suggest me how to go about this.!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mallik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 09:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-pdf-data-through-abap-program/m-p/7216629#M1523329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-06T09:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Printing PDF data through ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-pdf-data-through-abap-program/m-p/7216630#M1523330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You can use the logic as follows : &lt;/P&gt;&lt;P&gt;Using the abap coding, fill the internal table and print it.. basically create the spool request.. &lt;/P&gt;&lt;P&gt;not get this spool request and convert it to the PDF format ... &lt;/P&gt;&lt;P&gt;below code helps u to do it..  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use  the below code to get the print parameters..  &lt;/P&gt;&lt;P&gt;"Read, determine, change spool print parameters and archive parameters &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GET_PRINT_PARAMETERS' &lt;/P&gt;&lt;P&gt;    EXPORTING &lt;/P&gt;&lt;P&gt;      in_archive_parameters  = lw_arcpar &lt;/P&gt;&lt;P&gt;      in_parameters          = lw_pripar &lt;/P&gt;&lt;P&gt;      layout                 = l_lay &lt;/P&gt;&lt;P&gt;      line_count             = l_lines &lt;/P&gt;&lt;P&gt;      line_size              = l_cols &lt;/P&gt;&lt;P&gt;      no_dialog              = 'X' &lt;/P&gt;&lt;P&gt;    IMPORTING &lt;/P&gt;&lt;P&gt;      out_archive_parameters = lw_arcpar &lt;/P&gt;&lt;P&gt;      out_parameters         = lw_pripar &lt;/P&gt;&lt;P&gt;      valid                  = l_val .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;continued...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 10:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-pdf-data-through-abap-program/m-p/7216630#M1523330</guid>
      <dc:creator>former_member572142</dc:creator>
      <dc:date>2010-08-06T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Printing PDF data through ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-pdf-data-through-abap-program/m-p/7216631#M1523331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;continued ... &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;this will get you the spool request that is been generated.   &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF l_val  space AND sy-subrc = 0. &lt;/P&gt;&lt;P&gt;    lw_pripar-prrel = space. &lt;/P&gt;&lt;P&gt;    lw_pripar-primm = space. &lt;/P&gt;&lt;P&gt;    NEW-PAGE PRINT ON  &lt;/P&gt;&lt;P&gt;      NEW-SECTION  &lt;/P&gt;&lt;P&gt;      PARAMETERS lw_pripar  &lt;/P&gt;&lt;P&gt;      ARCHIVE PARAMETERS lw_arcpar  &lt;/P&gt;&lt;P&gt;      NO DIALOG.  &lt;/P&gt;&lt;P&gt;  ENDIF.  &lt;/P&gt;&lt;P&gt;  "Get data  &lt;/P&gt;&lt;P&gt;  SELECT * &lt;/P&gt;&lt;P&gt;  FROM t100 &lt;/P&gt;&lt;P&gt;  INTO TABLE it_t100 &lt;/P&gt;&lt;P&gt;  UP TO 100 ROWS &lt;/P&gt;&lt;P&gt;  WHERE sprsl = sy-langu. &lt;/P&gt;&lt;P&gt;  " Writing to Spool &lt;/P&gt;&lt;P&gt;  LOOP AT it_t100. &lt;/P&gt;&lt;P&gt;    WRITE:/ it_t100. &lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 11:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-pdf-data-through-abap-program/m-p/7216631#M1523331</guid>
      <dc:creator>former_member572142</dc:creator>
      <dc:date>2010-08-06T11:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Printing PDF data through ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-pdf-data-through-abap-program/m-p/7216632#M1523332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NEW-PAGE PRINT OFF. &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ABAP4_COMMIT_WORK'. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get the spool number..  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  spoolno = sy-spono. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt; "Convert spool to PDF &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;continued ...  &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   = spoolno &lt;/P&gt;&lt;P&gt;      no_dialog     = ' ' &lt;/P&gt;&lt;P&gt;    IMPORTING &lt;/P&gt;&lt;P&gt;      pdf_bytecount = l_no_of_bytes &lt;/P&gt;&lt;P&gt;      pdf_spoolid   = l_pdf_spoolid &lt;/P&gt;&lt;P&gt;      btc_jobname   = l_jobname &lt;/P&gt;&lt;P&gt;      btc_jobcount  = l_jobcount &lt;/P&gt;&lt;P&gt;    TABLES &lt;/P&gt;&lt;P&gt;      pdf           = it_pdf. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;now you have the data in ur internal table.. download the data using below FM. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  "Download PDF file C Drive &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD' &lt;/P&gt;&lt;P&gt;    EXPORTING &lt;/P&gt;&lt;P&gt;      filename = 'C:\itab_to_pdf.pdf' &lt;/P&gt;&lt;P&gt;      filetype = 'BIN' &lt;/P&gt;&lt;P&gt;    TABLES &lt;/P&gt;&lt;P&gt;      data_tab = it_pdf.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 11:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-pdf-data-through-abap-program/m-p/7216632#M1523332</guid>
      <dc:creator>former_member572142</dc:creator>
      <dc:date>2010-08-06T11:23:08Z</dc:date>
    </item>
  </channel>
</rss>

