<?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: Export multiple tables to excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768932#M906932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron Shover,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can fill one internal table with all three or four tables data in one internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pass this internal table in FMs&lt;/P&gt;&lt;P&gt; like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;SAP_CONVERT_TO_XLS_FORMAT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 30, 2008 1:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Apr 2008 12:53:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-30T12:53:33Z</dc:date>
    <item>
      <title>Export multiple tables to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768931#M906931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know how to export a single table directly to an excel file.  What I need to know is how I can include three, unrelated, tables in the same excel file?  I want to create this excel file directly, not use an ALV first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 12:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768931#M906931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T12:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export multiple tables to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768932#M906932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron Shover,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can fill one internal table with all three or four tables data in one internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pass this internal table in FMs&lt;/P&gt;&lt;P&gt; like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;SAP_CONVERT_TO_XLS_FORMAT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 30, 2008 1:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 12:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768932#M906932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T12:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export multiple tables to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768933#M906933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I fill one table with all three if they all have different fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am envisioning is one table followed by several blank rows then another, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 12:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768933#M906933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T12:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export multiple tables to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768934#M906934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron Shover,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not do like that...&lt;/P&gt;&lt;P&gt;As it will not gonna give u correct result...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will hv to create separate columns for each table fileds...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can not append the one table data and then another table data in the same internaltable... where itab1 and itab2 are having different structures...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u do so then also the data may not be correct in final internal table and also in excel file in which u will download it....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better create one Z Structure in DDIC which contains all fields u required in final table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create internal table of that structure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;runtime populate the data in the internal tables as per the conditions u wanna insert it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields which r blank ... keep it blank...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concentrate on what fields u require...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems strange requirement  as u want multiple table data in one excel file which r not linked (related) by any keys or any fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else u can call the GUI_DOWNLOAD 4 times for each table and then u can manually copy one excel file data to another...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i think there should be some relation between these fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg table_1&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
mat_no prise 
mat1     345
mat2     465 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table_2 &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
pernr    salary
204      20000
345      46588
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how u can have this data in one excel file... and wht will be the purpose of it.. as its nowhere related to each other&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
mat_no prise  pernr    salary
mat1     345   204      20000
mat2     465   345      46588
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve ur prob....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 30, 2008 1:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 13:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768934#M906934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T13:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Export multiple tables to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768935#M906935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to do this because I have created one report that does three seperate queries, based off one key.  I want to export these three tables to an excel file but I don't want the user to have to use three files because they will end up storing them in the same file anyway (via copy and paste).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 14:42:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768935#M906935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T14:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Export multiple tables to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768936#M906936</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;Use GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) While downloading the tables, maintain same filename.&lt;/P&gt;&lt;P&gt;2) From the second GUI_DOWNLOAD function call use the "APPEND" option.  &lt;/P&gt;&lt;P&gt;    append = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 19:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768936#M906936</guid>
      <dc:creator>rajasekhar_matukumalli3</dc:creator>
      <dc:date>2008-04-30T19:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export multiple tables to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768937#M906937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That sounds like a wonderful option!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 19:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-multiple-tables-to-excel/m-p/3768937#M906937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T19:43:41Z</dc:date>
    </item>
  </channel>
</rss>

