<?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 OO: How to remove all DELETE/ INSERT/ COPY functionality in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360617#M1400353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Halo Sebastien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to remove the toolbar buttons , you can do that in the event handler method of event toolbar &lt;/P&gt;&lt;P&gt;of cl_gui_alv_grid. But as you say this will not prevent the user from deleting using keyboard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do one more thing &lt;/P&gt;&lt;P&gt;In the data changed event handler you have er_data_changed-&amp;gt;mt_deleted_rows .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If er_data_changed-&amp;gt;mt_deleted_rows is not initial.&lt;/P&gt;&lt;P&gt;you add a error message entry thru add_protocol method of er_data_changed&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Nov 2009 21:50:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-26T21:50:18Z</dc:date>
    <item>
      <title>ALV OO: How to remove all DELETE/ INSERT/ COPY functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360612#M1400348</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 developed an editable ALV and I automatically got the Buttons for DELETE/ INSERT/ COPY of lines. My problem is that I don´t want to have these functions. The User is only supposed to enter values and not to modify anything else.&lt;/P&gt;&lt;P&gt;It seems to me that I always get these Buttons when I have editable fields in my GRID. (Maybe I´m wrong) So my first approach was to exclude them from the toolbar. Now the buttons are gone, but &lt;STRONG&gt;I can still delete lines with the 'DEL'-Button on the keyboard.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I have editable cells without getting automatically those buttons/functions ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;OR IF THIS IS NOT POSSIBLE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I &lt;U&gt;completely&lt;/U&gt; remove those Functions ? &lt;EM&gt;Please regard that it does not work via exclude table of function codes! Keyboard buttons are still working.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 10:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360612#M1400348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T10:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OO: How to remove all DELETE/ INSERT/ COPY functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360613#M1400349</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;In the Method &lt;STRONG&gt;set_table_for_first_display&lt;/STRONG&gt;  we have an exporting parameter &lt;STRONG&gt;IT_TOOLBAR_EXCLUDING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cl_gui_alv_grid&lt;/STRONG&gt; has &lt;STRONG&gt;mc_fc_loc_copy_row mc_fc_loc_delete_row mc_fc_loc_append_row&lt;/STRONG&gt; as Static Attribute &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go through for all other Static Attributes in the Above class append to an ITAB and pass to the Method mentioned above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 10:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360613#M1400349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T10:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OO: How to remove all DELETE/ INSERT/ COPY functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360614#M1400350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not solved yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The keyboard buttons f.i. "DELETE" are still working!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sebastian Becker on Nov 26, 2009 1:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 12:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360614#M1400350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T12:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OO: How to remove all DELETE/ INSERT/ COPY functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360615#M1400351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below are the 2 methods using for disable/enable the cells in an ALV grid o/p.&lt;/P&gt;&lt;P&gt;cl_gui_alv_grid=&amp;gt;mc_style_disabled.&lt;/P&gt;&lt;P&gt;Use attribute CL_GUI_ALV_GRID=&amp;gt;MC_STYLE_ENABLED to set a cell to status "editable".&lt;/P&gt;&lt;P&gt;Use attribute CL_GUI_ALV_GRID=&amp;gt;MC_STYLE_DISABLED to set a cell to status "non-editable".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per my knowledge, you want to edit cells with out any buttons. anythingelse youwant to done in this program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;christy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 13:05:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360615#M1400351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T13:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OO: How to remove all DELETE/ INSERT/ COPY functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360616#M1400352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can create your own PF status and set it with method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy PF status from any standard program , delete unwanted functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now set this in you report.Hope you get it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 15:33:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360616#M1400352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T15:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OO: How to remove all DELETE/ INSERT/ COPY functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360617#M1400353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Halo Sebastien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to remove the toolbar buttons , you can do that in the event handler method of event toolbar &lt;/P&gt;&lt;P&gt;of cl_gui_alv_grid. But as you say this will not prevent the user from deleting using keyboard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do one more thing &lt;/P&gt;&lt;P&gt;In the data changed event handler you have er_data_changed-&amp;gt;mt_deleted_rows .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If er_data_changed-&amp;gt;mt_deleted_rows is not initial.&lt;/P&gt;&lt;P&gt;you add a error message entry thru add_protocol method of er_data_changed&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 21:50:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oo-how-to-remove-all-delete-insert-copy-functionality/m-p/6360617#M1400353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T21:50:18Z</dc:date>
    </item>
  </channel>
</rss>

