<?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: ALV edit not capturing new value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-edit-not-capturing-new-value/m-p/6144420#M1367522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;lv_ref_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : gv_tcode.&lt;/P&gt;&lt;P&gt;*-- to ensure that only new processed data is displayed&lt;/P&gt;&lt;P&gt;IF lv_ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;e_grid = lv_ref_grid.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF NOT lv_ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;CALL METHOD lv_ref_grid-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THis will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2009 05:37:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-16T05:37:22Z</dc:date>
    <item>
      <title>ALV edit not capturing new value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-edit-not-capturing-new-value/m-p/6144419#M1367521</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 my alv i have made one field as editable..when i edit the field and click save button the control comes to below code.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD gro_grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      et_index_rows = gwa_selected_rows.&lt;/P&gt;&lt;P&gt;*Through the index capturing the values of selected rows&lt;/P&gt;&lt;P&gt;  LOOP AT gwa_selected_rows INTO gv_selected_rows.&lt;/P&gt;&lt;P&gt;    READ TABLE git_data INTO gwa_data INDEX gv_selected_rows-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here git_data is the internal table given to alv grid...i nthe above read stmt..gwa_data gives the value in field as old one..its not capturing the new value..how to solve this ..pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 05:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-edit-not-capturing-new-value/m-p/6144419#M1367521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T05:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV edit not capturing new value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-edit-not-capturing-new-value/m-p/6144420#M1367522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;lv_ref_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : gv_tcode.&lt;/P&gt;&lt;P&gt;*-- to ensure that only new processed data is displayed&lt;/P&gt;&lt;P&gt;IF lv_ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;e_grid = lv_ref_grid.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF NOT lv_ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;CALL METHOD lv_ref_grid-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THis will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 05:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-edit-not-capturing-new-value/m-p/6144420#M1367522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T05:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV edit not capturing new value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-edit-not-capturing-new-value/m-p/6144421#M1367523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use event data_changed. &lt;/P&gt;&lt;P&gt;When 'SAVE' is pressed, call check_changed_data( ) which will trigger event data_changed.&lt;/P&gt;&lt;P&gt;Inside handler method copy the modified cells to table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PAI&lt;/P&gt;&lt;P&gt;When 'SAVE'.&lt;/P&gt;&lt;P&gt;g_o_grid-&amp;gt;check_changed_data( ).  " It triggers event 'data_changed'.&lt;/P&gt;&lt;P&gt;LOOP AT g_t_modcells INTO g_r_modcells.   " Loop at modified cells table&lt;/P&gt;&lt;P&gt;READ TABLE git_data INTO gwa_data INDEX g_r_modcells-row_id .      " &amp;lt;---- Ur code&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;clear: g_t_modcells[],g_t_modcell[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Declare data for handler method.&lt;/P&gt;&lt;P&gt;Data:  g_t_modcells type lvc_t_modi,&lt;/P&gt;&lt;P&gt;          g_t_modcell type lvc_t_modi.&lt;/P&gt;&lt;P&gt;*Declare handler method for event 'data_changed'.&lt;/P&gt;&lt;P&gt;METHODS: data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING er_data_changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Handler method implementation&lt;/P&gt;&lt;P&gt;  METHOD data_changed.&lt;/P&gt;&lt;P&gt;    IF er_data_changed-&amp;gt;mt_good_cells[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      g_t_modcell[] = er_data_changed-&amp;gt;mt_good_cells[].&lt;/P&gt;&lt;P&gt;      APPEND LINES OF g_t_modcell TO g_t_modcells.  " Modified cells are copied to table g_t_modcells[]&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 06:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-edit-not-capturing-new-value/m-p/6144421#M1367523</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-09-16T06:05:49Z</dc:date>
    </item>
  </channel>
</rss>

