<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/6136320#M1366239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear frnds,&lt;/P&gt;&lt;P&gt;    I have to create an ALV in a report using ALV Grid display function in such a way that the user could able to select rows  and can perform  udation and deletion ect.But i am having problem with the navigation.Whenever a user double click the row to select that row the coursor position sets to the first line.Eg.when double clicked in the 100th row the row is selected but coursor position resets to row 1.what i can do ...i am pasting the code portion below....pls help me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command  USING u_com LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                        sel_field TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE u_com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;      TEMP_INDEX = sel_field-tabindex.&lt;/P&gt;&lt;P&gt;      READ TABLE i_final INTO wa_final INDEX TEMP_INDEX.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF wa_final-status EQ space OR wa_final-status = '@02@'.&lt;/P&gt;&lt;P&gt;          wa_final-status = '@01@'.&lt;/P&gt;&lt;P&gt;        ELSEIF wa_final-status = '@01@'.&lt;/P&gt;&lt;P&gt;          wa_final-status = '@02@'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_final-chkbx = 'X'.&lt;/P&gt;&lt;P&gt;        MODIFY i_final FROM wa_final INDEX sy-tabix&lt;/P&gt;&lt;P&gt;                                     TRANSPORTING status&lt;/P&gt;&lt;P&gt;                                                  chkbx.&lt;/P&gt;&lt;P&gt;        CLEAR wa_final.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      sel_field-refresh = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2009 07:47:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-10T07:47:53Z</dc:date>
    <item>
      <title>ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/6136320#M1366239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear frnds,&lt;/P&gt;&lt;P&gt;    I have to create an ALV in a report using ALV Grid display function in such a way that the user could able to select rows  and can perform  udation and deletion ect.But i am having problem with the navigation.Whenever a user double click the row to select that row the coursor position sets to the first line.Eg.when double clicked in the 100th row the row is selected but coursor position resets to row 1.what i can do ...i am pasting the code portion below....pls help me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command  USING u_com LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                        sel_field TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE u_com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;      TEMP_INDEX = sel_field-tabindex.&lt;/P&gt;&lt;P&gt;      READ TABLE i_final INTO wa_final INDEX TEMP_INDEX.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF wa_final-status EQ space OR wa_final-status = '@02@'.&lt;/P&gt;&lt;P&gt;          wa_final-status = '@01@'.&lt;/P&gt;&lt;P&gt;        ELSEIF wa_final-status = '@01@'.&lt;/P&gt;&lt;P&gt;          wa_final-status = '@02@'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_final-chkbx = 'X'.&lt;/P&gt;&lt;P&gt;        MODIFY i_final FROM wa_final INDEX sy-tabix&lt;/P&gt;&lt;P&gt;                                     TRANSPORTING status&lt;/P&gt;&lt;P&gt;                                                  chkbx.&lt;/P&gt;&lt;P&gt;        CLEAR wa_final.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      sel_field-refresh = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 07:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/6136320#M1366239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T07:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/6136321#M1366240</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;U need to indicate to keep the position after refreshing the list:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USER_COMMAND USING U_COM LIKE SY-UCOMM
                       SEL_FIELD TYPE SLIS_SELFIELD.

  CASE U_COM.

    WHEN '&amp;amp;IC1'.
      TEMP_INDEX = SEL_FIELD-TABINDEX.
      READ TABLE I_FINAL INTO WA_FINAL INDEX TEMP_INDEX.
      IF SY-SUBRC = 0.

        IF WA_FINAL-STATUS EQ SPACE OR WA_FINAL-STATUS = '@02@'.
          WA_FINAL-STATUS = '@01@'.
        ELSEIF WA_FINAL-STATUS = '@01@'.
          WA_FINAL-STATUS = '@02@'.
        ENDIF.

        WA_FINAL-CHKBX = 'X'.
        MODIFY I_FINAL FROM WA_FINAL INDEX SY-TABIX
        TRANSPORTING STATUS
        CHKBX.
        CLEAR WA_FINAL.
      ENDIF.

      SEL_FIELD-REFRESH = 'X'.

      SEL_FIELD-COL_STABLE = 'X'. "&amp;lt;---Keep the colunm
      SEL_FIELD-ROW_STABLE = 'X'. "&amp;lt;---Keep the row
    ENDIF.
  ENDFORM.                    "user_command&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 08:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/6136321#M1366240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T08:03:47Z</dc:date>
    </item>
  </channel>
</rss>

