<?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 Making buttons inactive in module pool program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008601#M1345552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai experts,&lt;/P&gt;&lt;P&gt;                    i have following  issues in module pool program . They are&lt;/P&gt;&lt;P&gt;1. I have 3 push buttons in my screen 1 . They are " Create , Display , Change ", the issue is , when i am clicking Create button remaining two buttons should be inactive . How can I do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I have created two  transactions ( Create , Display ) , whenever I use transaction either Create or Dispaly , the name of the transaction should be dispalyed in the top of the screen .&lt;/P&gt;&lt;P&gt;example: Purchase Order    ZPOCREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Mani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2009 09:45:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-07T09:45:51Z</dc:date>
    <item>
      <title>Making buttons inactive in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008601#M1345552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai experts,&lt;/P&gt;&lt;P&gt;                    i have following  issues in module pool program . They are&lt;/P&gt;&lt;P&gt;1. I have 3 push buttons in my screen 1 . They are " Create , Display , Change ", the issue is , when i am clicking Create button remaining two buttons should be inactive . How can I do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I have created two  transactions ( Create , Display ) , whenever I use transaction either Create or Dispaly , the name of the transaction should be dispalyed in the top of the screen .&lt;/P&gt;&lt;P&gt;example: Purchase Order    ZPOCREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Mani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 09:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008601#M1345552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T09:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Making buttons inactive in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008602#M1345553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To display the transaction name set it in the titlebar using SET TITLEBAR in the PBO of teh screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To disable a buttuon; loop on the screen table and put screen-input = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.
  case screen-name .
    when 'TEST1' .    "button name
      screen-input = '0'.
      modify screen.
    endcase.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ankur Parab on Aug 7, 2009 3:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 09:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008602#M1345553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T09:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Making buttons inactive in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008603#M1345554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you have your buttons, in application toolbar? If so then use this logic&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA fcode TYPE TABLE OF sy-ucomm. 

"PAI module
case sy-ucomm.
  when 'FC_CREATE'.  "if create button was selected (function code for create button)
    "then hide all the others
    append 'FC_CHANGE' to fcode.
    append 'FC_DISPLAY' to fcode.
  when 'FC_DISPLAY.  
    "then hide CHANGE and CREATE
  when 'FC_CHANGE' .
    "same here.
 endcase.
  
"PBO module
set pf-status 'YOUR_STATUS'  excluding fcode.  "hide all buttons which are in FCODE table
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For Title you can use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"in PBO module
SET TITLEBAR title.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 10:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008603#M1345554</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-07T10:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Making buttons inactive in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008604#M1345555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Add the the below code in the PBO of the First screen, this should be the first module after status &amp;amp; title bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Main screen PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
  MODULE status_2000.


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  status_2000  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
* " Triggering Transactions here.
*----------------------------------------------------------------------*
MODULE status_2000 OUTPUT.

  CCASE sy-tcode.

      WHEN 'ZCREATE'.

PERFORM f_title_bar.               " ----- Set Title

   LOOP AT SCREEN.
      CASE screen-name.
        WHEN 'CREATE'.
          screen-input = 1.
          MODIFY SCREEN.
        WHEN 'CHANGE'.
          screen-input = 0.
          MODIFY SCREEN.
        WHEN 'DISPLAY'.
          screen-input = 0.
          MODIFY SCREEN.
      ENDCASE.
    ENDLOOP.

      WHEN 'ZCHANGE'.

PERFORM f_title_bar.               " ----- Set Title

   LOOP AT SCREEN.
      CASE screen-name.
        WHEN 'CREATE'.
          screen-input = 0.
          MODIFY SCREEN.
        WHEN 'CHANGE'.
          screen-input = 1.
          MODIFY SCREEN.
        WHEN 'DISPLAY'.
          screen-input = 0.
          MODIFY SCREEN.
      ENDCASE.
    ENDLOOP.

     WHEN 'ZDISPLAY'.

PERFORM f_title_bar.               " ----- Set Title

   LOOP AT SCREEN.
      CASE screen-name.
        WHEN 'CREATE'.
          screen-input = 0.
          MODIFY SCREEN.
        WHEN 'CHANGE'.
          screen-input = 0.
          MODIFY SCREEN.
        WHEN 'DISPLAY'.
          screen-input = 1.
          MODIFY SCREEN.
      ENDCASE.
    ENDLOOP.

ENDCASE.

ENDMODULE.                 " status_2000  OUTPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 10:27:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008604#M1345555</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-08-07T10:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Making buttons inactive in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008605#M1345556</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;Go through the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*----------------------------------------------------------------------*
MODULE STATUS_0100 OUTPUT.
  SET PF-STATUS 'STATUSMAIN'.


  if sy-tcode eq 'ZPURCR_G13'.
     set titlebar 'CREATETITLE'.
  elseif sy-tcode eq 'ZPURCHG_G13'.
      set titlebar 'CHANGETITLE'.
  elseif sy-tcode eq 'ZPURDIS_G13'.
      set titlebar 'DISPLAYTITLE'.
  endif.


  if sy-tcode eq 'ZPURCR_G13'.
    loop at screen.
      if screen-name eq 'CHANGE'.
        screen-input = '0'.
        modify screen.
      elseif  screen-name eq 'DISPLAY'.
        screen-input = '0'.
        modify screen.
      endif.
    endloop.
  endif.

  if sy-tcode eq 'ZPURCHG_G13'.
    loop at screen.
      if screen-name eq 'CREATE'.
        screen-input = '0'.
        modify screen.
      elseif screen-name eq 'DISPLAY'.
        screen-input = '0'.
        modify screen.
      endif.
    endloop.
  endif.

  if sy-tcode eq 'ZPURDIS_G13'.
    loop at screen.
      if screen-name eq 'CREATE'.
        screen-input = '0'.
        modify screen.
      elseif  screen-name eq 'CHANGE'.
        screen-input = '0'.
        modify screen.
      endif.
    endloop.
  endif.

ENDMODULE.                 " STATUS_0100  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 11:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008605#M1345556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T11:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Making buttons inactive in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008606#M1345557</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;See to this link.&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="1115040"&gt;&lt;/A&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="751311"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Revathi Bhoopal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 12:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008606#M1345557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T12:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Making buttons inactive in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008607#M1345558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;    case sy-tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when 'ZGP2_1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        set titlebar 'T001' with 'Create'.&lt;/P&gt;&lt;P&gt;        set pf-status 'PF_1'.&lt;/P&gt;&lt;P&gt;        if screen-group1 = 'CH' or screen-group1 = 'DI'.&lt;/P&gt;&lt;P&gt;          screen-input = 0.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when 'ZGP2_2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        set titlebar 'T001' with 'Change'.&lt;/P&gt;&lt;P&gt;        set pf-status 'PF_1'.&lt;/P&gt;&lt;P&gt;        if screen-group1 = 'CR' or screen-group1 = 'DI'.&lt;/P&gt;&lt;P&gt;          screen-input = 0.&lt;/P&gt;&lt;P&gt;        endif.&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;      when 'ZGP2_3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        set titlebar 'T001' with 'DISPLAY'.&lt;/P&gt;&lt;P&gt;        set pf-status 'PF_1' excluding it_excl.&lt;/P&gt;&lt;P&gt;        if screen-group1 = 'CH' or  screen-group1 = 'CR'.&lt;/P&gt;&lt;P&gt;          screen-input = 0.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;    modify screen.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Shweta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 13:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-buttons-inactive-in-module-pool-program/m-p/6008607#M1345558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T13:27:43Z</dc:date>
    </item>
  </channel>
</rss>

