<?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 Opening Excel as XML file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-as-xml-file/m-p/761713#M37051</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Ive created an Excel document through a XSLT transformation. I have a string that represent an XML structure.&lt;/P&gt;
  &lt;P&gt;It starts like this : &lt;/P&gt;
  &lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;?mso-application progid="Excel.Sheet"?&amp;gt;&lt;/P&gt;
  &lt;P&gt;I think my document is fine. &lt;/P&gt;
  &lt;P&gt;But when I want to display the document with ABAP code : &lt;/P&gt;Code : 
  &lt;A href="https://www.developpez.net/forums/d1927901/logiciels/solutions-d-entreprise/erp/sap/open-office-xlsx-xml-document/#"&gt;Sélectionner tout&lt;/A&gt; - 
  &lt;A href="https://www.developpez.net/forums/d1927901/logiciels/solutions-d-entreprise/erp/sap/open-office-xlsx-xml-document/#"&gt;Visualiser dans une fenêtre à part&lt;/A&gt; 
  &lt;PRE&gt;&lt;CODE&gt;1234  DATA: l_xml TYPE REF TO cl_xml_document .
  CREATE OBJECT l_xml.
  CALL METHOD l_xml-&amp;gt;parse_string EXPORTING stream = lv_xml_string.
  CALL METHOD l_xml-&amp;gt;display.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Excel opens and there's also a popup that displays behind.. (see picture)How can I avoid this ?&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/259632-capture.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Thanks &lt;BR /&gt; Simon&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jan 2019 16:12:46 GMT</pubDate>
    <dc:creator>former_member840160</dc:creator>
    <dc:date>2019-01-07T16:12:46Z</dc:date>
    <item>
      <title>Opening Excel as XML file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-as-xml-file/m-p/761713#M37051</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Ive created an Excel document through a XSLT transformation. I have a string that represent an XML structure.&lt;/P&gt;
  &lt;P&gt;It starts like this : &lt;/P&gt;
  &lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;?mso-application progid="Excel.Sheet"?&amp;gt;&lt;/P&gt;
  &lt;P&gt;I think my document is fine. &lt;/P&gt;
  &lt;P&gt;But when I want to display the document with ABAP code : &lt;/P&gt;Code : 
  &lt;A href="https://www.developpez.net/forums/d1927901/logiciels/solutions-d-entreprise/erp/sap/open-office-xlsx-xml-document/#"&gt;Sélectionner tout&lt;/A&gt; - 
  &lt;A href="https://www.developpez.net/forums/d1927901/logiciels/solutions-d-entreprise/erp/sap/open-office-xlsx-xml-document/#"&gt;Visualiser dans une fenêtre à part&lt;/A&gt; 
  &lt;PRE&gt;&lt;CODE&gt;1234  DATA: l_xml TYPE REF TO cl_xml_document .
  CREATE OBJECT l_xml.
  CALL METHOD l_xml-&amp;gt;parse_string EXPORTING stream = lv_xml_string.
  CALL METHOD l_xml-&amp;gt;display.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Excel opens and there's also a popup that displays behind.. (see picture)How can I avoid this ?&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/259632-capture.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Thanks &lt;BR /&gt; Simon&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 16:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-as-xml-file/m-p/761713#M37051</guid>
      <dc:creator>former_member840160</dc:creator>
      <dc:date>2019-01-07T16:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Excel as XML file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-as-xml-file/m-p/761714#M37052</link>
      <description>&lt;P&gt;I guess CL_XML_DOCUMENT displays it in a web page, the Microsoft browser recognizes that it's an Excel file and starts Excel instead. Instead of using CL_XML_DOCUMENT, download the file in a temporary folder on the laptop, with extension .xlsx, and execute the file (using CL_GUI_FRONTEND_SERVICES, methods GET_TEMP_DIRECTORY, GUI_DOWNLOAD and EXECUTE, lots of examples in the forum and www), that will work identically to double-clicking an xlsx file from the Windows file explorer.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 19:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-as-xml-file/m-p/761714#M37052</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-01-07T19:28:51Z</dc:date>
    </item>
  </channel>
</rss>

