<?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 internal table sorting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table-sorting/m-p/3520844#M846817</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;Yes you will get the correct  records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2008 07:23:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-07T07:23:14Z</dc:date>
    <item>
      <title>Regarding internal table sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table-sorting/m-p/3520842#M846815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a report program, i am sorting an itab say itab1 with 5 fields like a, b, c, d and e as follow- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab with a b c d e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Then i am deleting adjacent duplicates from itab like this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DELETE ADJACENT DUPLICATES FROM itab COMPARING a b c d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; after that am reading itab using first 2 , 3rd and 4th field &lt;/P&gt;&lt;P&gt;READ TABLE itab with key a = v1&lt;/P&gt;&lt;P&gt;                                         b = v2&lt;/P&gt;&lt;P&gt;                                         d = v3&lt;/P&gt;&lt;P&gt;                                         e= v4                             &lt;/P&gt;&lt;P&gt;                          BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody let me know whether i will get correct record from this search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks in adv,&lt;/P&gt;&lt;P&gt;Akash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 07:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table-sorting/m-p/3520842#M846815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T07:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding internal table sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table-sorting/m-p/3520843#M846816</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;It will give you the result, but one thing to be noted is if you are sorting the itab by 5 fields and deleting the records from itab by comparing 4 fields is not good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be always like the fields what you are sorted and deleting should based on those fields only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort itab by f1 f2 f3 f4 f5.

delete adjacent duplicates from itab comparing f1 f2 f3 f4 f5.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 07:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table-sorting/m-p/3520843#M846816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T07:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding internal table sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table-sorting/m-p/3520844#M846817</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;Yes you will get the correct  records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 07:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table-sorting/m-p/3520844#M846817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T07:23:14Z</dc:date>
    </item>
  </channel>
</rss>

