<?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: Excel Toolbar missing in HTML Viewer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-toolbar-missing-in-html-viewer/m-p/6289806#M1389656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could u share your code, please? What technique do u use to open it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest u technique i would apply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) On your screen place a custom container control (I've used CC_EXCEL)&lt;/P&gt;&lt;P&gt;2) Put this code into your program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zjdtest.

DATA: go_control        type ref to I_OI_CONTAINER_CONTROL,
      go_container      type ref to cl_gui_custom_container,
      go_document_proxy type ref to i_oi_document_proxy.
data: gt_file type FILETABLE,
      gd_rc   type i.

parameters p_file type localfile.

at selection-screen on value-request for p_file.

    CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
      EXPORTING
         window_title            = 'Open file'
         file_filter             = cl_gui_frontend_services=&amp;gt;filetype_excel
      CHANGING
        file_table              = gt_file
        rc                      = gd_rc.

    check gd_rc ne -1.
    read table gt_file into p_file index 1.

start-of-selection.
  call screen 0100.

module STATUS_0100 output.
  SET PF-STATUS 'TEST'.
endmodule.

module HANDLE_EXIT input.
  leave program.
endmodule.

module OPEN_EXCEL output.
    data: ld_document_url type localfile.

    check go_control is initial.
    CALL METHOD c_oi_container_control_creator=&amp;gt;get_container_control
      IMPORTING control = go_control.

    CREATE OBJECT go_container EXPORTING container_name = 'CC_EXCEL'.
    CALL METHOD go_control-&amp;gt;init_control
      EXPORTING r3_application_name     = 'R/3 TR'
                inplace_enabled         = 'X'
                parent                  = go_container.

    CALL METHOD go_control-&amp;gt;get_document_proxy
      EXPORTING document_type      = 'Excel.Sheet'
      IMPORTING document_proxy     = go_document_proxy.

    concatenate 'file://' p_file into ld_document_url.
    CALL METHOD go_document_proxy-&amp;gt;open_document
      EXPORTING document_url     = ld_document_url
                open_inplace     = 'X'
                open_readonly    = 'X'.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2009 14:06:29 GMT</pubDate>
    <dc:creator>Petr_Plenkov</dc:creator>
    <dc:date>2009-10-28T14:06:29Z</dc:date>
    <item>
      <title>Excel Toolbar missing in HTML Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-toolbar-missing-in-html-viewer/m-p/6289805#M1389655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a program that generates an excel file and the displays this excel in a screen.&lt;/P&gt;&lt;P&gt;--&amp;gt; requirement was not to open MS Excel as an application, but to display the excel file in the SAP screen&lt;/P&gt;&lt;P&gt;--&amp;gt; excel is NOT an ALV report &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the HTML Viewer  to display the excel in my screen (CL_GUI_HTML_VIEWER).&lt;/P&gt;&lt;P&gt;Everything works fine,  only in the excel file displayed in the HTML viewer, the excel toolbar (is not displayed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me in how to display the excel file with excel toolbar (as the user needs to make modifications, and then needs to save the file)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your valuable inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Michiel Strybol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 13:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-toolbar-missing-in-html-viewer/m-p/6289805#M1389655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T13:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Toolbar missing in HTML Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-toolbar-missing-in-html-viewer/m-p/6289806#M1389656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could u share your code, please? What technique do u use to open it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest u technique i would apply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) On your screen place a custom container control (I've used CC_EXCEL)&lt;/P&gt;&lt;P&gt;2) Put this code into your program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zjdtest.

DATA: go_control        type ref to I_OI_CONTAINER_CONTROL,
      go_container      type ref to cl_gui_custom_container,
      go_document_proxy type ref to i_oi_document_proxy.
data: gt_file type FILETABLE,
      gd_rc   type i.

parameters p_file type localfile.

at selection-screen on value-request for p_file.

    CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
      EXPORTING
         window_title            = 'Open file'
         file_filter             = cl_gui_frontend_services=&amp;gt;filetype_excel
      CHANGING
        file_table              = gt_file
        rc                      = gd_rc.

    check gd_rc ne -1.
    read table gt_file into p_file index 1.

start-of-selection.
  call screen 0100.

module STATUS_0100 output.
  SET PF-STATUS 'TEST'.
endmodule.

module HANDLE_EXIT input.
  leave program.
endmodule.

module OPEN_EXCEL output.
    data: ld_document_url type localfile.

    check go_control is initial.
    CALL METHOD c_oi_container_control_creator=&amp;gt;get_container_control
      IMPORTING control = go_control.

    CREATE OBJECT go_container EXPORTING container_name = 'CC_EXCEL'.
    CALL METHOD go_control-&amp;gt;init_control
      EXPORTING r3_application_name     = 'R/3 TR'
                inplace_enabled         = 'X'
                parent                  = go_container.

    CALL METHOD go_control-&amp;gt;get_document_proxy
      EXPORTING document_type      = 'Excel.Sheet'
      IMPORTING document_proxy     = go_document_proxy.

    concatenate 'file://' p_file into ld_document_url.
    CALL METHOD go_document_proxy-&amp;gt;open_document
      EXPORTING document_url     = ld_document_url
                open_inplace     = 'X'
                open_readonly    = 'X'.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 14:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-toolbar-missing-in-html-viewer/m-p/6289806#M1389656</guid>
      <dc:creator>Petr_Plenkov</dc:creator>
      <dc:date>2009-10-28T14:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Toolbar missing in HTML Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-toolbar-missing-in-html-viewer/m-p/6289807#M1389657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean make a test program with this code to understand how it works))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 14:07:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-toolbar-missing-in-html-viewer/m-p/6289807#M1389657</guid>
      <dc:creator>Petr_Plenkov</dc:creator>
      <dc:date>2009-10-28T14:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Toolbar missing in HTML Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-toolbar-missing-in-html-viewer/m-p/6289808#M1389658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Petr.Plenkov, &lt;/P&gt;&lt;P&gt;Your solution works perfect !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 14:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-toolbar-missing-in-html-viewer/m-p/6289808#M1389658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T14:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Toolbar missing in HTML Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-toolbar-missing-in-html-viewer/m-p/6289809#M1389659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This helped me too today &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/98/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 07:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-toolbar-missing-in-html-viewer/m-p/6289809#M1389659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-07T07:39:44Z</dc:date>
    </item>
  </channel>
</rss>

