<?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 output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968086#M1490896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per my understanding, you need to display a PDF document inplace in your report. I'm not sure whether, PDF can be displayed Inplace using BDS or any other DOI classes. But, it can be easily done using Adobe forms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jun 2010 09:03:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-17T09:03:08Z</dc:date>
    <item>
      <title>PDF output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968083#M1490893</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;I have a requirement where in the data which is in a database table( eg. All entries of PA0001) has to be displayed in the form of a PDF  when I execute the program.&lt;/P&gt;&lt;P&gt;The layout in the PDF file should be similar to the table contents in SE16 - i.e. Heading, all columns seperated by lines.&lt;/P&gt;&lt;P&gt;I donot want to send the data to spool.&lt;/P&gt;&lt;P&gt;Please provide me the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kiran KN on Jun 17, 2010 10:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 08:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968083#M1490893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T08:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968084#M1490894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the Adobe forms?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 08:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968084#M1490894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T08:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968085#M1490895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I am not aware of that. Actually, I donot need any interaction, only data has to de displayed in the form of a table in PDF file on executing the rpogram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide more few more inputs into that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 08:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968085#M1490895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T08:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968086#M1490896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per my understanding, you need to display a PDF document inplace in your report. I'm not sure whether, PDF can be displayed Inplace using BDS or any other DOI classes. But, it can be easily done using Adobe forms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 09:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968086#M1490896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T09:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968087#M1490897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually there are lots of approach which can meet with your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. using ADS to generate PDF and display it&lt;/P&gt;&lt;P&gt;Can you please check if the demo program FP_PDF_TEST_01 exists in your system? this is a very simple example which tells you how to use ADS to generate PDF.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INITIALIZATION.
  MOVE cl_fp=&amp;gt;get_ads_connection( ) TO p_dest.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xfd.
  PERFORM value_help_for_file USING 'XML' CHANGING p_xfd.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xft.
  PERFORM value_help_for_file USING 'XDP' CHANGING p_xft.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dest.
  PERFORM value_help_for_destination USING 'P_DEST'.

START-OF-SELECTION.
  PERFORM load_file USING p_xfd CHANGING l_xfd.
  PERFORM load_file USING p_xft CHANGING l_xft.

* Get FP reference.
  l_fp = cl_fp=&amp;gt;get_reference( ).

  TRY.
* Create PDF Object.
      l_pdfobj = l_fp-&amp;gt;create_pdf_object( connection = p_dest ).

* Set template.
      l_locale = p_loc.
      l_pdfobj-&amp;gt;set_template( xftdata  = l_xft
                              fillable = p_fill
                              locale   = l_locale ).

* Set usage rights to none if requested.
      IF p_fill = 'N'.
        l_pdfobj-&amp;gt;set_usagerights( default_rights = abap_false ).
      ENDIF.

* Set data.
      l_pdfobj-&amp;gt;set_data( formdata = l_xfd ).

* Tell PDF object to create PDF.
      l_pdfobj-&amp;gt;set_task_renderpdf( tagged            = p_tagged
                                    dynamic           = p_dynami
                                    printable         = p_print
                                    changesrestricted = p_change ).

* Execute, call ADS.
      l_pdfobj-&amp;gt;execute( ).

* Get result.
      l_pdfobj-&amp;gt;get_pdf( IMPORTING pdfdata = pdfresult ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 10:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968087#M1490897</guid>
      <dc:creator>JerryWang</dc:creator>
      <dc:date>2010-06-17T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968088#M1490898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2. and the second approach is the most traditional one: to send your report output to spool and convert it into a PDF, there are lots of discussion regarding on this topic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Save" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Save&lt;/A&gt;&lt;EM&gt;Report&lt;/EM&gt;Output&lt;EM&gt;to&lt;/EM&gt;a&lt;EM&gt;PDF&lt;/EM&gt;File&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Generate" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Generate&lt;/A&gt;&lt;EM&gt;PDF&lt;/EM&gt;from&lt;EM&gt;ABAP&lt;/EM&gt;List+Output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. if ABAP webdynpro is acceptable from your side, you can display your output in ABAP webdynpro using ALV component, which has a built-in button "Print version", which can convert the table content into PDF automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it can help you a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 10:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-output/m-p/6968088#M1490898</guid>
      <dc:creator>JerryWang</dc:creator>
      <dc:date>2010-06-17T10:38:18Z</dc:date>
    </item>
  </channel>
</rss>

