<?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: push button disabling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573548#M1271322</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;Refer:&lt;/P&gt;&lt;P&gt;Take the group1 for the screen fields that you have taken on screen as &lt;STRONG&gt;ABC&lt;/STRONG&gt; and then follow code to disable fields, in PBO:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF &amp;lt;condition&amp;gt;. "as per your condition
  IF screen-group1 = 'ABC'.
    LOOP AT SCREEN.
      screen-input = 0. "to disable screen fields
      screen-active = 0.
    ENDLOOP.
    MODIFY SCREEN.
  ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now say if you want to enable fields on some condition then you may use:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF &amp;lt;condition&amp;gt;. "as per your condition
  IF screen-group1 = 'ABC'.
    LOOP AT SCREEN.
      screen-input = 1. "to enable screen fields
      screen-active = 1.
    ENDLOOP.
    MODIFY SCREEN.
  ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2009 08:50:12 GMT</pubDate>
    <dc:creator>I355602</dc:creator>
    <dc:date>2009-05-06T08:50:12Z</dc:date>
    <item>
      <title>push button disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573543#M1271317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working in module pool programming,&lt;/P&gt;&lt;P&gt;I want to disable one push button on the screen depending upon some condition.&lt;/P&gt;&lt;P&gt;how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 12:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573543#M1271317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T12:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: push button disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573544#M1271318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please search before posting your questions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1305563"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 12:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573544#M1271318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T12:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: push button disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573545#M1271319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this in PBO SECTION OF YOUR SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;  IF YOUR CONTITION.&lt;/P&gt;&lt;P&gt;       IF SCREEN-NAME = PUSHBUTTON NAME.&lt;/P&gt;&lt;P&gt;         SCREEN-ACTIVE = 0.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt; MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 12:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573545#M1271319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T12:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: push button disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573546#M1271320</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;Try this if it on the tool bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:	BEGIN OF I_PF_STATUS_TAB OCCURS 10,&lt;/P&gt;&lt;P&gt;		FCODE(4),&lt;/P&gt;&lt;P&gt;	END OF I_PF_STATUS_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SET_PF_STATUS_POSTER.&lt;/P&gt;&lt;P&gt;  REFRESH I_PF_STATUS_TAB.&lt;/P&gt;&lt;P&gt;  MOVE 'PST' TO I_PF_STATUS_TAB.&lt;/P&gt;&lt;P&gt;  APPEND I_PF_STATUS_TAB.&lt;/P&gt;&lt;P&gt;  MOVE 'ART' TO I_PF_STATUS_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND I_PF_STATUS_TAB.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'ZZBILSTA' EXCLUDING I_PF_STATUS_TAB.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&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;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Krishna Gowrneni on May 5, 2009 5:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 12:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573546#M1271320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T12:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: push button disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573547#M1271321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;say for example u have 2 push buttons ( PB1,PB2 )on ur screen and u want to disable one &lt;/P&gt;&lt;P&gt;based on some condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SE51&lt;/P&gt;&lt;P&gt;PB0&lt;/P&gt;&lt;P&gt;Module status_0800.&lt;/P&gt;&lt;P&gt;Module hide_button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;Module user_command_0800.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module hide_button.&lt;/P&gt;&lt;P&gt;if some condition = 'X'.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'PB1'.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = '0'.&lt;/P&gt;&lt;P&gt;SCREEN-INVISIBLE = '1'.&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;Endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 08:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573547#M1271321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T08:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: push button disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573548#M1271322</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;Refer:&lt;/P&gt;&lt;P&gt;Take the group1 for the screen fields that you have taken on screen as &lt;STRONG&gt;ABC&lt;/STRONG&gt; and then follow code to disable fields, in PBO:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF &amp;lt;condition&amp;gt;. "as per your condition
  IF screen-group1 = 'ABC'.
    LOOP AT SCREEN.
      screen-input = 0. "to disable screen fields
      screen-active = 0.
    ENDLOOP.
    MODIFY SCREEN.
  ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now say if you want to enable fields on some condition then you may use:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF &amp;lt;condition&amp;gt;. "as per your condition
  IF screen-group1 = 'ABC'.
    LOOP AT SCREEN.
      screen-input = 1. "to enable screen fields
      screen-active = 1.
    ENDLOOP.
    MODIFY SCREEN.
  ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 08:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573548#M1271322</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-05-06T08:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: push button disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573549#M1271323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Murali..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 12:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573549#M1271323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T12:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: push button disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573550#M1271324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tarun, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; the first part is working for me but the one which u have mentioned under PAI is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please suggest , why it is happening so&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&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 13:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-disabling/m-p/5573550#M1271324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T13:28:04Z</dc:date>
    </item>
  </channel>
</rss>

