<?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: class alv refresh problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107002#M1617054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ayd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check as Sandra told.&lt;/P&gt;&lt;P&gt;[Refresh Button|http://wiki.sdn.sap.com/wiki/display/ABAP/Making&lt;EM&gt;ALV&lt;/EM&gt;to&lt;EM&gt;react&lt;/EM&gt;to&lt;EM&gt;Change&lt;/EM&gt;data+automatically]&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;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2011 15:34:46 GMT</pubDate>
    <dc:creator>madhu_vadlamani</dc:creator>
    <dc:date>2011-09-05T15:34:46Z</dc:date>
    <item>
      <title>class alv refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107000#M1617052</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 an alv which has 3 columns. 2 columns are editable, one is not. I want to fill the non-editable column according to the value which has been entered in editable columns.&lt;/P&gt;&lt;P&gt;the problem is; I want to refresh alv by pressing ENTER button. When i press enter it doesnt refresh alv. But when i press enter in debug mode (by writing /H) it refreshes the alv. here is my beginning of pai. In debug mode, program falls into when others code. But without debug enter button doesnt react.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE save_ok.

    WHEN 'SAVE'.

      PERFORM save_data.

    WHEN 'BACK'.

      LEAVE TO SCREEN 0.

    WHEN 'EXIT'.

      LEAVE PROGRAM.

    WHEN 'TOPLU'.

      CALL SCREEN 200.

    WHEN others.

....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 13:54:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107000#M1617052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-05T13:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: class alv refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107001#M1617053</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;you probably made a confusion because of the &lt;STRONG&gt;"focus"&lt;/STRONG&gt; : when the cursor is in the editable ALV, the Enter key is handled by the ALV, while when the cursor is in the OK code (command field) and you press the Enter key, then it is handled in the PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to handle the Enter in the ALV, you have to handle the DATA_CHANGED event. See the forum for more information, or demo program like BCALV_EDIT* and BCALV_TEST_GRID_EDIT*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 14:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107001#M1617053</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-09-05T14:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: class alv refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107002#M1617054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ayd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check as Sandra told.&lt;/P&gt;&lt;P&gt;[Refresh Button|http://wiki.sdn.sap.com/wiki/display/ABAP/Making&lt;EM&gt;ALV&lt;/EM&gt;to&lt;EM&gt;react&lt;/EM&gt;to&lt;EM&gt;Change&lt;/EM&gt;data+automatically]&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;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 15:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107002#M1617054</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-09-05T15:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: class alv refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107003#M1617055</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 am calling the method below just after set_table_for_first_display method at pbo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD g_grid-&amp;gt;register_edit_event
    EXPORTING
      i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in my pai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use the method below in WHEN OTHERS part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD g_grid-&amp;gt;check_changed_data
*  IMPORTING
*    E_VALID   =
*  CHANGING
*    C_REFRESH = 'X'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i still cant get result. What do i miss?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 10:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107003#M1617055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-06T10:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: class alv refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107004#M1617056</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;After setting the grid for first display, create an instance for the Event handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CREATE OBJECT g_event_handler.&lt;/P&gt;&lt;P&gt; SET HANDLER g_event_handler-&amp;gt;data_changed&lt;/P&gt;&lt;P&gt;                   FOR alvgrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in implementation of the method, try to change the data as per your requirement and modify the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT fp_er_data_changed-&amp;gt;mt_good_cells INTO wa_good_cell.&lt;/P&gt;&lt;P&gt;      READ TABLE it_data INDEX wa_good_cell-row_id.&lt;/P&gt;&lt;P&gt;        .......&lt;/P&gt;&lt;P&gt;        .......&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 11:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107004#M1617056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-06T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: class alv refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107005#M1617057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i create a new empty line, the debugger falls into this LOOP.&lt;/P&gt;&lt;P&gt;But when i write some values into this new line and press enter, debugger doesnt fall into this LOOP.&lt;/P&gt;&lt;P&gt;Thats why i cant update my non-editable column according to my editable column in this new line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 13:08:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-alv-refresh-problem/m-p/8107005#M1617057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-06T13:08:01Z</dc:date>
    </item>
  </channel>
</rss>

