<?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 modifying cell content in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608599#M273084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hanks for the suggetions .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I add the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD w_grid-&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;My earlier statements to display the error messages from &lt;/P&gt;&lt;P&gt;CL_ALV_CHANGED_DATA_PROTOCOL are not working (CL_ALV_CHANGED_DATA_PROTOCOL=&amp;gt;ADD_PROTOCOL_ENTRY).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I comment &lt;/P&gt;&lt;P&gt;CALL METHOD w_grid-&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;and press enter then the error messages in the popup window are displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using CL_GUI_CFW=FLUSH also. But it also not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why CL_ALV_CHANGED_DATA_PROTOCOL=&amp;gt;ADD_PROTOCOL_ENTRY is not working when i add mc_evt_modified  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2006 20:33:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-13T20:33:44Z</dc:date>
    <item>
      <title>ALV grid modifying cell content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608594#M273079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I'm woking on a class based ALV GRID program.&lt;/P&gt;&lt;P&gt;In it i have to change the content of one cell when another cell content is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done the using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;1.Handle data changed in grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  METHOD handle_data_changed.&lt;/P&gt;&lt;P&gt;    PERFORM data_changed USING er_data_changed.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*2&lt;/P&gt;&lt;P&gt;DAta :  pw_data_changed2 TYPE REF TO&lt;/P&gt;&lt;P&gt;cl_alv_changed_data_protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD pw_data_changed2-&amp;gt;modify_cell&lt;/P&gt;&lt;P&gt;                  EXPORTING i_tabix     = pwl_row_id&lt;/P&gt;&lt;P&gt;                            i_fieldname = pw_fldname&lt;/P&gt;&lt;P&gt;                            i_value     = pw_fldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the cell contents are changing  only when i press enter button. Is there any way as soon as i change the contents of one cell other cell contents also changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 15:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608594#M273079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T15:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid modifying cell content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608595#M273080</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 to use the method to refresh the output table: REFRESH_TABLE_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 15:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608595#M273080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T15:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid modifying cell content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608596#M273081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After calling the method   CALL METHOD o_alvgrid-&amp;gt;set_table_for_first_display....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Register events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD o_alvgrid-&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_enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD o_alvgrid-&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;In ALV, atleast u have to Press a tab or press enter to activate the ALV event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 15:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608596#M273081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T15:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid modifying cell content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608597#M273082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for your problems is that you first have to pass PAI (followed by PBO) before your changes are reflected on the ALV grid. That's why you have to press the ENTER button.&lt;/P&gt;&lt;P&gt;However, you can force the ALV to go through PAI/PBO. After having changed the cell contents call method &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CL_GUI_CFW=&amp;gt;SET_NEW_OK_CODE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; (e.g. with ENTER as ok-code).&lt;/P&gt;&lt;P&gt;After your event handling methods have finished the control framework will call PAI of the dynpro with the newly set ok-code. You don't have to handle this ok-code at all, it is just required to pass PAI followed by PBO.&lt;/P&gt;&lt;P&gt;Perhaps in the PBO modules it may be necessary to call &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CL_GUI_CFW=FLUSH&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; to ensure that the control displays the most current 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>Mon, 11 Sep 2006 20:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608597#M273082</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-09-11T20:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid modifying cell content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608598#M273083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the below examples in your system for reference,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;BCALV_EDIT_01&amp;lt;/b&amp;gt; This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;BCALV_EDIT_02&amp;lt;/b&amp;gt; This report illustrates how to set chosen cells of an ALV Grid Control editable.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azaz Ali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 20:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608598#M273083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T20:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid modifying cell content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608599#M273084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hanks for the suggetions .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I add the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD w_grid-&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;My earlier statements to display the error messages from &lt;/P&gt;&lt;P&gt;CL_ALV_CHANGED_DATA_PROTOCOL are not working (CL_ALV_CHANGED_DATA_PROTOCOL=&amp;gt;ADD_PROTOCOL_ENTRY).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I comment &lt;/P&gt;&lt;P&gt;CALL METHOD w_grid-&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;and press enter then the error messages in the popup window are displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using CL_GUI_CFW=FLUSH also. But it also not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why CL_ALV_CHANGED_DATA_PROTOCOL=&amp;gt;ADD_PROTOCOL_ENTRY is not working when i add mc_evt_modified  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 20:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608599#M273084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T20:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid modifying cell content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608600#M273085</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;This doesn't work. It seems that the ALV is out of the loop once the focus is not set on it anymore. My impression is that once the focus is lost, the control itself should check and trigger the changed_data event. This is actually quite a bug, isn't it? Things are especially bad when several docking containers are on the same page, because there it doesn't make sense for the user to press enter after setting the focus on the alv grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to make the method SAVE_DATA of the class cl_gui_alv_grid public so that I trigger the check myself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to inherit the cl_gui_alv_grid or to copy it but the modifications are extensive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ioan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 08:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608600#M273085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T08:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid modifying cell content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608601#M273086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer to this question can be found in looking the function group SE16N:&lt;/P&gt;&lt;P&gt;the method &lt;/P&gt;&lt;P&gt;go_alv_hck-&amp;gt;check_changed_data&lt;/P&gt;&lt;P&gt;can be called to check the consistency, even if the user did not press Enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ioan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 13:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifying-cell-content/m-p/1608601#M273086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T13:57:44Z</dc:date>
    </item>
  </channel>
</rss>

