<?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: Data from multiple tables to one table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-multiple-tables-to-one-table/m-p/1341415#M172693</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 a join and select directly into one internal table if possible.&lt;/P&gt;&lt;P&gt; Else you will have to loop at each table individually using a nested loop and move the data to the common internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 May 2006 01:42:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-28T01:42:49Z</dc:date>
    <item>
      <title>Data from multiple tables to one table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-multiple-tables-to-one-table/m-p/1341414#M172692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Friends,&lt;/P&gt;&lt;P&gt;I have 4 internal tables,&lt;/P&gt;&lt;P&gt;it_vbak - data from VBAK&lt;/P&gt;&lt;P&gt;it_vbap - data from VBAP&lt;/P&gt;&lt;P&gt;it_vbpa _ data from VBPA&lt;/P&gt;&lt;P&gt;the data i got into the above tables is using vbeln as my select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to move all the data from the above internal table to one internal table it_vbak_vbap_vbpa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with a unique key,&lt;/P&gt;&lt;P&gt;in the above case the unique key i am using is VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this will be appericiated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2006 01:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-multiple-tables-to-one-table/m-p/1341414#M172692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-28T01:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data from multiple tables to one table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-multiple-tables-to-one-table/m-p/1341415#M172693</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 a join and select directly into one internal table if possible.&lt;/P&gt;&lt;P&gt; Else you will have to loop at each table individually using a nested loop and move the data to the common internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2006 01:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-multiple-tables-to-one-table/m-p/1341415#M172693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-28T01:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data from multiple tables to one table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-multiple-tables-to-one-table/m-p/1341416#M172694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rao,&lt;/P&gt;&lt;P&gt;Do u mean do an inner join. If so how should i apporach for it. first do an inner join only for 2 tables in a 3rd table and then perform another inner join between the 3rd table and the other table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know,&lt;/P&gt;&lt;P&gt;bye,&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2006 01:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-multiple-tables-to-one-table/m-p/1341416#M172694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-28T01:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data from multiple tables to one table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-multiple-tables-to-one-table/m-p/1341417#M172695</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; You can do a inner join on 3 tables directly using the relvant key fields if available.&lt;/P&gt;&lt;P&gt; Generally inner joins is preferred on 2 tables but if you have all the key fields then you can do an inner join on 3 tables or even more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SOme times its good to use inner joins and some times its not good to use a inner join. It all depends on from which table you are selecting data , how many tables are involved and how many key fields are available. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In ur case guess u can use a inner join on all 3 tables as the sales tables are not so huge compared to finance tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2006 01:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-multiple-tables-to-one-table/m-p/1341417#M172695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-28T01:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data from multiple tables to one table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-multiple-tables-to-one-table/m-p/1341418#M172696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rao,&lt;/P&gt;&lt;P&gt;I think it solves my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again,&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2006 02:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-multiple-tables-to-one-table/m-p/1341418#M172696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-28T02:01:08Z</dc:date>
    </item>
  </channel>
</rss>

