<?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: Sorting a sorted table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-sorted-table/m-p/4541940#M1072945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add progarm lines node in the Smartform in the very first window of the Smartform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the code like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SORT LBBIL_INVOICE-IT_GEN BY BIL_NUMBER ITM_NUMBER
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use the "Form Routines" in the "Global Definitions" to write the code in the Smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2008 16:26:43 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2008-10-06T16:26:43Z</dc:date>
    <item>
      <title>Sorting a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-sorted-table/m-p/4541938#M1072943</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;Iu2019m developing the invoice smartform. The used structure is u201CIS_BIL_INVOICE type LBBIL_INVOICEu201D. It is a sorted table (I need to sort it with different criteria, concretely its IT_GEN component). How can I sort it (I cannot use SORT command)? Do I have to modify the main program? Or does exist a different way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ricard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 16:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-sorted-table/m-p/4541938#M1072943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T16:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-sorted-table/m-p/4541939#M1072944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can copy the sorted table to a temporary internal table which is not of type sorted and sort it the way you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 16:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-sorted-table/m-p/4541939#M1072944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T16:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-sorted-table/m-p/4541940#M1072945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add progarm lines node in the Smartform in the very first window of the Smartform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the code like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SORT LBBIL_INVOICE-IT_GEN BY BIL_NUMBER ITM_NUMBER
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use the "Form Routines" in the "Global Definitions" to write the code in the Smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 16:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-sorted-table/m-p/4541940#M1072945</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-10-06T16:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-sorted-table/m-p/4541941#M1072946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to run this code, appears the following message: u201Cu201CIS_BIL_INVOICE-IT_GENu201D is a table of the kind SORTED. You cannot use the SORT command with this type of tableu201D. So, is it impossible to sort a sorted table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ricard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 07:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-sorted-table/m-p/4541941#M1072946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T07:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-sorted-table/m-p/4541942#M1072947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is &lt;STRONG&gt;impossible&lt;/STRONG&gt; to sort a sorted table to a different sort order.  You must copy the table to a sorted table (with or without a unique key) with the different sort order.  Exactly as Aparna Shekhar already said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you control the definition of the internal table, then you can specify secondard indexes in later versions of Netweaver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 08:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-sorted-table/m-p/4541942#M1072947</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-10-08T08:00:23Z</dc:date>
    </item>
  </channel>
</rss>

