<?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: Open PDF-File in WEBGUI ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-pdf-file-in-webgui/m-p/4100893#M980619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CL_GUI_HTML_VIEWER&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2008 15:59:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-26T15:59:53Z</dc:date>
    <item>
      <title>Open PDF-File in WEBGUI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-pdf-file-in-webgui/m-p/4100892#M980618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have business documents in PDF-format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am opening it in ABAP with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;CALL METHOD cl_bds_document=&amp;gt;display&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works perfect for SAP WINGUI, acrobat reader is opened with the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT: i have to use my abap in SAP WEBGUI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there i only get the info 'xxxxxx bytes downloaded' and NO acrobat reader is opened. it seems&lt;/P&gt;&lt;P&gt;that the document is only downloades somewhere. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas ? i need to open the document &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 15:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-pdf-file-in-webgui/m-p/4100892#M980618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T15:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Open PDF-File in WEBGUI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-pdf-file-in-webgui/m-p/4100893#M980619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CL_GUI_HTML_VIEWER&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 15:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-pdf-file-in-webgui/m-p/4100893#M980619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T15:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Open PDF-File in WEBGUI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-pdf-file-in-webgui/m-p/4100894#M980620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, thank you, but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should i use class CL_GUI_HTML_VIEWER ? which method i should call ? &lt;/P&gt;&lt;P&gt;how can i handle this with my business document ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 16:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-pdf-file-in-webgui/m-p/4100894#M980620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Open PDF-File in WEBGUI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-pdf-file-in-webgui/m-p/4100895#M980621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This takes pdf data and shows it in browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to use two methods one load data and other show_url.&lt;/P&gt;&lt;P&gt;i am not sure in your case how to capture that pdf data..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;**-Load PDF Data
*  call method cl_htmlviewer-&amp;gt;load_data
*    EXPORTING
*      type                 = v_application
*      subtype              = v_pdf
*      size                 = v_numbytes
*    IMPORTING
*      assigned_url         = v_url
*    CHANGING
*      data_table           = lt_pdf
*    EXCEPTIONS
*      dp_invalid_parameter = 1
*      dp_error_general     = 2
*      cntl_error           = 3
*      others               = 4.
*
*
*  call method cl_htmlviewer-&amp;gt;show_url   "data
*    EXPORTING
*      url                    = v_url
*      in_place               = ' '
*    EXCEPTIONS
*      cntl_error             = 1
*      cnht_error_not_allowed = 2
*      cnht_error_parameter   = 3
*      dp_error_general       = 4
*      others                 = 5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 16:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-pdf-file-in-webgui/m-p/4100895#M980621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T16:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Open PDF-File in WEBGUI ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-pdf-file-in-webgui/m-p/4100896#M980622</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 tried out with the following code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but at the end nothing is displayed in webgui, the abap runs trough 'empty'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF cl_htmlviewer IS INITIAL.

      CREATE OBJECT my_container
        EXPORTING
          container_name = 'HTML'.

      CREATE OBJECT cl_htmlviewer
        EXPORTING
          parent = my_container.

    ENDIF.


    CALL METHOD cl_htmlviewer-&amp;gt;load_data
      EXPORTING
         type                 = 'APPLICATION'
        subtype              = 'pdf'
      IMPORTING
        assigned_url         = gf_url
      CHANGING
        data_table           = gt_content
      EXCEPTIONS
        dp_invalid_parameter = 1
        dp_error_general     = 2
        cntl_error           = 3
        OTHERS               = 4.

    CALL METHOD cl_htmlviewer-&amp;gt;show_url   "data
      EXPORTING
        url                    = gf_url
        in_place               = 'X'
      EXCEPTIONS
        cntl_error             = 1
        cnht_error_not_allowed = 2
        cnht_error_parameter   = 3
        dp_error_general       = 4
        OTHERS                 = 5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 09:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-pdf-file-in-webgui/m-p/4100896#M980622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T09:10:11Z</dc:date>
    </item>
  </channel>
</rss>

