<?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: Hide a push button on a module pool screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329977#M1538036</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 way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"If it is on the screen designed then try to assign group1 to the button by double click the Push button 
"and write the code in PBO..
    LOOP AT SCREEN .
        IF screen-group1 = 'ID1' .    "Modi ground assigned by double click the push button on the layout at
             screen-active = 0.
             MODIFY SCREEN.
         ENDIF.
   ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prabhu Das on Sep 7, 2010 7:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Sep 2010 14:05:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-07T14:05:27Z</dc:date>
    <item>
      <title>Hide a push button on a module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329973#M1538032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. I have created a function module in which i am calling screen 0100.&lt;/P&gt;&lt;P&gt;2. The FM has two import parameters Flag1 and Flag2&lt;/P&gt;&lt;P&gt;3. This screen 0100 has 3 PushButtons on it(say Button1 , Button2  and Button3)&lt;/P&gt;&lt;P&gt;4. Depending upon the parameter passed to the Flag1 and Flag2 field i have to hide or display the PushButtons &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 13:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329973#M1538032</guid>
      <dc:creator>ankit_doshi</dc:creator>
      <dc:date>2010-09-07T13:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a push button on a module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329974#M1538033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this depends a lot how you have done your buttons.&lt;/P&gt;&lt;P&gt;Did you add them to your screen by PF-Status or are it real pushbuttons on the screen done with the screen editor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 13:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329974#M1538033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-07T13:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a push button on a module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329975#M1538034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If it is a push button created using screen painter do this,&lt;/P&gt;&lt;P&gt;   Write a code in PBO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 if flag1 = 'X'.
   loop at screen where name = 'BUTTON1'.
     screen-active = ' '.
     modify screen.
   endloop.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else,&lt;/P&gt;&lt;P&gt;  get the fcode for that button to hide and add this to a exclude table and then set the PF-STATUS excluding this fcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET PF-STATUS 'PF01' EXCUDING EXTTAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&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;Anmol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 13:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329975#M1538034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-07T13:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a push button on a module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329976#M1538035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have used the real pushbutton and not the pf-status ones&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 14:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329976#M1538035</guid>
      <dc:creator>ankit_doshi</dc:creator>
      <dc:date>2010-09-07T14:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a push button on a module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329977#M1538036</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 way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"If it is on the screen designed then try to assign group1 to the button by double click the Push button 
"and write the code in PBO..
    LOOP AT SCREEN .
        IF screen-group1 = 'ID1' .    "Modi ground assigned by double click the push button on the layout at
             screen-active = 0.
             MODIFY SCREEN.
         ENDIF.
   ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prabhu Das on Sep 7, 2010 7:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 14:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329977#M1538036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-07T14:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a push button on a module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329978#M1538037</link>
      <description>&lt;P&gt;If the button you created has name( ex: 'button_1') so you can hide this button by the condition field  NAME.&lt;BR /&gt;ex :&lt;BR /&gt;  LOOP AT SCREEN.&lt;BR /&gt;    CASE ABAP_ON.&lt;BR /&gt;      WHEN 'Create_mode'.&lt;BR /&gt;        IF SCREEN-NAME = 'button_1'.&lt;/P&gt;          SCREEN-ACTIVE = 0.&lt;BR /&gt;          MODIFY SCREEN.&lt;BR /&gt;&lt;P&gt;        ENDIF.&lt;BR /&gt;      WHEN OTHERS.&lt;BR /&gt;    ENDCASE.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 09:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-push-button-on-a-module-pool-screen/m-p/7329978#M1538037</guid>
      <dc:creator>phantombmt</dc:creator>
      <dc:date>2023-04-18T09:40:54Z</dc:date>
    </item>
  </channel>
</rss>

