<?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 Sorting Internal Tables by Non-Key Fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-tables-by-non-key-fields/m-p/4130582#M987689</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;Would the performance of sort be degraded if I used non-key fields rather than key fields for the sort command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2008 10:17:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-07T10:17:38Z</dc:date>
    <item>
      <title>Sorting Internal Tables by Non-Key Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-tables-by-non-key-fields/m-p/4130582#M987689</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;Would the performance of sort be degraded if I used non-key fields rather than key fields for the sort command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 10:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-tables-by-non-key-fields/m-p/4130582#M987689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T10:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Internal Tables by Non-Key Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-tables-by-non-key-fields/m-p/4130583#M987690</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;All char fields are key fields for an internal table, so the performance can be degraded only as y make one operation more the sorting, and this is not dependent on which fields used by the sorting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sorting needs to certain time and memory space, so u should do it only if u need it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 10:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-tables-by-non-key-fields/m-p/4130583#M987690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T10:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Internal Tables by Non-Key Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-tables-by-non-key-fields/m-p/4130584#M987691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vidya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess if we use non-key fields rather then key fields it would affect performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through following link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT inside a LOOP should not used&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;Sort internal table by fields in the correct order, which are used in a READ TABLE statement using BINARY SEARCH. If the order of sorting is invalid the BINARY SEARCH will never work&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;For large internal tables where only some rows are to be processed, use SORT and then the READ TABLE command is used to set index to first relevant row before looping from that index. Use CHECK or IFu2026EXITu2026ENDIF as appropriate to exit from the loop&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;Sort fields and Sort Order on the SORT statement should be mentioned explicitly (e.g. SORT ITAB BY FLD1 FLD2 ASCENDING)&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;Hashed table is used for processing large amount of data (provided that you access single records only, and all with a fully specified key)&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;DELETE or SORT is not used on a hashed table since it increases memory consumption&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;Sorted table is used for range accesses involving table key or index accesses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is help full in any way&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;&lt;/P&gt;&lt;P&gt;SUDHIR MANJAREKAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 10:31:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-tables-by-non-key-fields/m-p/4130584#M987691</guid>
      <dc:creator>Sidh_M</dc:creator>
      <dc:date>2008-07-07T10:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Internal Tables by Non-Key Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-tables-by-non-key-fields/m-p/4130585#M987692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a SORT is only useful on a standard table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a standard table has no real key. You can define something as key, but this has no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SORT if you want display something in a certain order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use SORT if you want to use READ BINARY SEARCH. The read binary search works always, but only correctly if the table is sorted in the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your table should only be sorted once program execution, I doubt that it will make sense to sort it several times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 11:20:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-tables-by-non-key-fields/m-p/4130585#M987692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T11:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Internal Tables by Non-Key Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-tables-by-non-key-fields/m-p/4130586#M987693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sap4india.com/SAP-ABAP-Performance-Tuning-Questions-2.html" target="test_blank"&gt;www.sap4india.com/SAP-ABAP-Performance-Tuning-Questions-2.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 11:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-tables-by-non-key-fields/m-p/4130586#M987693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T11:37:38Z</dc:date>
    </item>
  </channel>
</rss>

