<?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: Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475474#M835397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort itab by field1 field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   v_counter = v_counter + 1.&lt;/P&gt;&lt;P&gt;   itab1 = itab.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   if v_counter &amp;gt; 1.&lt;/P&gt;&lt;P&gt;     if itab1-field1 = itab-field1 and&lt;/P&gt;&lt;P&gt;        itab1-field2 = itab-field2.  &amp;lt;-- depends on upto how many &lt;/P&gt;&lt;P&gt;                               no.  of fields UR looking for duplicates &lt;/P&gt;&lt;P&gt;      itab3 = itab.&lt;/P&gt;&lt;P&gt;      append itab3.&lt;/P&gt;&lt;P&gt;      clear: itab3 , v_counter.&lt;/P&gt;&lt;P&gt;     endif.&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;itab3 will contain all the duplicate entries ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2008 09:00:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-12T09:00:36Z</dc:date>
    <item>
      <title>Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475463#M835386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello freinds,&lt;/P&gt;&lt;P&gt;I have one internal table.Now I have to check wheter that internal table  has any reapeting entry or not.&lt;/P&gt;&lt;P&gt;then please tell me how to check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475463#M835386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475464#M835387</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;sort that internal table by all fields ... if you want to delete those then use delete adjacent duplcates to delete those&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort itab &amp;lt;fields&amp;gt;.
delete adjacent duplicates from itab comparing &amp;lt;fields&amp;gt;. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475464#M835387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475465#M835388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use COLLECT statement to get unique records in the internal table.&lt;/P&gt;&lt;P&gt;--&amp;gt;You use the COLLECT statement to generate unique or compressed datasets. The contents of the work area of the internal table are recorded as a new entry at the end of the table or are added to an existing entry. The latter occurs when the internal table already contains an entry with the same key field values as those currently in the work area. The numeric fields that do not belong to the key are added to the corresponding fields of the existing entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the COLLECT statement is used, all the fields that are not part of the key must be numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;vineela.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475465#M835388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475466#M835389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let itab1 be ur internal table...then code like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab2 like itab[].&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;itab2 = itab1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab1[] = itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No duplicate entries exist&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;*Duplicate entries exist&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:20:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475466#M835389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475467#M835390</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;chk out this thread..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="736412"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATE ENTRIES FROM &amp;lt;itab&amp;gt; &lt;A href="http://COMPARING" target="test_blank"&gt;http://COMPARING&lt;/A&gt;. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes adjacent duplicate entries, either by comparing the key fields or the comparison fields specified explicitly in the COMPARING addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475467#M835390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475468#M835391</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;say ur internal table is itab.&lt;/P&gt;&lt;P&gt;create another internal table jtab same as itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then do like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
jtab[] = itab[].
DELETE ADJACENT DUPLICATES FROM jtab COMPARING ALL FIELDS.
if itab[] = jtab[].
no duplicates
else.
duplicates are there
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475468#M835391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475469#M835392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;describe table itab lines x.  "take the no of records in itab&lt;/P&gt;&lt;P&gt;sort itab by use here all the fields in the internal table.&lt;/P&gt;&lt;P&gt;use command delete adjacent duplicates on itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table itab lines y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x=y.&lt;/P&gt;&lt;P&gt;message 'no duplicate records found'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;message 'duplicate records found'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475469#M835392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475470#M835393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;tables:pa0008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_pa00008 occurs 0,&lt;/P&gt;&lt;P&gt;       pernr like pa0008-pernr,&lt;/P&gt;&lt;P&gt;       begda like pa0008-bagda,&lt;/P&gt;&lt;P&gt;       endda like pa0008-endda,&lt;/P&gt;&lt;P&gt;       ansal like pa0008-ansal,&lt;/P&gt;&lt;P&gt;       end of it_pa0008 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:s_pernr for pa0008-pernr.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;          begda&lt;/P&gt;&lt;P&gt;          endda&lt;/P&gt;&lt;P&gt;          ansal&lt;/P&gt;&lt;P&gt;         from pa0008&lt;/P&gt;&lt;P&gt;into table it_pa0008&lt;/P&gt;&lt;P&gt;where pernr in s_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_pa0008 by pernr begda descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*here you put a break point to see the duplicates *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from table it_pa0008 comparing pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: venkat  appikonda on Mar 12, 2008 9:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475470#M835393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475471#M835394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;This is really Helpful answer.&lt;/P&gt;&lt;P&gt;But My problem is that I have to find out the duplicate entries and transport to another internal table.&lt;/P&gt;&lt;P&gt;then please tell me how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475471#M835394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475472#M835395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx Bharat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is really Helpful answer.&lt;/P&gt;&lt;P&gt;But My problem is that I have to find out the duplicate entries and transport to another internal table.&lt;/P&gt;&lt;P&gt;then please tell me how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:48:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475472#M835395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475473#M835396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;data : wa_store like line of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by &amp;lt;ur key fieds&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;if sy-tabix = 1.&lt;/P&gt;&lt;P&gt;wa_store = itab.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;if wa_store = itab.&lt;/P&gt;&lt;P&gt;&amp;lt;append wa_store to new intenal table.&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;wa_store = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kamini Rawat on Mar 12, 2008 9:55 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475473#M835396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475474#M835397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort itab by field1 field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   v_counter = v_counter + 1.&lt;/P&gt;&lt;P&gt;   itab1 = itab.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   if v_counter &amp;gt; 1.&lt;/P&gt;&lt;P&gt;     if itab1-field1 = itab-field1 and&lt;/P&gt;&lt;P&gt;        itab1-field2 = itab-field2.  &amp;lt;-- depends on upto how many &lt;/P&gt;&lt;P&gt;                               no.  of fields UR looking for duplicates &lt;/P&gt;&lt;P&gt;      itab3 = itab.&lt;/P&gt;&lt;P&gt;      append itab3.&lt;/P&gt;&lt;P&gt;      clear: itab3 , v_counter.&lt;/P&gt;&lt;P&gt;     endif.&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;itab3 will contain all the duplicate entries ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 09:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475474#M835397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T09:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475475#M835398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort itab.&lt;/P&gt;&lt;P&gt;itab[] = itab_new[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab adjascent duplicate coparing &amp;lt;,,&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If itab[] &amp;lt;&amp;gt; itabnew[].&lt;/P&gt;&lt;P&gt;loop at itab_new.&lt;/P&gt;&lt;P&gt;read itab.&lt;/P&gt;&lt;P&gt;if sy-subec &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;move reord from itab to itab_store.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 09:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475475#M835398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T09:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475476#M835399</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;1. if you don't want duplicate entries,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab &amp;lt;fields&amp;gt;.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab comparing &amp;lt;fields&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if you want to findout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab &amp;lt;fields&amp;gt;.&lt;/P&gt;&lt;P&gt;loop at itab into wa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if wa1 = wa2.&lt;/P&gt;&lt;P&gt;duplicate entries are there&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;wa2 = wa1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 09:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475476#M835399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T09:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475477#M835400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Amar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the below thread ... hope it might help..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="316774"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 09:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475477#M835400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T09:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475478#M835401</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;For moving ur duplicate entries to another table, u need to take three internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1 is the original internal table with all the entries and a blank fiels as flag appended at last.&lt;/P&gt;&lt;P&gt;Make a copy of it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2 = itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete duplicate adjacent from itab2 comparing all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*now,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at itab2 into wa_itab2.&lt;/P&gt;&lt;P&gt;counter = 0.&lt;/P&gt;&lt;P&gt;  LOOP at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;     if wa_itab2 = wa_itab1.&lt;/P&gt;&lt;P&gt;       counter = counter +1.&lt;/P&gt;&lt;P&gt;       if counter GT 1.&lt;/P&gt;&lt;P&gt;          wa_itab3 = wa_itab1.&lt;/P&gt;&lt;P&gt;          Append wa_itab3 to itab3.&lt;/P&gt;&lt;P&gt;          wa_itab1-flag = 'X'.&lt;/P&gt;&lt;P&gt;         modify itab1 from wa_itab1 transporting flag.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create an internal table itab3 with all duplicate entries . Also duplicate entries will be marked by flag in itab1.&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;Reward points if helpful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Parul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 09:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3475478#M835401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T09:52:55Z</dc:date>
    </item>
  </channel>
</rss>

