<?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: Need to merge two same structure internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-merge-two-same-structure-internal-table/m-p/3914750#M938440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use following code if you do not want to have duplicate entries in itab2 from itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1&lt;/P&gt;&lt;P&gt;read table itab2 from itab1.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;append itab2 from itab1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;collect will not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2008 03:38:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-30T03:38:06Z</dc:date>
    <item>
      <title>Need to merge two same structure internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-merge-two-same-structure-internal-table/m-p/3914748#M938438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two same internal table with around 70,000 records in each table now i want to merge both internal table so there will be no repetition of same record in table. Is this statement will work? Internal table has 6 field. 4 field are numc or char and last 2 fields are packed decimal. if there is any other good idea please let me know. If question is not clear let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COLLECT LINES IT_CYD2 TO IT_CYD4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Dave.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 03:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-merge-two-same-structure-internal-table/m-p/3914748#M938438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T03:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to merge two same structure internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-merge-two-same-structure-internal-table/m-p/3914749#M938439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you intention is to &lt;STRONG&gt;summarize&lt;/STRONG&gt; the two itabs then the COLLECT statement is correct.&lt;/P&gt;&lt;P&gt;However, according to the ABAP keyword documentation you can collect only one record at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want to summarize then you may have a look at my Wiki posting: &lt;/P&gt;&lt;P&gt;[Comparing Two Internal Tables - A Generic Approach|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/comparing%2btwo%2binternal%2btables%2b-%2ba%2bgeneric%2bapproach]&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 03:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-merge-two-same-structure-internal-table/m-p/3914749#M938439</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-05-30T03:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need to merge two same structure internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-merge-two-same-structure-internal-table/m-p/3914750#M938440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use following code if you do not want to have duplicate entries in itab2 from itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1&lt;/P&gt;&lt;P&gt;read table itab2 from itab1.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;append itab2 from itab1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;collect will not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 03:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-merge-two-same-structure-internal-table/m-p/3914750#M938440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T03:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need to merge two same structure internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-merge-two-same-structure-internal-table/m-p/3914751#M938441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;append lines of  it2[]  to  it1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: DEBOPRIYO MALLICK on May 30, 2008 5:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 03:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-merge-two-same-structure-internal-table/m-p/3914751#M938441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T03:38:14Z</dc:date>
    </item>
  </channel>
</rss>

