<?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 ALV OO issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-issue/m-p/3749074#M902040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented double click method correctly, but if the user sorts the ALV with the toolbar button, it is not working properly, because the internal table IT_OUTPUT is not sorted, only the view, How can I sort the internal table in order to get the rigth index of the alv table??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I have is the following....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM handle_double_click  USING    p_e_row&lt;/P&gt;&lt;P&gt;                                   p_e_column&lt;/P&gt;&lt;P&gt;                                   p_es_row_no TYPE lvc_s_roid.&lt;/P&gt;&lt;P&gt;  DATA: batch_bdc TYPE TABLE OF bdcdata,&lt;/P&gt;&lt;P&gt;        evrtn LIKE rm06e-evrtn,&lt;/P&gt;&lt;P&gt;        opt TYPE ctu_params .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE ti_output INDEX p_e_row. &lt;/P&gt;&lt;P&gt; *-&amp;gt;&amp;gt;IF THE TABLE WAS SORTED BY THE ALV BUTTON TI_OUTPUT IS NOT SORTED&lt;/P&gt;&lt;P&gt;-&amp;gt;&amp;gt; WHICH WILL READ THE WRONG FIELD ON THE TABLE!!!*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  evrtn = ti_output-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF evrtn(1) EQ '3'.&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;   ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " handle_double_click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be rewarded,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel P-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2008 18:57:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-07T18:57:13Z</dc:date>
    <item>
      <title>ALV OO issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-issue/m-p/3749074#M902040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented double click method correctly, but if the user sorts the ALV with the toolbar button, it is not working properly, because the internal table IT_OUTPUT is not sorted, only the view, How can I sort the internal table in order to get the rigth index of the alv table??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I have is the following....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM handle_double_click  USING    p_e_row&lt;/P&gt;&lt;P&gt;                                   p_e_column&lt;/P&gt;&lt;P&gt;                                   p_es_row_no TYPE lvc_s_roid.&lt;/P&gt;&lt;P&gt;  DATA: batch_bdc TYPE TABLE OF bdcdata,&lt;/P&gt;&lt;P&gt;        evrtn LIKE rm06e-evrtn,&lt;/P&gt;&lt;P&gt;        opt TYPE ctu_params .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE ti_output INDEX p_e_row. &lt;/P&gt;&lt;P&gt; *-&amp;gt;&amp;gt;IF THE TABLE WAS SORTED BY THE ALV BUTTON TI_OUTPUT IS NOT SORTED&lt;/P&gt;&lt;P&gt;-&amp;gt;&amp;gt; WHICH WILL READ THE WRONG FIELD ON THE TABLE!!!*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  evrtn = ti_output-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF evrtn(1) EQ '3'.&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;   ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " handle_double_click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be rewarded,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel P-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 18:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-issue/m-p/3749074#M902040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T18:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OO issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-issue/m-p/3749075#M902041</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;Check the program BCALV_GRID_02. Sort the list on any field, still the double click event is working fine. The program don't have any additional code (logic) to handled sorting of the displayed list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 19:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-issue/m-p/3749075#M902041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T19:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OO issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-issue/m-p/3749076#M902042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 19:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-issue/m-p/3749076#M902042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T19:31:33Z</dc:date>
    </item>
  </channel>
</rss>

