<?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: Reg: ALV Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-problem/m-p/6240489#M1382078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="12" __jive_macro_name="size"&gt;Hi,

I think you should use a method : CHECH_CHANGED_DATA before updating any table. This method you will find in class CL_GUI_ALV_GRID.

 CALL METHOD grid-&amp;gt;check_changed_data
              IMPORTING
                E_VALID   = l_valid1.
 where l_valid1 is of type c.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2009 08:29:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-22T08:29:15Z</dc:date>
    <item>
      <title>Reg: ALV Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-problem/m-p/6240485#M1382074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a ALV program using "REUSE_ALV_GRID_DISPLAY" function module that will give edit option for particular fields and user will edit the fields and save the entry, then it will reflect in the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is: when i changed any entry in the ALV output, if i save directly after edition it is not getting reflected in the internal table but if i double click the entry then it is getting reflected in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i found some forums like "need to refresh the ALV" , i have done using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;        selfield-col_stable = 'X'.&lt;/P&gt;&lt;P&gt;        selfield-row_stable = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is not reflected,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone guied me how to acheive the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected result: After changed any entry, if i save the entry without double clicking, it should get reflected in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Vijay.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 07:02:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-problem/m-p/6240485#M1382074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T07:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: ALV Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-problem/m-p/6240486#M1382075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this in Interactive section even if you are doing simple ALV.&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>Tue, 22 Sep 2009 07:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-problem/m-p/6240486#M1382075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T07:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: ALV Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-problem/m-p/6240487#M1382076</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;Try in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Sy-ucomm, when you click the SAVE button, call the method like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;DATA w_ref1 TYPE REF TO cl_gui_alv_grid.&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 = w_ref1.&lt;/P&gt;&lt;P&gt;CALL METHOD w_ref1-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD w_ref1-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will help u...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 07:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-problem/m-p/6240487#M1382076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T07:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: ALV Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-problem/m-p/6240488#M1382077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot vijay and selva..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 07:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-problem/m-p/6240488#M1382077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T07:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: ALV Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-problem/m-p/6240489#M1382078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="12" __jive_macro_name="size"&gt;Hi,

I think you should use a method : CHECH_CHANGED_DATA before updating any table. This method you will find in class CL_GUI_ALV_GRID.

 CALL METHOD grid-&amp;gt;check_changed_data
              IMPORTING
                E_VALID   = l_valid1.
 where l_valid1 is of type c.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 08:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-alv-problem/m-p/6240489#M1382078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T08:29:15Z</dc:date>
    </item>
  </channel>
</rss>

