<?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 Event check_data_changed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-check-data-changed/m-p/3783322#M910279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where i need to change the the records and create a new records in GRId.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am referrering the standard programs BCALV_GRID_03 &amp;amp; BCALV_GRID_04.&lt;/P&gt;&lt;P&gt;But there the event check_data_changed is triggering only at the time SAVE button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So where iam creating 3 records and changing the two records, if there are 3 errorneous records it showing only at the time of saving SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to restrict the following error when we are entering to the next record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the errors are able to see at the last.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know is there is any option to check at the time of entry itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2008 06:05:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-25T06:05:51Z</dc:date>
    <item>
      <title>Event check_data_changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-check-data-changed/m-p/3783322#M910279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where i need to change the the records and create a new records in GRId.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am referrering the standard programs BCALV_GRID_03 &amp;amp; BCALV_GRID_04.&lt;/P&gt;&lt;P&gt;But there the event check_data_changed is triggering only at the time SAVE button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So where iam creating 3 records and changing the two records, if there are 3 errorneous records it showing only at the time of saving SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to restrict the following error when we are entering to the next record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the errors are able to see at the last.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know is there is any option to check at the time of entry itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 06:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-check-data-changed/m-p/3783322#M910279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T06:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Event check_data_changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-check-data-changed/m-p/3783323#M910280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Madhavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call method go_grid-&amp;gt;&lt;STRONG&gt;REGISTER_EDIT_EVENT&lt;/STRONG&gt;. The effect is that when the user pushes the ENTER button event DATA_CHANGED is triggered.&lt;/P&gt;&lt;P&gt;There is no possibility to check the data when they are being entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
  CALL METHOD go_grid-&amp;gt;register_edit_event
    EXPORTING
      i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter
    EXCEPTIONS
      error      = 1
      OTHERS     = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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>Fri, 25 Apr 2008 06:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-check-data-changed/m-p/3783323#M910280</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-04-25T06:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Event check_data_changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-check-data-changed/m-p/3783324#M910281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mean to say that  to check a record at entry level &lt;/P&gt;&lt;P&gt;is only option to ENTER button  after entering every record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what you suggest to change and create records at GRID level or&lt;/P&gt;&lt;P&gt;change/create  the records in other screen.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 06:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-check-data-changed/m-p/3783324#M910281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T06:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Event check_data_changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-check-data-changed/m-p/3783325#M910282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Madhavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Visual Basic forms you have the possibility to check then entered data because there are events available like KeyPress. Thus, you can validate immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the grid control we do not have this option (at least I am not aware of it). Therefore the user has to trigger the DATA_CHANGED event by pushing ENTER or a function button like SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the same behaviour like we have in maintenance views. You can always enter wrong data (e.g. if you have foreign key relationships). As long as you do not push ENTER (i.e. trigger PAI -&amp;gt; validations) the SAP system does not even "know" that you entered wrong data.&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>Fri, 25 Apr 2008 06:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-check-data-changed/m-p/3783325#M910282</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-04-25T06:40:36Z</dc:date>
    </item>
  </channel>
</rss>

