<?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: Internal Table to EXCEL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943419#M1487694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hemanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, as your needs you have to write a program to export internal data manually to an XLS file. You will need work with tags defined in XLS definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export process like sample below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET myfile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
  
    LOOP AT my_table.
        CONCATENATE '&amp;lt;Cell ss:Index="X"&amp;gt;' my_table &amp;lt;/cell&amp;gt; INTO x_value.        
        TRANSFER x_value TO myfile.
    ENDLOOP.

    CLOSE DATASET myfile.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  After that, you can use FM SO_DOCUMENT_SEND_API1 to send emails and use exported file as attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Carlos Machado on May 31, 2010 3:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 May 2010 13:24:04 GMT</pubDate>
    <dc:creator>former_member214857</dc:creator>
    <dc:date>2010-05-31T13:24:04Z</dc:date>
    <item>
      <title>Internal Table to EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943417#M1487692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hell all,&lt;/P&gt;&lt;P&gt;I have a requirement where in which I need to download the dynamic internal table to Excel sheet and save the excel sheet in the application server and send the same in emai as attachmentl. All these need to be done in background.  The no of columns in the internal table may vary from 40 to 60. Please help me with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Hemanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 12:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943417#M1487692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T12:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943418#M1487693</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;See: &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="9105192"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leandro Mengue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create the file in XML format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a XLS (in Excel) with your formats and needs. Save it as XML. Open this file with Nodepad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your program have to follow this format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leandro Mengue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?mso-application progid="Excel.Sheet"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"&lt;/P&gt;&lt;P&gt;xmlns:o="urn:schemas-microsoft-com:office:office"&lt;/P&gt;&lt;P&gt;xmlns:x="urn:schemas-microsoft-com:office:excel"&lt;/P&gt;&lt;P&gt;xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"&lt;/P&gt;&lt;P&gt;xmlns:html="http://www.w3.org/TR/REC-html40"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Author&amp;gt;bmengue&amp;lt;/Author&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;LastAuthor&amp;gt;bmengue&amp;lt;/LastAuthor&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Created&amp;gt;2010-05-17T15:19:12Z&amp;lt;/Created&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Company&amp;gt;xxxxx&amp;lt;/Company&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Version&amp;gt;11.9999&amp;lt;/Version&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/DocumentProperties&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;WindowHeight&amp;gt;10230&amp;lt;/WindowHeight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;WindowWidth&amp;gt;18075&amp;lt;/WindowWidth&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;WindowTopX&amp;gt;240&amp;lt;/WindowTopX&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;WindowTopY&amp;gt;105&amp;lt;/WindowTopY&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ProtectStructure&amp;gt;False&amp;lt;/ProtectStructure&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ProtectWindows&amp;gt;False&amp;lt;/ProtectWindows&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ExcelWorkbook&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Styles&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Worksheet ss:Name="Plan1"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Table ss:ExpandedColumnCount="4" ss:ExpandedRowCount="4" x:FullColumns="1"&lt;/P&gt;&lt;P&gt;x:FullRows="1"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Row&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Cell&amp;gt;&amp;lt;Data ss:Type="String"&amp;gt;A1&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Row&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Row&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Cell ss:Index="2"&amp;gt;&amp;lt;Data ss:Type="String"&amp;gt;B2&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Row&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Row&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Cell ss:Index="3"&amp;gt;&amp;lt;Data ss:Type="String"&amp;gt;C3&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Row&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Row&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Cell ss:Index="4" ss:StyleID="s21"&amp;gt;&amp;lt;Data ss:Type="String"&amp;gt;D4&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Row&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Table&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;replace A1,B2,C3,D4 by your values for cells A1,B2,C2,D4 ...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 12:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943418#M1487693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T12:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943419#M1487694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hemanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, as your needs you have to write a program to export internal data manually to an XLS file. You will need work with tags defined in XLS definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export process like sample below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET myfile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
  
    LOOP AT my_table.
        CONCATENATE '&amp;lt;Cell ss:Index="X"&amp;gt;' my_table &amp;lt;/cell&amp;gt; INTO x_value.        
        TRANSFER x_value TO myfile.
    ENDLOOP.

    CLOSE DATASET myfile.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  After that, you can use FM SO_DOCUMENT_SEND_API1 to send emails and use exported file as attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Carlos Machado on May 31, 2010 3:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 13:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943419#M1487694</guid>
      <dc:creator>former_member214857</dc:creator>
      <dc:date>2010-05-31T13:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943420#M1487695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Carlos. I have a doubt here. So in the '&amp;lt;Cell&amp;gt;'. Do I need to give the Cell numbaer like A1,B1 as in excel??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hemanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jun 2010 06:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943420#M1487695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-01T06:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943421#M1487696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hemanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Actually, is necessary to nest &amp;lt;Row&amp;gt; and &amp;lt;Cell&amp;gt; tags, please check as sample below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Row ss:Index="3"&amp;gt;
        &amp;lt;Cell ss:StyleID="s1"&amp;gt;
          &amp;lt;Data ss:Type="String"&amp;gt;Product&amp;lt;/Data&amp;gt;
        &amp;lt;/Cell&amp;gt;
        &amp;lt;Cell ss:StyleID="s1"&amp;gt;
          &amp;lt;Data ss:Type="String"&amp;gt;Sold&amp;lt;/Data&amp;gt;
        &amp;lt;/Cell&amp;gt;
        &amp;lt;Cell ss:StyleID="s1"&amp;gt;
          &amp;lt;Data ss:Type="String"&amp;gt;Price&amp;lt;/Data&amp;gt;
        &amp;lt;/Cell&amp;gt;
        &amp;lt;Cell ss:StyleID="s1"&amp;gt;
          &amp;lt;Data ss:Type="String"&amp;gt;Sum&amp;lt;/Data&amp;gt;
        &amp;lt;/Cell&amp;gt;
      &amp;lt;/Row&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Carlos Machado on Jun 3, 2010 2:11 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 00:11:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943421#M1487696</guid>
      <dc:creator>former_member214857</dc:creator>
      <dc:date>2010-06-03T00:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943422#M1487697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 03:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel/m-p/6943422#M1487697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T03:21:47Z</dc:date>
    </item>
  </channel>
</rss>

