<?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: disable a button in the dialog program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-a-button-in-the-dialog-program/m-p/5531935#M1263841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to disable more than one buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: T_Ucomm type standard table of sy-ucomm with header line.

T_ucomm = 'X1'.
Append T_ucomm.

T_ucomm = 'X2'.
Append T_ucomm.

If Condition1.
SET PF-STATUS 'TEST' Excluding T_UCOMM.
ELSE.
SET PF-STATUS 'TEST'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE for one button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If Condition1.
SET PF-STATUS 'TEST' Excluding '&amp;lt;Button&amp;gt;'.
ELSE.
SET PF-STATUS 'TEST'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2009 05:02:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-29T05:02:47Z</dc:date>
    <item>
      <title>disable a button in the dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-a-button-in-the-dialog-program/m-p/5531933#M1263839</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 have a button in the application toolbar of the GUI status.I want to disable it and it should be enabled when a certain field in the database table is updated.Please suggest how can I do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 04:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-a-button-in-the-dialog-program/m-p/5531933#M1263839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T04:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: disable a button in the dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-a-button-in-the-dialog-program/m-p/5531934#M1263840</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;U can use the statement&lt;/P&gt;&lt;P&gt;set pf-status 'ABC' excluding 'XYZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to have a condition for this.&lt;/P&gt;&lt;P&gt;i mean if the values are appropriate then disable it other wise enable it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if condition eq 'X'.&lt;/P&gt;&lt;P&gt;set pf-status 'ABC' excluding 'XYZ'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;set pf-status 'ABC'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 04:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-a-button-in-the-dialog-program/m-p/5531934#M1263840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T04:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: disable a button in the dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-a-button-in-the-dialog-program/m-p/5531935#M1263841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to disable more than one buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: T_Ucomm type standard table of sy-ucomm with header line.

T_ucomm = 'X1'.
Append T_ucomm.

T_ucomm = 'X2'.
Append T_ucomm.

If Condition1.
SET PF-STATUS 'TEST' Excluding T_UCOMM.
ELSE.
SET PF-STATUS 'TEST'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE for one button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If Condition1.
SET PF-STATUS 'TEST' Excluding '&amp;lt;Button&amp;gt;'.
ELSE.
SET PF-STATUS 'TEST'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 05:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-a-button-in-the-dialog-program/m-p/5531935#M1263841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T05:02:47Z</dc:date>
    </item>
  </channel>
</rss>

