<?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: Remove delete option from button 'Layout' ALV grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-delete-option-from-button-layout-alv-grid/m-p/8190547#M1625187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since Layout DELETE button is part of another program, you can't simply exclude it from your ALV grid display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I suppose that layout deletion is possible only from the menu bar using 'Layout Management' and is not possible from the Application toolbar buttons of ALV grid. Also, all other functionalities for layout (new creation, change layout etc ) are possible without using this 'Layout Management' option from menu bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I think you can meet your requirement hiding the 'Layout Management' option itself simply by excluding it from the grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
 gs_excluding-fcode = '&amp;amp;ERW'.
  APPEND gs_excluding TO gt_excluding.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    EXPORTING
...
      it_excluding                      = gt_excluding
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2011 02:11:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-31T02:11:40Z</dc:date>
    <item>
      <title>Remove delete option from button 'Layout' ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-delete-option-from-button-layout-alv-grid/m-p/8190545#M1625185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ALV grid displays the button to change the layout (global/user specific). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user can create his/her own layout variant or change it. However, I would like to hide/remove the option 'Delete layout' from the possible options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 21:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-delete-option-from-button-layout-alv-grid/m-p/8190545#M1625185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T21:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove delete option from button 'Layout' ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-delete-option-from-button-layout-alv-grid/m-p/8190546#M1625186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Henry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; You can do this creating your own Application Toolbar (PF-STATUS) and set it during ALV Grid creation using parameter&lt;/P&gt;&lt;P&gt;i_callback_pf_status_set. Then you can set your own PF-STATUS for this ALVgrid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards&lt;/P&gt;&lt;P&gt;Carlos Machado&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 23:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-delete-option-from-button-layout-alv-grid/m-p/8190546#M1625186</guid>
      <dc:creator>former_member214857</dc:creator>
      <dc:date>2011-08-30T23:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Remove delete option from button 'Layout' ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-delete-option-from-button-layout-alv-grid/m-p/8190547#M1625187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since Layout DELETE button is part of another program, you can't simply exclude it from your ALV grid display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I suppose that layout deletion is possible only from the menu bar using 'Layout Management' and is not possible from the Application toolbar buttons of ALV grid. Also, all other functionalities for layout (new creation, change layout etc ) are possible without using this 'Layout Management' option from menu bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I think you can meet your requirement hiding the 'Layout Management' option itself simply by excluding it from the grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
 gs_excluding-fcode = '&amp;amp;ERW'.
  APPEND gs_excluding TO gt_excluding.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    EXPORTING
...
      it_excluding                      = gt_excluding
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 02:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-delete-option-from-button-layout-alv-grid/m-p/8190547#M1625187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-31T02:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Remove delete option from button 'Layout' ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-delete-option-from-button-layout-alv-grid/m-p/8190548#M1625188</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;&lt;/P&gt;&lt;P&gt;Delete function code of 'Delete' button in the pf status of your alv grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will not get the ''delete' button in your layout&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;anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 06:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-delete-option-from-button-layout-alv-grid/m-p/8190548#M1625188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-31T06:18:03Z</dc:date>
    </item>
  </channel>
</rss>

