<?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: Changed GRID data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changed-grid-data/m-p/4380884#M1042223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the user command form you have code for it. Before that you take the Backup of the internal table before calling the ALV function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do some thing like this..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
 
  DATA: gd_repid LIKE sy-repid, "Exists
  ref_grid TYPE REF TO cl_gui_alv_grid.
  IF ref_grid IS INITIAL.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
      IMPORTING
        e_grid = ref_grid.
  ENDIF.
  IF NOT ref_grid IS INITIAL.
    CALL METHOD ref_grid-&amp;gt;check_changed_data .
  ENDIF.
 
  LOOP AT itab 
   read table it_backup = itab.
   if sy-subrc ne 0.
    append itab to it_update.
    endif.
  ENDLOOP.
   "use it_update and update the data to database.
   "it_update will have only changed records.
  clear it_backup.
  it_backup = itab.
  rs_selfield-refresh = 'X'.
  BREAK-POINT.
 
ENDFORM. "USER_COMMAND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2008 13:18:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-21T13:18:46Z</dc:date>
    <item>
      <title>Changed GRID data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changed-grid-data/m-p/4380882#M1042221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;in Editable ALV Grid some rows i changed , and is i save that i need that records should be save in one another database table , so how we can get taht changed records in to one internal table.&lt;/P&gt;&lt;P&gt;Please give me solution with one example . &lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 13:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changed-grid-data/m-p/4380882#M1042221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T13:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Changed GRID data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changed-grid-data/m-p/4380883#M1042222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="977713"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 13:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changed-grid-data/m-p/4380883#M1042222</guid>
      <dc:creator>former_member745780</dc:creator>
      <dc:date>2008-08-21T13:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changed GRID data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changed-grid-data/m-p/4380884#M1042223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the user command form you have code for it. Before that you take the Backup of the internal table before calling the ALV function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do some thing like this..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
 
  DATA: gd_repid LIKE sy-repid, "Exists
  ref_grid TYPE REF TO cl_gui_alv_grid.
  IF ref_grid IS INITIAL.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
      IMPORTING
        e_grid = ref_grid.
  ENDIF.
  IF NOT ref_grid IS INITIAL.
    CALL METHOD ref_grid-&amp;gt;check_changed_data .
  ENDIF.
 
  LOOP AT itab 
   read table it_backup = itab.
   if sy-subrc ne 0.
    append itab to it_update.
    endif.
  ENDLOOP.
   "use it_update and update the data to database.
   "it_update will have only changed records.
  clear it_backup.
  it_backup = itab.
  rs_selfield-refresh = 'X'.
  BREAK-POINT.
 
ENDFORM. "USER_COMMAND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 13:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changed-grid-data/m-p/4380884#M1042223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T13:18:46Z</dc:date>
    </item>
  </channel>
</rss>

