<?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 Problem in GET_CURRENT_CELL method in oops ALV GRID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-current-cell-method-in-oops-alv-grid/m-p/5720787#M1298063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I got output records int eh ALV GRID and i have a one push button in the report. When i select any CELL(say 5 row) in ALV GRID and click on this push Button, it should display me the Row number (row number = 5). I have used the GET_CURRENT_CELL. when I execute the report and select one cell (5 row cell )and click on push button, it is giving me the Row number(row number =  5) correctly. Again when i choose the cell (say 8 record)second time, it should display give the row number = 8 but always it is giving me the First row number . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get selected row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM get_selected_row CHANGING l_sel_row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FORM get_selected_row  CHANGING p_l_sel_row.&lt;/P&gt;&lt;P&gt;  DATA: li_sel_row TYPE i,             "Selected row&lt;/P&gt;&lt;P&gt;        lv_rowid   TYPE lvc_s_row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Query which row was selected.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD grid_brr_main-&amp;gt;get_current_cell&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_row     = li_sel_row&lt;/P&gt;&lt;P&gt;      es_row_id = lv_rowid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE lv_rowid-index TO p_l_sel_row.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_selected_row&lt;/P&gt;&lt;P&gt;&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;Deepthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2009 11:37:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-04T11:37:47Z</dc:date>
    <item>
      <title>Problem in GET_CURRENT_CELL method in oops ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-current-cell-method-in-oops-alv-grid/m-p/5720787#M1298063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I got output records int eh ALV GRID and i have a one push button in the report. When i select any CELL(say 5 row) in ALV GRID and click on this push Button, it should display me the Row number (row number = 5). I have used the GET_CURRENT_CELL. when I execute the report and select one cell (5 row cell )and click on push button, it is giving me the Row number(row number =  5) correctly. Again when i choose the cell (say 8 record)second time, it should display give the row number = 8 but always it is giving me the First row number . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get selected row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM get_selected_row CHANGING l_sel_row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FORM get_selected_row  CHANGING p_l_sel_row.&lt;/P&gt;&lt;P&gt;  DATA: li_sel_row TYPE i,             "Selected row&lt;/P&gt;&lt;P&gt;        lv_rowid   TYPE lvc_s_row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Query which row was selected.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD grid_brr_main-&amp;gt;get_current_cell&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_row     = li_sel_row&lt;/P&gt;&lt;P&gt;      es_row_id = lv_rowid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE lv_rowid-index TO p_l_sel_row.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_selected_row&lt;/P&gt;&lt;P&gt;&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;Deepthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 11:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-current-cell-method-in-oops-alv-grid/m-p/5720787#M1298063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T11:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GET_CURRENT_CELL method in oops ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-current-cell-method-in-oops-alv-grid/m-p/5720788#M1298064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Probably the data is not getting refreshed.&lt;/P&gt;&lt;P&gt;Please call the following methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH_TABLE_DISPLAY in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call this method only if the grid has been created and called once using SET_TABLE_FOR_FIRST_DISPLAY.&lt;/P&gt;&lt;P&gt;As follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If grid is initial.

call method grid-set_table_for_first_display


else

call method grid-&amp;gt;REFRESH_TABLE_DISPLAY.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI.&lt;/P&gt;&lt;P&gt;call the following method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grid-&amp;gt;CHECK_CHANGED_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that the data changes are transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ankur Parab on Jun 4, 2009 5:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 11:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-current-cell-method-in-oops-alv-grid/m-p/5720788#M1298064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T11:48:50Z</dc:date>
    </item>
  </channel>
</rss>

