<?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 and Enabling a button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171132#M754613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Initially you want the button to be disabled write, so you can write that in pbo.but afterwards you should enable the button after some trigger i.e you should press some button so that thing has to enabled.so write that in pai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2007 10:44:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-13T10:44:40Z</dc:date>
    <item>
      <title>Disabling and Enabling a button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171128#M754609</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 just need a clarification. &lt;/P&gt;&lt;P&gt;I want a button to be disabled initially and then after clicking some other button, it should get activated. So, can I write the screen attributes modifications in PAI event?  or I shud write it in PBO only? (Initially disabling the button- I have done it in PBO but how abt re-enabling? Can it be done in PAI or PBO event)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: This quention is &amp;lt;b&amp;gt;where&amp;lt;/b&amp;gt; can I write code (in PAI or PBO)&lt;/P&gt;&lt;P&gt;and &amp;lt;b&amp;gt;not how&amp;lt;/b&amp;gt; to write the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 08:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171128#M754609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T08:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling and Enabling a button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171129#M754610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalaivani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a custom program, you can do it with the EXCLUDING option .. look for F1 help on&lt;/P&gt;&lt;P&gt;SET PF-STATUS for the exatct syntax..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a Std Tcode, you can create a screen variant using SHD0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Kindly award points if you found the reply helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 08:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171129#M754610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T08:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling and Enabling a button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171130#M754611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to do this dynamically. so, can i do this in PAI event or PBO event?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 08:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171130#M754611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T08:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling and Enabling a button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171131#M754612</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;do u have that button on screen than its possible....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO, make some module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE chg_screen OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 111 AND  save_ok = 'CHG'.&lt;/P&gt;&lt;P&gt;      screen-input = 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;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-name ='EDIT'.  " edit is button name&lt;/P&gt;&lt;P&gt;      IF fb = 0.&lt;/P&gt;&lt;P&gt;        screen-input = 0.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;     ELSE.&lt;/P&gt;&lt;P&gt;        screen-input = 1.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " chg_screen  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in USER_COMMAND_1000 module of PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sat the flag fb when that button press.( the button fom which u want to decide that other button should b enable or disable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if u using buttons in pf-status than u need to make two pf-status with enable and disable button and u need to call that pf-status according to condition...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 09:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171131#M754612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T09:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling and Enabling a button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171132#M754613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Initially you want the button to be disabled write, so you can write that in pbo.but afterwards you should enable the button after some trigger i.e you should press some button so that thing has to enabled.so write that in pai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 10:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171132#M754613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T10:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling and Enabling a button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171133#M754614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kalai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    initially you can deactivate the button while creating it that is in the screen painter itself and later when you want to activate it dynamically you can write the code in pai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets take a sample code suppose you have two push buttons the function codes of those buttons are save and modify lets say&lt;/P&gt;&lt;P&gt;now initially your save button is inactive and as soon as you press modify button your save button should get activated so now try using this sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm &lt;/P&gt;&lt;P&gt;when 'modify'  (function code for modify button)&lt;/P&gt;&lt;P&gt;loop-at-screen&lt;/P&gt;&lt;P&gt;if screen-name = save &lt;/P&gt;&lt;P&gt;screen-active = 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2007 04:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-and-enabling-a-button/m-p/3171133#M754614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-20T04:46:18Z</dc:date>
    </item>
  </channel>
</rss>

