<?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: regarding joining two internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481733#M1061115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;This is a basic question. Please search forum before u post.&lt;/P&gt;&lt;P&gt;Lets make a habit of following the forum rules:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also do u mean joining internal table or database table?&lt;/P&gt;&lt;P&gt;If it is data base table then Just type &lt;STRONG&gt;JOIN&lt;/STRONG&gt; and press F1 in ur report program u get a bunch of documentation with clearly explained examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2008 11:15:35 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-09-12T11:15:35Z</dc:date>
    <item>
      <title>regarding joining two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481730#M1061112</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;Tell me how to use 'UNION' in different ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 11:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481730#M1061112</guid>
      <dc:creator>rohit_kaikala</dc:creator>
      <dc:date>2008-09-12T11:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: regarding joining two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481731#M1061113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;DEL&gt;Check this help link:&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/EN/62/10a423384746e8bf5f15ccdd36e8b1/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/EN/62/10a423384746e8bf5f15ccdd36e8b1/frameset.htm&lt;/A&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: sorry, I thought it was database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Valter Oliveira on Sep 12, 2008 12:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 11:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481731#M1061113</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-09-12T11:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: regarding joining two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481732#M1061114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a third internal table comtaining common fields in both the internal table. Now loop at one of the internal table and read the other and transfer the fields to the third internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB1 BY F1.&lt;/P&gt;&lt;P&gt;SORT ITAB2 BY F1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1 INTO WA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE WA1 to WA3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABEL ITAB2 INTO WA2 WITH KEY F1 = WA1-F1&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;MOVE WA2 to WA3.&lt;/P&gt;&lt;P&gt;APPEND WA3 to ITAB3.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 11:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481732#M1061114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T11:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: regarding joining two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481733#M1061115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;This is a basic question. Please search forum before u post.&lt;/P&gt;&lt;P&gt;Lets make a habit of following the forum rules:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also do u mean joining internal table or database table?&lt;/P&gt;&lt;P&gt;If it is data base table then Just type &lt;STRONG&gt;JOIN&lt;/STRONG&gt; and press F1 in ur report program u get a bunch of documentation with clearly explained examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 11:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481733#M1061115</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-09-12T11:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: regarding joining two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481734#M1061116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;combine the records of  the two internal tables to one by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append lines of itab2 to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete adjacent duplicates from itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now itab1 will contain Union of  itab1 and itab2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 11:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481734#M1061116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T11:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: regarding joining two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481735#M1061117</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;If its internal table joining then best is to use APPEND LINES.... statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also append internal tables to index tables using the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;APPEND LINES OF itab1 TO itab2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement appends the whole of ITAB1 to ITAB2. ITAB1 can be any type of table, but its line type must be convertible into the line type of ITAB2.&lt;/P&gt;&lt;P&gt;When you append an index table to another index table, you can specify the lines to be appended as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;APPEND LINES OF itab1 [FROM n1] [TO n2] TO itab2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n1 and n2 specify the indexes of the first and last lines of ITAB1 that you want to append to ITAB2.&lt;/P&gt;&lt;P&gt;This method of appending lines of one table to another is about 3 to 4 times faster than appending them line by line in a loop. After the APPEND statement, the system field SY-TABIX&lt;/P&gt;&lt;P&gt;contains the index of the last line appended. When you append several lines to a sorted table, you must respect the unique key (if defined), and not violate the sort order. Otherwise, a runtime error will occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 11:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481735#M1061117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T11:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: regarding joining two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481736#M1061118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 08:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-joining-two-internal-tables/m-p/4481736#M1061118</guid>
      <dc:creator>rohit_kaikala</dc:creator>
      <dc:date>2008-10-16T08:47:55Z</dc:date>
    </item>
  </channel>
</rss>

