<?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: Disabling push buttons on application toolbar in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777521#M335316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure where to find the button name. What exactly is ui_functions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sneha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2006 12:02:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-04T12:02:40Z</dc:date>
    <item>
      <title>Disabling push buttons on application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777517#M335312</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 designed a screen to contain two buttons in the application toolbar. However, the immediate requirement is to just disable these buttons. I tried the following approach but I find that the buttons are completely removed from the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data: itab type table of sy-ucomm.&lt;/P&gt;&lt;P&gt;append 'MODLOG' to itab.&lt;/P&gt;&lt;P&gt;append 'ADDCR' to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set pf-status 'ZS0100' excluding itab.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Is there any alternative method so as to just disable the buttons?&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 11:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777517#M335312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T11:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling push buttons on application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777518#M335313</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;You have to append it in the particular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_excluding-fcode = p_fcode.&lt;/P&gt;&lt;P&gt;  APPEND wa_excluding TO it_excluding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SET PF-STATUS 'ZHCD' EXCLUDING it_excluding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Muthappan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 11:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777518#M335313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T11:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling push buttons on application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777519#M335314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sneha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before calling the method set_table_for_first_display .&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build Exclude functions.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        PERFORM build_exclude_func CHANGING gt_exclude_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Local data declaration&lt;/P&gt;&lt;P&gt;  DATA: ls_exclude TYPE ui_func.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;Give th ebutton name.That u can find in ui_functions.&lt;/P&gt;&lt;P&gt;  APPEND ls_exclude TO pt_exclude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 11:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777519#M335314</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2006-12-04T11:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling push buttons on application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777520#M335315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wa_excluding-fcode = p_fcode.&lt;/P&gt;&lt;P&gt;APPEND wa_excluding TO it_excluding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZHCD' EXCLUDING it_excluding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 11:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777520#M335315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T11:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling push buttons on application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777521#M335316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure where to find the button name. What exactly is ui_functions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sneha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 12:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777521#M335316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T12:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling push buttons on application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777522#M335317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;UI_FUNCTIONS is a table type , goto SE11 and u ll get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what u have to do is :&lt;/P&gt;&lt;P&gt;Goto CL_GUI_ALV_GRID and in attributes u will find the button names and detailed desc , which u want to remove .&lt;/P&gt;&lt;P&gt;So select the required buttons and append the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any further queries , let  me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 12:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777522#M335317</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2006-12-04T12:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling push buttons on application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777523#M335318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hope u rable to disable the buttons ...:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 12:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777523#M335318</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2006-12-04T12:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling push buttons on application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777524#M335319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the approach you have suggested but when I look at the attributes, there are only standard buttons that are mentioned. The two buttons I want to disable are what I have created myself ( custom oush buttons). The requirement is to have the buttons for disabled and later on once their finctionality is clear they will have to be enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Sneha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 04:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777524#M335319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T04:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling push buttons on application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777525#M335320</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;If it is custom button,then go to application in GUI status.There if you double click the button which you designed,you will get the information about the button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 04:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777525#M335320</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-05T04:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling push buttons on application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777526#M335321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;So u want to change tthe GUI status based on some conditions .&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_excluding-fcode = p_fcode." Give the focde for buttons u want to exclude &lt;/P&gt;&lt;P&gt;APPEND wa_excluding TO it_excluding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZHCD' EXCLUDING it_excluding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If condition is met then call :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZHCD' .&lt;/P&gt;&lt;P&gt;also,&lt;/P&gt;&lt;P&gt;u can create two PF staus , once with all the buttons and other with the required buttons and call the required PF STATUS  based on ur condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 04:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777526#M335321</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2006-12-05T04:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling push buttons on application toolbar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777527#M335322</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;If you want just to enable or disable buttons instead of completely hiding the buttons, follow these steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Set pf-status 'ABC' excluding itab.&lt;/P&gt;&lt;P&gt;Populate itab with all the function codes which should be disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) double click on ABC to go to pf-status screen, in the menu, goto-&amp;gt;attributes-&amp;gt;push button assignment. Select Display All and click ok. ( By default we will be having Hide All.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Save and activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, all the buttons that are excluded will be grayed out(disabled).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2560750"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 10:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-push-buttons-on-application-toolbar/m-p/1777527#M335322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T10:23:22Z</dc:date>
    </item>
  </channel>
</rss>

