<?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: Download data from multiple table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-from-multiple-table/m-p/5356473#M1233164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternative to select from multiple tables is to use For All Entries statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select field1
          field2
   from table1
into table itab1
where field1 in s_field1.

if not itab1[] is initial.
select field3
           field4
           field5
  from table2
into table itab2
for all entries in itab1
where field1 =itab1-field1
  and field2 in s_field2.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the function module GUI_DOWNLOAD to download the data to desktop as excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2009 13:03:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-03T13:03:15Z</dc:date>
    <item>
      <title>Download data from multiple table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-from-multiple-table/m-p/5356472#M1233163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to download data from multiple tables. I have tried with joins but they dont seem to be doing the correct thing, When the code runs it dosnt do anything. Additionaly that data that I am supose to download I need to insert it in an excel sheet. Is there an other way to download data from multiple tables with out using joins? Can someone provide some example codes or a good link. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 12:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-from-multiple-table/m-p/5356472#M1233163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T12:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Download data from multiple table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-from-multiple-table/m-p/5356473#M1233164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternative to select from multiple tables is to use For All Entries statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select field1
          field2
   from table1
into table itab1
where field1 in s_field1.

if not itab1[] is initial.
select field3
           field4
           field5
  from table2
into table itab2
for all entries in itab1
where field1 =itab1-field1
  and field2 in s_field2.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the function module GUI_DOWNLOAD to download the data to desktop as excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 13:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-from-multiple-table/m-p/5356473#M1233164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T13:03:15Z</dc:date>
    </item>
  </channel>
</rss>

