<?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 Need help using method check_changed_data correctly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-method-check-changed-data-correctly/m-p/1798982#M343144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using method check_changed_data in my ALV program to update the grid with changes the user makes. The method works fine for this purpose. But I also want to know if any data actually changed. Can anyone give me an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM update_vendor .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do I need to call a different method before check_changed_data ?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method gridhead-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; is there a parameter available here to see if anything actually &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         changed?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at gt_head into wa_head.&lt;/P&gt;&lt;P&gt;    clear wa_head-lifnam.&lt;/P&gt;&lt;P&gt;    select single name1 into wa_head-lifnam&lt;/P&gt;&lt;P&gt;      from LFA1 where lifnr eq wa_head-lifnr.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      modify gt_head from wa_head.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " update_vendor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Dec 2006 18:44:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-13T18:44:53Z</dc:date>
    <item>
      <title>Need help using method check_changed_data correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-method-check-changed-data-correctly/m-p/1798982#M343144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using method check_changed_data in my ALV program to update the grid with changes the user makes. The method works fine for this purpose. But I also want to know if any data actually changed. Can anyone give me an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM update_vendor .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do I need to call a different method before check_changed_data ?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method gridhead-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; is there a parameter available here to see if anything actually &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         changed?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at gt_head into wa_head.&lt;/P&gt;&lt;P&gt;    clear wa_head-lifnam.&lt;/P&gt;&lt;P&gt;    select single name1 into wa_head-lifnam&lt;/P&gt;&lt;P&gt;      from LFA1 where lifnr eq wa_head-lifnr.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      modify gt_head from wa_head.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " update_vendor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 18:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-method-check-changed-data-correctly/m-p/1798982#M343144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T18:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using method check_changed_data correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-method-check-changed-data-correctly/m-p/1798983#M343145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Beth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If data have been changed then method &amp;lt;b&amp;gt;go_grid-&amp;gt;CHECK_CHANGED_DATA&amp;lt;/b&amp;gt; will raise event &amp;lt;b&amp;gt;DATA_CHANGED&amp;lt;/b&amp;gt;. If you have an event handler method like HANDLE_DATA_CHANGED then you can, for example, validate the changes. &lt;/P&gt;&lt;P&gt;If no data were changed event DATA_CHANGED will not be raised and your event handler method will not be called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 20:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-method-check-changed-data-correctly/m-p/1798983#M343145</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-12-13T20:20:54Z</dc:date>
    </item>
  </channel>
</rss>

