<?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 Editable ALV -- OO -- Changed data capture in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-oo-changed-data-capture/m-p/6612107#M1439144</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;I'm using an editable ALV to display the output. Output has a field for the user to enter comments. When the user enters the comments and presses "ENTER" key or clicks somewhere else on the ALV itself, the event DATA_CHANGED or DATA_CHANGED_FINISHED gets triggered and I'm able to capture the changed data and update the DB table.(I have a "SAVE" button on the menu bar which when pressed will update the ALV values into DB table.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I need to capture this changed data even if the user does not press the "ENTER" key or clicks somewhere else on the ALV, but just presses the "SAVE" button.  Please let me know if there is any way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2010 10:14:31 GMT</pubDate>
    <dc:creator>abapdeveloper20</dc:creator>
    <dc:date>2010-02-09T10:14:31Z</dc:date>
    <item>
      <title>Editable ALV -- OO -- Changed data capture</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-oo-changed-data-capture/m-p/6612107#M1439144</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;I'm using an editable ALV to display the output. Output has a field for the user to enter comments. When the user enters the comments and presses "ENTER" key or clicks somewhere else on the ALV itself, the event DATA_CHANGED or DATA_CHANGED_FINISHED gets triggered and I'm able to capture the changed data and update the DB table.(I have a "SAVE" button on the menu bar which when pressed will update the ALV values into DB table.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I need to capture this changed data even if the user does not press the "ENTER" key or clicks somewhere else on the ALV, but just presses the "SAVE" button.  Please let me know if there is any way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 10:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-oo-changed-data-capture/m-p/6612107#M1439144</guid>
      <dc:creator>abapdeveloper20</dc:creator>
      <dc:date>2010-02-09T10:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV -- OO -- Changed data capture</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-oo-changed-data-capture/m-p/6612108#M1439145</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;in your program check the user-command if 'SAVE' then write the following code in it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Call the method check_changed_data to update the  internal table with changed data.&lt;/P&gt;&lt;P&gt;DATA: lv_valid TYPE xfeld,&lt;/P&gt;&lt;P&gt;            lv_refresh TYPE xfeld.&lt;/P&gt;&lt;P&gt;      CALL METHOD gv_alv_grid-&amp;gt;check_changed_data&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          e_valid   = lv_valid&lt;/P&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;          c_refresh = lv_refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" to refresh alv&lt;/P&gt;&lt;P&gt; CALL METHOD gv_alv_grid-&amp;gt;refresh_table_display&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          finished = 1&lt;/P&gt;&lt;P&gt;          OTHERS   = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by this way it the internal table will get the changed data and then you can update it in the DB and also after updating show the ALV since it is refreshed it will now show the changed data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijit G. Borkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 10:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-oo-changed-data-capture/m-p/6612108#M1439145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T10:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV -- OO -- Changed data capture</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-oo-changed-data-capture/m-p/6612109#M1439146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshmiraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing same problem. can you please let me know what was the solution for the same ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-oo-changed-data-capture/m-p/6612109#M1439146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-31T12:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV -- OO -- Changed data capture</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-oo-changed-data-capture/m-p/6612110#M1439147</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;my favorite way is to activate extra events for edit mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*   ENTER key is pressed or
    CALL METHOD go_grid-&amp;gt;register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.

*   data is changed and cursor is moved from the cell
    CALL METHOD go_grid-&amp;gt;register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look here for a complete example:&lt;/P&gt;&lt;P&gt;[http://www.kerum.pl/infodepot/00006|http://www.kerum.pl/infodepot/00006]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-oo-changed-data-capture/m-p/6612110#M1439147</guid>
      <dc:creator>krzysztof_murkowski2</dc:creator>
      <dc:date>2011-03-31T12:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV -- OO -- Changed data capture</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-oo-changed-data-capture/m-p/6612111#M1439148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Laxmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the method check_changed_data from class cl_gui_alv_grid in the PAI of your Save button or can check upon user commande for "SAVE" and then refresh your table grid disaply and all the updated data will be there in your internal table and from that you can then update your database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: grid                TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;          l_valid             TYPE char1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD grid-&amp;gt;check_changed_data

    IMPORTING

      e_valid = l_valid.

  IF l_valid IS NOT INITIAL.
*l_valid not initial means data has been changed.

CALL METHOD grid-&amp;gt;refresh_table_display
EXCEPTIONS
finished = 1
OTHERS = 2.

*This method will refresh ALV display on screen.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MBD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 02:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-oo-changed-data-capture/m-p/6612111#M1439148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-01T02:49:55Z</dc:date>
    </item>
  </channel>
</rss>

