<?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: Improper List Navigation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/improper-list-navigation/m-p/5249125#M1212757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the code below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;case sy-ucomm.
  when 'ASCENDING'.
    sy-lsind = sy-lsind - 1.
    &amp;lt;code to sort ascending&amp;gt;
  when 'DSCENDING'.
    sy-lsind = sy-lsind - 1.
    &amp;lt;code to sort ascending&amp;gt;
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2009 14:02:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-11T14:02:06Z</dc:date>
    <item>
      <title>Improper List Navigation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improper-list-navigation/m-p/5249123#M1212755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus, &lt;/P&gt;&lt;P&gt;I am generating a list screen for Flight data, but in my case, I have provided user with interactive push-buttons on basic list for sorting in ascending and descending order. But, when I press sort-ascending it's displaying the data on another list and further more when I press sort-decending it's displaying the data on another list.&lt;/P&gt;&lt;P&gt;I noticed this problem, when I pressed F3 to get back to selection-screen, rather it took the screen with values sorted in ascending order and then again to basic list.&lt;/P&gt;&lt;P&gt;Can anyone suggest to overcome this.&lt;/P&gt;&lt;P&gt;I wait for your valuable suggestions.&lt;/P&gt;&lt;P&gt;Thankyou.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improper-list-navigation/m-p/5249123#M1212755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Improper List Navigation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improper-list-navigation/m-p/5249124#M1212756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Johny,&lt;/P&gt;&lt;P&gt;help.sap.com is the best temple to search your queries first.&lt;/P&gt;&lt;P&gt;And Johny, don't hesitate to search SCN.&lt;/P&gt;&lt;P&gt;The actual problem is due to not using SY-LSIND EQ listnumber.&lt;/P&gt;&lt;P&gt;Look, basic list number is 0, secondary list is 1.&lt;/P&gt;&lt;P&gt;What you have done is, you coded but forgot to REDEFINE LIST-NUMBER ,&lt;/P&gt;&lt;P&gt;Please read about SY-LSIND system field, which holds list-numbers. It's usually assumed that SY-LSIND is to check list-number in conditions. But, it can also be used to redefine list-numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PERFORM get_flight_data.
PERFORM put_flight_data.
sy-lsind = 1.               " Re-directing to secondary list.
"or
sy-lsind = 0.               " Re-directing to basic list

PERFORM sort_flight_data_ascending.
PERFORM put_sorted_data.

sy-lsind = 1.

PERFORM sort_flight_data_descending.
PERFORM put_sorted_desc_data.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try, with this code Johny, hope that would sweep-away your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks: Zahack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improper-list-navigation/m-p/5249124#M1212756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Improper List Navigation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improper-list-navigation/m-p/5249125#M1212757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the code below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;case sy-ucomm.
  when 'ASCENDING'.
    sy-lsind = sy-lsind - 1.
    &amp;lt;code to sort ascending&amp;gt;
  when 'DSCENDING'.
    sy-lsind = sy-lsind - 1.
    &amp;lt;code to sort ascending&amp;gt;
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 14:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improper-list-navigation/m-p/5249125#M1212757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T14:02:06Z</dc:date>
    </item>
  </channel>
</rss>

