<?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: CL_GUI_HTML_VIEWER Multiple Pages Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485275#M2002095</link>
    <description>&lt;P&gt;If you display a PDF via the HTML Viewer, you can view all the pages. I don't get what your issue is.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jan 2022 21:08:34 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2022-01-04T21:08:34Z</dc:date>
    <item>
      <title>CL_GUI_HTML_VIEWER Multiple Pages Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485274#M2002094</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;i did custom container in html viewer(CL_GUI_HTML_VIEWER). I want do multiple pages for output viewer. I could not make it. i wait for help. i add attached a pictures for program. thx everyone.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; Form create_form&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; text&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; --&amp;gt;  p1        text&lt;BR /&gt;*&amp;amp; &amp;lt;--  p2        text&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;FORM create_form .&lt;BR /&gt;  IF cc_form IS NOT BOUND.&lt;BR /&gt;*  IF cc_form IS INITIAL.&lt;BR /&gt;    CREATE OBJECT cc_form&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        container_name = 'CC_FORM'.&lt;BR /&gt;*  ENDIF.&lt;BR /&gt;    CREATE OBJECT html_viewer&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        parent = cc_form.&lt;BR /&gt;  ELSE.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;ENDFORM.&lt;BR /&gt;&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; Form create_ssf&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; text&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; --&amp;gt;  p1        text&lt;BR /&gt;*&amp;amp; &amp;lt;--  p2        text&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;FORM create_ssf .&lt;BR /&gt;&lt;BR /&gt;  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;BR /&gt;    EXPORTING&lt;BR /&gt;      formname = 'ZCO_HR_DENEM_SURESI'&lt;BR /&gt;    IMPORTING&lt;BR /&gt;      fm_name  = gv_fm_name.&lt;BR /&gt;&lt;BR /&gt;  "Get smartform function module name&lt;BR /&gt;  "create PDF Viewer object&lt;BR /&gt;  CLEAR gs_selected.&lt;BR /&gt;  LOOP AT gt_selected INTO gs_selected.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    wa_control_par-no_dialog = 'X'.&lt;BR /&gt;    wa_control_par-getotf    = 'X'.&lt;BR /&gt;    wa_output_options-tddest = 'ZPFD2'.&lt;BR /&gt;    wa_output_options-tdgroup = 'X'.&lt;BR /&gt;    lv_tckn  = gs_selected-merni.&lt;BR /&gt;    lv_ename = gs_selected-ename.&lt;BR /&gt;    lv_pernr = gs_selected-pernr.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    CALL FUNCTION gv_fm_name&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        control_parameters = wa_control_par&lt;BR /&gt;        output_options     = wa_output_options&lt;BR /&gt;        lv_tckn            = lv_tckn&lt;BR /&gt;        lv_pernr           = lv_pernr&lt;BR /&gt;        lv_ename           = lv_ename&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        job_output_info    = wa_job_output_info&lt;BR /&gt;      TABLES&lt;BR /&gt;        tab_it0002         = it_it0002&lt;BR /&gt;        tab_it0008         = it_it0008&lt;BR /&gt;        itab               = gt_selected.&lt;BR /&gt;  ENDLOOP.&lt;BR /&gt;ENDFORM.&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; Form display_pdf&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; text&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; --&amp;gt;  p1        text&lt;BR /&gt;*&amp;amp; &amp;lt;--  p2        text&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;FORM display_pdf .&lt;BR /&gt;  it_otf_data = wa_job_output_info-otfdata.&lt;BR /&gt;  "Convert OTF data to PDF&lt;BR /&gt;  CALL FUNCTION 'CONVERT_OTF'&lt;BR /&gt;    EXPORTING&lt;BR /&gt;      format       = 'PDF'&lt;BR /&gt;    IMPORTING&lt;BR /&gt;      bin_filesize = gv_bin_filesize&lt;BR /&gt;    TABLES&lt;BR /&gt;      otf          = it_otf_data&lt;BR /&gt;      lines        = it_pdf.&lt;BR /&gt;&lt;BR /&gt;  LOOP AT it_pdf INTO wa_pdf.&lt;BR /&gt;    ASSIGN wa_pdf TO &amp;lt;fs_pdf&amp;gt; CASTING.&lt;BR /&gt;    CONCATENATE gv_content &amp;lt;fs_pdf&amp;gt;  INTO gv_content IN BYTE MODE.&lt;BR /&gt;  ENDLOOP.&lt;BR /&gt;&lt;BR /&gt;  CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'&lt;BR /&gt;    EXPORTING&lt;BR /&gt;      buffer     = gv_content&lt;BR /&gt;    TABLES&lt;BR /&gt;      binary_tab = it_data.&lt;BR /&gt;  " Load the HTML&lt;BR /&gt;  CALL METHOD html_viewer-&amp;gt;load_data(&lt;BR /&gt;    EXPORTING&lt;BR /&gt;      type         = 'application'&lt;BR /&gt;      subtype      = 'pdf'&lt;BR /&gt;    IMPORTING&lt;BR /&gt;      assigned_url = gv_url&lt;BR /&gt;    CHANGING&lt;BR /&gt;      data_table   = it_data ).&lt;BR /&gt;&lt;BR /&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;    WRITE:/ 'ERROR: CONTROL-&amp;gt;LOAD_DATA'.&lt;BR /&gt;    EXIT.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;  "Show it&lt;BR /&gt;  CALL METHOD html_viewer-&amp;gt;show_url( url = gv_url in_place = 'X').&lt;BR /&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;    WRITE:/ 'ERROR: CONTROL-&amp;gt;SHOW_DATA'.&lt;BR /&gt;    EXIT.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;  " DISPLAY_PDF  OUTPUT&lt;BR /&gt;ENDFORM.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2005987-screenshot-1.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 19:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485274#M2002094</guid>
      <dc:creator>former_member751715</dc:creator>
      <dc:date>2022-01-04T19:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER Multiple Pages Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485275#M2002095</link>
      <description>&lt;P&gt;If you display a PDF via the HTML Viewer, you can view all the pages. I don't get what your issue is.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 21:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485275#M2002095</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-01-04T21:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER Multiple Pages Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485276#M2002096</link>
      <description>&lt;P&gt;For example: I'm selecting three lines on alv. I expect the number of page output to be three. However, only the first page image is generated.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 05 Jan 2022 05:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485276#M2002096</guid>
      <dc:creator>former_member751715</dc:creator>
      <dc:date>2022-01-05T05:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER Multiple Pages Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485277#M2002097</link>
      <description>&lt;P&gt;I did a loop before going to ''CALL FUNCTION gv_fm_name" But again not working.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 05:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485277#M2002097</guid>
      <dc:creator>former_member751715</dc:creator>
      <dc:date>2022-01-05T05:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER Multiple Pages Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485278#M2002098</link>
      <description>&lt;P&gt;Check your Adobe PDF version&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 21:39:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485278#M2002098</guid>
      <dc:creator>kasralikarpratik</dc:creator>
      <dc:date>2022-01-05T21:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER Multiple Pages Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485279#M2002099</link>
      <description>&lt;P&gt;In fact your question is not about CL_GUI_HTML_VIEWER, it's about how you assemble multiple smart forms into one PDF. You must OPEN for only the first smart form, and CLOSE only when you generate the last smart form.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 15:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485279#M2002099</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-01-06T15:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER Multiple Pages Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485280#M2002100</link>
      <description>&lt;P&gt;(fields NO_OPEN and NO_CLOSE of parameter CONTROL_PARAMETERS)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 15:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485280#M2002100</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-01-06T15:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER Multiple Pages Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485281#M2002101</link>
      <description>&lt;P&gt;Do you give a code example for container in adobe PDF. Because i just couldn't do it.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 20:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485281#M2002101</guid>
      <dc:creator>former_member751715</dc:creator>
      <dc:date>2022-01-06T20:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER Multiple Pages Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485282#M2002102</link>
      <description>&lt;P&gt;okay. For alternative, How to do adobe form in custom container?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 20:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-multiple-pages-problem/m-p/12485282#M2002102</guid>
      <dc:creator>former_member751715</dc:creator>
      <dc:date>2022-01-06T20:26:18Z</dc:date>
    </item>
  </channel>
</rss>

