<?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 Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/925799#M59820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have an internal table with several fields. those have name, number and code along with others.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The value in number field may or may not exist and if exists i have to check whether there are any duplicates with the same 'number and code' and i have to delete those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could some one give me an efficient approach to do this. your help would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kranthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2005 18:59:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-17T18:59:56Z</dc:date>
    <item>
      <title>Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/925799#M59820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have an internal table with several fields. those have name, number and code along with others.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The value in number field may or may not exist and if exists i have to check whether there are any duplicates with the same 'number and code' and i have to delete those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could some one give me an efficient approach to do this. your help would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kranthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2005 18:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/925799#M59820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-17T18:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/925800#M59821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kranthi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not know whether Rich is at the moment writing for the answer &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; but you can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT itab BY number code .
DELETE ADJACENT DUPLICATES FROM itab COMPARING number code .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2005 19:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/925800#M59821</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-05-17T19:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/925801#M59822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No,  I wasn't.  But that is exactly what I would have suggested.....  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2005 19:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/925801#M59822</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-05-17T19:18: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/925802#M59823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What Serder suggested and what Rich would have suggested will work for you, but it will also delete the ones that don't have a number. I think your requirement is to delete duplicates only if the number field is filled in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to prepare two internal tables of the same structure. In one you will have records that have the number field filled in and the other will have records that don't have the number field filled in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO_NUMBER_ITAB[] = SOURCE_ITAB[].&lt;/P&gt;&lt;P&gt;DELETE NO_NUMBER_ITAB WHERE NOT NUMBER IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUMBER_FILLED_ITAB[] = SOURCE_ITAB[].&lt;/P&gt;&lt;P&gt;DELETE NUMBER_FILLED_ITAB WHERE IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT NUMBER_FILLED_ITAB BY NUMBER CODE.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM NUMBER_FILLED_ITAB COMPARING NUMBER CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH SOURCE_ITAB.&lt;/P&gt;&lt;P&gt;APPEND LINES OF NUMBER_FILLED_ITAB TO SOURCE_ITAB.&lt;/P&gt;&lt;P&gt;APPEND LINES OF NO_NUMBER_ITAB TO SOURCE_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2005 19:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/925802#M59823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-17T19:44:26Z</dc:date>
    </item>
  </channel>
</rss>

