<?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 SORT statement is not working! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-statement-is-not-working/m-p/4021036#M960870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frdz,&lt;/P&gt;&lt;P&gt;Below SORT statement is not working. Can any one explain me why this is happening.&lt;/P&gt;&lt;P&gt;SORT i_bseg ASCENDING BY belnr bukrs&lt;/P&gt;&lt;P&gt;                    DESCENDING kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table content as below.&lt;/P&gt;&lt;P&gt;BELNR      BUKRS KUNNR    &lt;/P&gt;&lt;P&gt;0016000000|CROP |          &lt;/P&gt;&lt;P&gt;0016000000|CROP |0008910168&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before and after the sort content order is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sort the content like below.&lt;/P&gt;&lt;P&gt;0016000000|CROP |0008910168&lt;/P&gt;&lt;P&gt;0016000000|CROP |        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any thing wrong with the sort statement???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_bseg is defined as TYPE STANDARD TABLE OF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort criteria must not change i. e ascending by belnr and bukrs and descending by kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2008 08:42:51 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-06-20T08:42:51Z</dc:date>
    <item>
      <title>SORT statement is not working!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-statement-is-not-working/m-p/4021036#M960870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frdz,&lt;/P&gt;&lt;P&gt;Below SORT statement is not working. Can any one explain me why this is happening.&lt;/P&gt;&lt;P&gt;SORT i_bseg ASCENDING BY belnr bukrs&lt;/P&gt;&lt;P&gt;                    DESCENDING kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table content as below.&lt;/P&gt;&lt;P&gt;BELNR      BUKRS KUNNR    &lt;/P&gt;&lt;P&gt;0016000000|CROP |          &lt;/P&gt;&lt;P&gt;0016000000|CROP |0008910168&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before and after the sort content order is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sort the content like below.&lt;/P&gt;&lt;P&gt;0016000000|CROP |0008910168&lt;/P&gt;&lt;P&gt;0016000000|CROP |        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any thing wrong with the sort statement???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_bseg is defined as TYPE STANDARD TABLE OF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort criteria must not change i. e ascending by belnr and bukrs and descending by kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 08:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-statement-is-not-working/m-p/4021036#M960870</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-06-20T08:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: SORT statement is not working!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-statement-is-not-working/m-p/4021037#M960871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SORT i_bseg BY belnr bukrs kunnr DESCENDING.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Default is ASCENDING. What I worte is similar to SORT i_bseg BY belnr ASCENDING bukrs ASCENDING kunnr DESCENDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 08:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-statement-is-not-working/m-p/4021037#M960871</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-06-20T08:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: SORT statement is not working!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-statement-is-not-working/m-p/4021038#M960872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is because on your statement, you are sorting BUKRS in descending order and KUNNR in ASCENDING order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please take note that the sort order should come after the sorted field. if no order is given, the default which is ASCENDING will be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do your sorting like this&lt;/P&gt;&lt;P&gt;SORT i_bseg BY belnr bukrs kunnr DESCENDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 08:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-statement-is-not-working/m-p/4021038#M960872</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-06-20T08:48:32Z</dc:date>
    </item>
  </channel>
</rss>

