<?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-Grid (OO): trigger event CHANGED_DATA when creating/filling grid table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770111#M1306379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The internal method 'set_delta_cells' is working for me. I've figured out, the best way should be to do call the method 'check_changed_data' before and after you call it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I'm doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Call 'check_changed_data' to get all fields changed by the user to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Search internal table for wrong (initial in my case) fields which are not changed by the user and call 'set_delta_cells' for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Call 'check_changed_data' again, and now the fields are processed in the data changed event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2009 13:52:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-22T13:52:21Z</dc:date>
    <item>
      <title>ALV-Grid (OO): trigger event CHANGED_DATA when creating/filling grid table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770108#M1306376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a grid table being filled of which I know, that it doesn't contain all necessary data to allow the user to continue.&lt;/P&gt;&lt;P&gt;As there are no mandatory flags to the fields I want to call a method (e.g. SET_DELTA_CELLS: it's marked INTERNAL only and doesn't seam to work anyway) to emulate user input or just trigger the event DATA_CHANGED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also thought about using method ADD_ROWS, but I don't need excess rows that I need to remove again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What other possibilities are there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 10:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770108#M1306376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T10:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-Grid (OO): trigger event CHANGED_DATA when creating/filling grid table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770109#M1306377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello alan , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what u can do is when user press ENTER on the screen then u can call methid check_data_changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can trigger that event only when user enters do some actions like ENTER or any other Function Codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user_command.&lt;/P&gt;&lt;P&gt; case 'ENTER'.&lt;/P&gt;&lt;P&gt;*---LOCALS.&lt;/P&gt;&lt;P&gt;  data: l_stable type lvc_s_stbl.&lt;/P&gt;&lt;P&gt;*---refresh locals.&lt;/P&gt;&lt;P&gt;  clear: l_stable.&lt;/P&gt;&lt;P&gt;  call method g_grid%-&amp;gt;check_changed_data.00--&amp;gt;in this method u can do validations based on the user inputs.&lt;/P&gt;&lt;P&gt;*---softrefresh.&lt;/P&gt;&lt;P&gt;  l_stable-row = 1.&lt;/P&gt;&lt;P&gt;  l_stable-col = 1.&lt;/P&gt;&lt;P&gt;  call method g_grid%-&amp;gt;refresh_table_display&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      is_stable      = l_stable&lt;/P&gt;&lt;P&gt;      i_soft_refresh = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 10:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770109#M1306377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T10:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-Grid (OO): trigger event CHANGED_DATA when creating/filling grid table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770110#M1306378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer. &lt;/P&gt;&lt;P&gt;Alas, it would require the user to actively change a field and press ENTER or change a cell in order for DATA_CHANGED to being fired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point is, that I need to check certain data independent of user action (change of cell data). If the user presses the save/ok/continue button he must not be allowed to continue unless all data of the grid is filled where required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 10:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770110#M1306378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T10:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-Grid (OO): trigger event CHANGED_DATA when creating/filling grid table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770111#M1306379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The internal method 'set_delta_cells' is working for me. I've figured out, the best way should be to do call the method 'check_changed_data' before and after you call it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I'm doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Call 'check_changed_data' to get all fields changed by the user to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Search internal table for wrong (initial in my case) fields which are not changed by the user and call 'set_delta_cells' for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Call 'check_changed_data' again, and now the fields are processed in the data changed event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 13:52:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770111#M1306379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T13:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-Grid (OO): trigger event CHANGED_DATA when creating/filling grid table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770112#M1306380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Prabhu,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; thanks for your answer. &lt;/P&gt;&lt;P&gt;&amp;gt; Alas, it would require the user to actively change a field and press ENTER or change a cell in order for DATA_CHANGED to being fired.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; The point is, that I need to check certain data independent of user action (change of cell data). If the user presses the save/ok/continue button he must not be allowed to continue unless all data of the grid is filled where required.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; regards&lt;/P&gt;&lt;P&gt;&amp;gt; Alan&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;You could write a subroutine which will do all the validations and call this subroutine for every user action for which you think the data should be validated. You could pass the old and new table to this subroutine and compare the values to see if the requirement is fulfilled and the data is valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 14:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770112#M1306380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T14:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-Grid (OO): trigger event CHANGED_DATA when creating/filling grid table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770113#M1306381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the method CHECK_CHANGED_DATA of the CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    o_alv-&amp;gt;check_changed_data(
      IMPORTING
        e_valid = lf_valid ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method calls the SAVE_DATA and in turn SAVE_DATA will trigger the DATA_CHANGED event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 14:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770113#M1306381</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-06-22T14:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-Grid (OO): trigger event CHANGED_DATA when creating/filling grid table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770114#M1306382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is, the changed_data event will contain only fields which are actually changed by the user - this can be emulated with the set_delta_cells method, as stated before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 14:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-trigger-event-changed-data-when-creating-filling-grid-table/m-p/5770114#M1306382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T14:17:10Z</dc:date>
    </item>
  </channel>
</rss>

