<?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 FCODE in Method HANDLE_ITEM_CHANGED in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fcode-in-method-handle-item-changed/m-p/6406043#M1407037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the push of save button call the following method of the class cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD g_grid-&amp;gt;check_changed_data&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_valid   = w_valid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     c_refresh = c_x&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that you can suppress the log message from coming by calling following method inside the handler of event DATA_CHANGED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL METHOD us_data_changed-&amp;gt;refresh_protocol .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this and this had worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Avinash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2009 13:01:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-20T13:01:46Z</dc:date>
    <item>
      <title>ALV FCODE in Method HANDLE_ITEM_CHANGED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fcode-in-method-handle-item-changed/m-p/6406041#M1407035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm calling the following method from my ALV grid to handle editable fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      HANDLE_ITEM_CHANGED&lt;/P&gt;&lt;P&gt;            FOR EVENT DATA_CHANGED_FINISHED&lt;/P&gt;&lt;P&gt;                            OF CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt;                     IMPORTING E_MODIFIED&lt;/P&gt;&lt;P&gt;                               ET_GOOD_CELLS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only want to check these changes when a new SAVE button is pushed on the tool bar. How do I check the FCODE for when this button is pressed so the method is only invoked at this button push?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Mart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 10:56:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fcode-in-method-handle-item-changed/m-p/6406041#M1407035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T10:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV FCODE in Method HANDLE_ITEM_CHANGED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fcode-in-method-handle-item-changed/m-p/6406042#M1407036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Halo Mart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please set a flag when the user presses SAVE Button .&lt;/P&gt;&lt;P&gt;Inside the event handler method of data change u add one more method like perform_checks passing e_data_changed to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if my_save_flag eq abap_true .&lt;/P&gt;&lt;P&gt;perform_checks( er_data_changed ).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside this perform_checks method you can do all the validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more idea is you can check for sy-ucomm eq 'SAVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arshad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 11:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fcode-in-method-handle-item-changed/m-p/6406042#M1407036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T11:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: ALV FCODE in Method HANDLE_ITEM_CHANGED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fcode-in-method-handle-item-changed/m-p/6406043#M1407037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the push of save button call the following method of the class cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD g_grid-&amp;gt;check_changed_data&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_valid   = w_valid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     c_refresh = c_x&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that you can suppress the log message from coming by calling following method inside the handler of event DATA_CHANGED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL METHOD us_data_changed-&amp;gt;refresh_protocol .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this and this had worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Avinash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 13:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fcode-in-method-handle-item-changed/m-p/6406043#M1407037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T13:01:46Z</dc:date>
    </item>
  </channel>
</rss>

