<?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: Problem with an editable alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465359#M832885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chitra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already done this  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put a break-point in the event handle_data_changed and found that the data is getting deleted from the alv-grid even before coming to this event .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushanth H.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 09:24:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-06T09:24:19Z</dc:date>
    <item>
      <title>Problem with an editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465355#M832881</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;I have an editable alv with a delete button in the editable alv .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click on the delete button , I want to give a pop up which says whether you want to delete the data or not .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes , I will allow the system to delete the data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no, it should not delete the data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a method called handle_data_changed in the alv , but data is getting deleted from the alv even before going to this method .I checked it in the debugger .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could someone help me out with how I can perform this task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushanth H.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 07:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465355#M832881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T07:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465356#M832882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understanding, You will have a check box to select the data that is to be deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you select , the Final table that is used to display the ALV gets automatically changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that event , ( dont forget to register tat event )&lt;/P&gt;&lt;P&gt;get the selected rows&lt;/P&gt;&lt;P&gt;raise a pop up for confirmation &lt;/P&gt;&lt;P&gt;Delete the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 08:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465356#M832882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T08:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465357#M832883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chitra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know which is the event that has to be registered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushanth H.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 08:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465357#M832883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T08:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465358#M832884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add  this to your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**- Register events&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_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;**- Event Receiver&lt;/P&gt;&lt;P&gt;  CREATE OBJECT o_event_receiver.&lt;/P&gt;&lt;P&gt;  SET HANDLER o_event_receiver-&amp;gt;handle_data_changed FOR o_alvgrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 09:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465358#M832884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T09:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465359#M832885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chitra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already done this  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put a break-point in the event handle_data_changed and found that the data is getting deleted from the alv-grid even before coming to this event .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushanth H.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 09:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465359#M832885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T09:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465360#M832886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type /h which starts t debugging mode when in the ALV GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You select the row that is to be deleted in the ALV grid and click on the grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is because the Event Handle_data_changed will initiate only after a operation after selecting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will lead to the code part where you hav written the Method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert if any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 10:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465360#M832886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T10:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465361#M832887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try calling the &lt;STRONG&gt;before_user_command&lt;/STRONG&gt; event... and in that check whether the delete button has been pressed. if yes, show the popup... if the user selects "No" then change the e_ucomm to space so that nothing happens after this event.&lt;/P&gt;&lt;P&gt;&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;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-editable-alv/m-p/3465361#M832887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T13:48:07Z</dc:date>
    </item>
  </channel>
</rss>

