<?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 File size problem when performing XML Transformation into Excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-size-problem-when-performing-xml-transformation-into-excel/m-p/7798128#M1586813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are performing XML Transformation in ABAP which can open in Excel and saving to common share. But the file size of excel is around 50MB. After opening the excel and save with diffrent name the file is getting compressed and its below 1MB. So what kind of settings does we need to make to the transformation code which will create the excel files with less memory/size??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?sap.transform simple?&amp;gt;
&amp;lt;tt:transform xmlns:tt="http://www.sap.com/transformation-templates"&amp;gt;

&amp;lt;tt:root name="AAAAAAA"/&amp;gt;
&amp;lt;tt:root name="BBBBBBBB"/&amp;gt;
&amp;lt;tt:root name="CCCCCCCC"/&amp;gt;

&amp;lt;tt:template&amp;gt;

&amp;lt;?mso-application progid="Excel.Sheet"?&amp;gt;
&amp;lt;Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:o="urn:schemas-microsoft-com:office:office"
 xmlns:x="urn:schemas-microsoft-com:office:excel"
 xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
 xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:html="http://www.w3.org/TR/REC-html40"&amp;gt;
   &amp;lt;ProtectObjects&amp;gt;True&amp;lt;/ProtectObjects&amp;gt;
   &amp;lt;ProtectScenarios&amp;gt;True&amp;lt;/ProtectScenarios&amp;gt;
  &amp;lt;/WorksheetOptions&amp;gt;
 &amp;lt;/Worksheet&amp;gt;
&amp;lt;/Workbook&amp;gt;


&amp;lt;/tt:template&amp;gt;

&amp;lt;/tt:transform&amp;gt;
&amp;lt;DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"&amp;gt;
&amp;lt;/DocumentProperties&amp;gt;
 &amp;lt;CustomDocumentProperties xmlns="urn:schemas-microsoft-com:office:office"&amp;gt;
  &amp;lt;ContentTypeId dt:dt="string"&amp;gt;0x01010049B4763FE606154C9C9BC639FE7EE179&amp;lt;/ContentTypeId&amp;gt;
 &amp;lt;/CustomDocumentProperties&amp;gt;
 &amp;lt;OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office"&amp;gt;
  &amp;lt;Colors&amp;gt;
   &amp;lt;Color&amp;gt;
    &amp;lt;Index&amp;gt;0&amp;lt;/Index&amp;gt;
    &amp;lt;RGB&amp;gt;#FF0000&amp;lt;/RGB&amp;gt;
   &amp;lt;/Color&amp;gt;
   &amp;lt;Color&amp;gt;
    &amp;lt;Index&amp;gt;1&amp;lt;/Index&amp;gt;
    &amp;lt;RGB&amp;gt;#FFE4B5&amp;lt;/RGB&amp;gt;
   &amp;lt;/Color&amp;gt;
   &amp;lt;Color&amp;gt;
    &amp;lt;Index&amp;gt;2&amp;lt;/Index&amp;gt;
    &amp;lt;RGB&amp;gt;#FFF8DC&amp;lt;/RGB&amp;gt;
   &amp;lt;/Color&amp;gt;
   &amp;lt;Color&amp;gt;
    &amp;lt;Index&amp;gt;3&amp;lt;/Index&amp;gt;
    &amp;lt;RGB&amp;gt;#000000&amp;lt;/RGB&amp;gt;
   &amp;lt;/Color&amp;gt;
  &amp;lt;/Colors&amp;gt;
 &amp;lt;/OfficeDocumentSettings&amp;gt;
 &amp;lt;ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"&amp;gt;
  &amp;lt;WindowHeight&amp;gt;7305&amp;lt;/WindowHeight&amp;gt;
  &amp;lt;WindowWidth&amp;gt;11340&amp;lt;/WindowWidth&amp;gt;
  &amp;lt;WindowTopX&amp;gt;0&amp;lt;/WindowTopX&amp;gt;
  &amp;lt;WindowTopY&amp;gt;0&amp;lt;/WindowTopY&amp;gt;
  &amp;lt;TabRatio&amp;gt;334&amp;lt;/TabRatio&amp;gt;
  &amp;lt;ProtectStructure&amp;gt;True&amp;lt;/ProtectStructure&amp;gt;
  &amp;lt;ProtectWindows&amp;gt;False&amp;lt;/ProtectWindows&amp;gt;
 &amp;lt;/ExcelWorkbook&amp;gt;


 &amp;lt;/DocumentProperties&amp;gt;
 &amp;lt;CustomDocumentProperties xmlns="urn:schemas-microsoft-com:office:office"&amp;gt;
  &amp;lt;ContentTypeId dt:dt="string"&amp;gt;0x01010049B4763FE606154C9C9BC639FE7EE179&amp;lt;/ContentTypeId&amp;gt;
 &amp;lt;/CustomDocumentProperties&amp;gt;
 &amp;lt;OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office"&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2011 18:13:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-28T18:13:11Z</dc:date>
    <item>
      <title>File size problem when performing XML Transformation into Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-size-problem-when-performing-xml-transformation-into-excel/m-p/7798128#M1586813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are performing XML Transformation in ABAP which can open in Excel and saving to common share. But the file size of excel is around 50MB. After opening the excel and save with diffrent name the file is getting compressed and its below 1MB. So what kind of settings does we need to make to the transformation code which will create the excel files with less memory/size??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?sap.transform simple?&amp;gt;
&amp;lt;tt:transform xmlns:tt="http://www.sap.com/transformation-templates"&amp;gt;

&amp;lt;tt:root name="AAAAAAA"/&amp;gt;
&amp;lt;tt:root name="BBBBBBBB"/&amp;gt;
&amp;lt;tt:root name="CCCCCCCC"/&amp;gt;

&amp;lt;tt:template&amp;gt;

&amp;lt;?mso-application progid="Excel.Sheet"?&amp;gt;
&amp;lt;Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:o="urn:schemas-microsoft-com:office:office"
 xmlns:x="urn:schemas-microsoft-com:office:excel"
 xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
 xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:html="http://www.w3.org/TR/REC-html40"&amp;gt;
   &amp;lt;ProtectObjects&amp;gt;True&amp;lt;/ProtectObjects&amp;gt;
   &amp;lt;ProtectScenarios&amp;gt;True&amp;lt;/ProtectScenarios&amp;gt;
  &amp;lt;/WorksheetOptions&amp;gt;
 &amp;lt;/Worksheet&amp;gt;
&amp;lt;/Workbook&amp;gt;


&amp;lt;/tt:template&amp;gt;

&amp;lt;/tt:transform&amp;gt;
&amp;lt;DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"&amp;gt;
&amp;lt;/DocumentProperties&amp;gt;
 &amp;lt;CustomDocumentProperties xmlns="urn:schemas-microsoft-com:office:office"&amp;gt;
  &amp;lt;ContentTypeId dt:dt="string"&amp;gt;0x01010049B4763FE606154C9C9BC639FE7EE179&amp;lt;/ContentTypeId&amp;gt;
 &amp;lt;/CustomDocumentProperties&amp;gt;
 &amp;lt;OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office"&amp;gt;
  &amp;lt;Colors&amp;gt;
   &amp;lt;Color&amp;gt;
    &amp;lt;Index&amp;gt;0&amp;lt;/Index&amp;gt;
    &amp;lt;RGB&amp;gt;#FF0000&amp;lt;/RGB&amp;gt;
   &amp;lt;/Color&amp;gt;
   &amp;lt;Color&amp;gt;
    &amp;lt;Index&amp;gt;1&amp;lt;/Index&amp;gt;
    &amp;lt;RGB&amp;gt;#FFE4B5&amp;lt;/RGB&amp;gt;
   &amp;lt;/Color&amp;gt;
   &amp;lt;Color&amp;gt;
    &amp;lt;Index&amp;gt;2&amp;lt;/Index&amp;gt;
    &amp;lt;RGB&amp;gt;#FFF8DC&amp;lt;/RGB&amp;gt;
   &amp;lt;/Color&amp;gt;
   &amp;lt;Color&amp;gt;
    &amp;lt;Index&amp;gt;3&amp;lt;/Index&amp;gt;
    &amp;lt;RGB&amp;gt;#000000&amp;lt;/RGB&amp;gt;
   &amp;lt;/Color&amp;gt;
  &amp;lt;/Colors&amp;gt;
 &amp;lt;/OfficeDocumentSettings&amp;gt;
 &amp;lt;ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"&amp;gt;
  &amp;lt;WindowHeight&amp;gt;7305&amp;lt;/WindowHeight&amp;gt;
  &amp;lt;WindowWidth&amp;gt;11340&amp;lt;/WindowWidth&amp;gt;
  &amp;lt;WindowTopX&amp;gt;0&amp;lt;/WindowTopX&amp;gt;
  &amp;lt;WindowTopY&amp;gt;0&amp;lt;/WindowTopY&amp;gt;
  &amp;lt;TabRatio&amp;gt;334&amp;lt;/TabRatio&amp;gt;
  &amp;lt;ProtectStructure&amp;gt;True&amp;lt;/ProtectStructure&amp;gt;
  &amp;lt;ProtectWindows&amp;gt;False&amp;lt;/ProtectWindows&amp;gt;
 &amp;lt;/ExcelWorkbook&amp;gt;


 &amp;lt;/DocumentProperties&amp;gt;
 &amp;lt;CustomDocumentProperties xmlns="urn:schemas-microsoft-com:office:office"&amp;gt;
  &amp;lt;ContentTypeId dt:dt="string"&amp;gt;0x01010049B4763FE606154C9C9BC639FE7EE179&amp;lt;/ContentTypeId&amp;gt;
 &amp;lt;/CustomDocumentProperties&amp;gt;
 &amp;lt;OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office"&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 18:13:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-size-problem-when-performing-xml-transformation-into-excel/m-p/7798128#M1586813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-28T18:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: File size problem when performing XML Transformation into Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-size-problem-when-performing-xml-transformation-into-excel/m-p/7798129#M1586814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at the XLSX file generated by Excel, you'll see that it's simply a zipped file. So you can't do it with a transformation, but you need CL_ABAP_ZIP class. I advise you to look at the abap2xslx project ABAP code (currently 3.0) to see how it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 20:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-size-problem-when-performing-xml-transformation-into-excel/m-p/7798129#M1586814</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-03-28T20:38:38Z</dc:date>
    </item>
  </channel>
</rss>

