<?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: REUSE_ALV_GRID_DISPLAY Drilldown problem after sorting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847894#M359485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create a subroutine:&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;RS_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;  CASE R_UCOMM.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;      READ TABLE IT_EKKO INTO WA_EKKO INDEX RS_SELFIELD-TABINDEX.&lt;/P&gt;&lt;P&gt;      set parameter id 'BES' field wa_EKKO-EBELN.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;      call transaction 'ME23N' and skip first screen.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember you should have declared, the parameter :&lt;/P&gt;&lt;P&gt;   I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;in resue_alv_grid_display func.module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Feb 2007 15:58:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-03T15:58:58Z</dc:date>
    <item>
      <title>REUSE_ALV_GRID_DISPLAY Drilldown problem after sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847888#M359479</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;I am using the FM REUSE_ALV_GRID_DISPLAY to display a ALV report and have drill down capability to show the POs.  But, I am facing a peculiar problem.  When the user tries to drill down to show the POs after doing a sort, the PO shown is not correct.  It shows the PO of the PO number that was in the same row before the sorting was done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do help me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 12:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847888#M359479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T12:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY Drilldown problem after sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847889#M359480</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;Try with marking the 'Save' attribute in the function module. with this the layout would be saved and may be your problem get solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or. If you can sort the table before displaying then it would anyway solve the problem for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 14:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847889#M359480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T14:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY Drilldown problem after sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847890#M359481</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;Please use User command in ur program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function code for Double click in ALV   '&amp;amp;IC1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 14:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847890#M359481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T14:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY Drilldown problem after sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847891#M359482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table displayed m u s t be defined global.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your 'drill-down'-functionality uses routine for event user_command, read the table with index as passed in the parameter.&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>Sat, 03 Feb 2007 15:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847891#M359482</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-02-03T15:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY Drilldown problem after sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847892#M359483</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;Thanks for your replies.  I have done all that has been said.  My problem is that when the user double clicks on the ALV without pressing the sort button in the ALV display, the index provided in the user-command subroutine is the same as the index of the record in the internal table.  But, when the user sorts dynamically when the ALV is displayed and then double clicks, the index of the record provided by ALV is different from the index of that record in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, when the ALV grid is shown a record is in the 1st row, and when the user double clicks now, the index of this record provided is 1 which is same as the index in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, after the user sorts in the display, if this record moves to the 5th row, the index provided by ALV will become 5, but, actually the index in the internal table is still 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I have clarified my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 15:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847892#M359483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T15:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY Drilldown problem after sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847893#M359484</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;If my earlier post was very confusing, one simple question would be, how can I know on which field(s) was the grid sorted by the user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 15:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847893#M359484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T15:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY Drilldown problem after sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847894#M359485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create a subroutine:&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;RS_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;  CASE R_UCOMM.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;      READ TABLE IT_EKKO INTO WA_EKKO INDEX RS_SELFIELD-TABINDEX.&lt;/P&gt;&lt;P&gt;      set parameter id 'BES' field wa_EKKO-EBELN.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;      call transaction 'ME23N' and skip first screen.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember you should have declared, the parameter :&lt;/P&gt;&lt;P&gt;   I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;in resue_alv_grid_display func.module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 15:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847894#M359485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T15:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY Drilldown problem after sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847895#M359486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me repeat: The table displayed must be declared as global data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is passed by reference to the ALV function module. It get's sorted as soon as the sort is done in ALV. Otherwise we are talking about different tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Declaration of internal table&lt;/P&gt;&lt;P&gt;2. Call of ALV function&lt;/P&gt;&lt;P&gt;3. USER_COMMAND routine&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>Sat, 03 Feb 2007 16:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-drilldown-problem-after-sorting/m-p/1847895#M359486</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-02-03T16:19:10Z</dc:date>
    </item>
  </channel>
</rss>

