<?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 Can I SORT a database ZTABLE using an ABAP statement ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-sort-a-database-ztable-using-an-abap-statement/m-p/9102710#M1706093</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;Can I SORT a database ZTABLE using an ABAP statement ? I know SORT statement works on itabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However can I sort a ZTABLE using ABAP ? Or can I put a condition somewhere that whenever an entry e.g NAME is entered into a ZTABLE it always remain sorted based on the NAME column ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Noman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2012 04:03:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-11-14T04:03:51Z</dc:date>
    <item>
      <title>Can I SORT a database ZTABLE using an ABAP statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-sort-a-database-ztable-using-an-abap-statement/m-p/9102710#M1706093</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;Can I SORT a database ZTABLE using an ABAP statement ? I know SORT statement works on itabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However can I sort a ZTABLE using ABAP ? Or can I put a condition somewhere that whenever an entry e.g NAME is entered into a ZTABLE it always remain sorted based on the NAME column ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Noman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 04:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-sort-a-database-ztable-using-an-abap-statement/m-p/9102710#M1706093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-14T04:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can I SORT a database ZTABLE using an ABAP statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-sort-a-database-ztable-using-an-abap-statement/m-p/9102711#M1706094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, SORT cannot be directly used with DB Tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;NAME is entered into a ZTABLE it always remain sorted based on the NAME column ?&lt;/P&gt;&lt;P&gt;What is the need for this?&lt;/P&gt;&lt;P&gt;If your intention is to increase the performane during search, then you can create index for the Table with NAME as index key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 05:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-sort-a-database-ztable-using-an-abap-statement/m-p/9102711#M1706094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-14T05:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can I SORT a database ZTABLE using an ABAP statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-sort-a-database-ztable-using-an-abap-statement/m-p/9102712#M1706095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Noman ,&lt;/P&gt;&lt;P&gt;- You very well have a addition of syntax &lt;/P&gt;&lt;P&gt; &lt;STRONG style="font-size: 8pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;BR /&gt;ORDER BY &amp;lt;Field&amp;gt;&amp;nbsp; [ASCENDING|DESCENDING] &lt;BR /&gt; &amp;lt;Field&amp;gt; [ASCENDING|DESCENDING] ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;While you fetch the data into a internal table from the custom table using a select query . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;- You can verywell create a Index too but as you suggest that your field is a Char type but While creating the index &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; -&amp;nbsp; Mind the lenght of the Field &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; -&amp;nbsp; The volume of the data in the Table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; -&amp;nbsp; The Hit Rate of the Index you will be creating .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;Hope this helps...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;Anup Deshmukh&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 05:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-sort-a-database-ztable-using-an-abap-statement/m-p/9102712#M1706095</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2012-11-14T05:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I SORT a database ZTABLE using an ABAP statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-sort-a-database-ztable-using-an-abap-statement/m-p/9102713#M1706096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have sorted indexes for quick access, and you can use SQL and ABAP constructs like ORDER BY to retrieve the data in a predictable sequence, or SORT the result set afterwards.&lt;/P&gt;&lt;P&gt;So what is the use of sorting the data stored inside the DB table?&lt;/P&gt;&lt;P&gt;Please clarify the context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 10:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-sort-a-database-ztable-using-an-abap-statement/m-p/9102713#M1706096</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-11-14T10:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can I SORT a database ZTABLE using an ABAP statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-sort-a-database-ztable-using-an-abap-statement/m-p/9102714#M1706097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Noman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP/ABAP communicates with a relational database. By definition, a database sort order is determined by it's primary key.&lt;/P&gt;&lt;P&gt;This means: A database table is sorted. You can not sort it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A better approach may be to explain what is your goal, what is the desired result or function?&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 11:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-sort-a-database-ztable-using-an-abap-statement/m-p/9102714#M1706097</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-11-14T11:04:36Z</dc:date>
    </item>
  </channel>
</rss>

