<?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: How to enable/disable button on application tool based on some condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652835#M611602</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 need to use a standard setting which specifies if you want to make visible a disabled button. Do as below : &lt;/P&gt;&lt;P&gt;In the GUI status screen, goto the the menu " GOTO"-&amp;gt; "ATTRIBUTES" -&amp;gt;"PUSHBUTTON ASSIGNMENT". In that you find the choices for disabled buttons: You need to choose "Display All". &lt;/P&gt;&lt;P&gt;Doing this, you will be able to see the disabled buttons also in an inactive state which are otherwise invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2007 05:12:28 GMT</pubDate>
    <dc:creator>sharat_chandra</dc:creator>
    <dc:date>2007-08-29T05:12:28Z</dc:date>
    <item>
      <title>How to enable/disable button on application tool based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652830#M611597</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 added an item to the application tool bar.&lt;/P&gt;&lt;P&gt;Its like a button which is displayed when the screen is called.&lt;/P&gt;&lt;P&gt;Now i want to enable and disable the button(item) based on some condition.&lt;/P&gt;&lt;P&gt;How to do that ???&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bikash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 12:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652830#M611597</guid>
      <dc:creator>bikash_bansal</dc:creator>
      <dc:date>2007-08-24T12:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable/disable button on application tool based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652831#M611598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Bikash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF condition is true&lt;/P&gt;&lt;P&gt;LOOP AT screen.&lt;/P&gt;&lt;P&gt;IF screen-name EQ button.&lt;/P&gt;&lt;P&gt;screen-active = 0.&lt;/P&gt;&lt;P&gt;MODIFY screen.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 13:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652831#M611598</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-08-24T13:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable/disable button on application tool based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652832#M611599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to disable buttons in tool bar, check out option 'EXCLUDING' for ABAP command SET PF-STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If in a report, you can do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET PF-STATUS 'BASIC' EXCLUDING 'PICK' IMMEDIATELY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a dynpro screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA fcode TYPE TABLE OF sy-ucomm. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE status_0100 OUTPUT. 
  APPEND 'CHANGE'  TO fcode. 
  APPEND 'SAVE' TO fcode. 
  SET PF-STATUS 'STATUS_0100' EXCLUDING fcode. 
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Aug 2007 07:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652832#M611599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-25T07:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable/disable button on application tool based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652833#M611600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;you didnt specified report / module pool...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to enable/disable buttons on the application tool bar, use SET PF-STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;SET PF-STATUS status [OF PROGRAM prog] [EXCLUDING fcode]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the starting of the program u might have specified a pf status.&lt;/P&gt;&lt;P&gt;say if u clik on a icon/button to disable it.. if its in the same program.&lt;/P&gt;&lt;P&gt;use command like &lt;/P&gt;&lt;P&gt;set pf-status 'ZSTATUS' excluding 'FCODE'.&lt;/P&gt;&lt;P&gt;if ur using PF status of some other program. specify the  [OF PROGRAM prog] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; set pf-status 'ZSTATUS'  OF PROGRAM 'ZPRG' excluding 'FCODE'.&lt;/P&gt;&lt;P&gt;&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, 27 Aug 2007 11:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652833#M611600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T11:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable/disable button on application tool based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652834#M611601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using excluding is making it invisible. Its disappearing altogether.&lt;/P&gt;&lt;P&gt;I want it to be seen but being disabled.&lt;/P&gt;&lt;P&gt;My exact use case is :&lt;/P&gt;&lt;P&gt;I have a tree displayed and a action_button on the toolbar.&lt;/P&gt;&lt;P&gt;Whenever the root of the tree is selected i want to disable the action_button&lt;/P&gt;&lt;P&gt;and when a child of the tree is selected the action should be disabled.&lt;/P&gt;&lt;P&gt;How i added this button on the toolbar is :&lt;/P&gt;&lt;P&gt;module STATUS_0200 output.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'STATUS_0200' . &lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'TITLE_0200'.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;After double clicking on 'STATUS_0200' i added a button on application tool bar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 10:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652834#M611601</guid>
      <dc:creator>bikash_bansal</dc:creator>
      <dc:date>2007-08-28T10:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable/disable button on application tool based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652835#M611602</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 need to use a standard setting which specifies if you want to make visible a disabled button. Do as below : &lt;/P&gt;&lt;P&gt;In the GUI status screen, goto the the menu " GOTO"-&amp;gt; "ATTRIBUTES" -&amp;gt;"PUSHBUTTON ASSIGNMENT". In that you find the choices for disabled buttons: You need to choose "Display All". &lt;/P&gt;&lt;P&gt;Doing this, you will be able to see the disabled buttons also in an inactive state which are otherwise invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 05:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652835#M611602</guid>
      <dc:creator>sharat_chandra</dc:creator>
      <dc:date>2007-08-29T05:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable/disable button on application tool based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652836#M611603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 13:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-disable-button-on-application-tool-based-on-some-condition/m-p/2652836#M611603</guid>
      <dc:creator>cesarscheck</dc:creator>
      <dc:date>2013-07-11T13:51:03Z</dc:date>
    </item>
  </channel>
</rss>

