<?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: Graying a button (Enable) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666207#M882974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but i want just that the button ==&amp;gt; desabled not hide it.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2008 14:42:31 GMT</pubDate>
    <dc:creator>MusAbaper</dc:creator>
    <dc:date>2008-04-15T14:42:31Z</dc:date>
    <item>
      <title>Graying a button (Enable)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666203#M882970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;I have 1 status (with 2 buttons) for 2 different screens: &lt;/P&gt;&lt;P&gt;For the first screen, I need a button and graying hair another. And contrary to the second screen. &lt;/P&gt;&lt;P&gt;Can you give me a source code that enables graying (Enable) of a button. &lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;P&gt;Sincerely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 11:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666203#M882970</guid>
      <dc:creator>MusAbaper</dc:creator>
      <dc:date>2008-04-15T11:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Graying a button (Enable)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666204#M882971</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;use &lt;/P&gt;&lt;P&gt;set pf-status 'MENU' excluding 'FCODE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 11:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666204#M882971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T11:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Graying a button (Enable)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666205#M882972</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 want the button is disabled not exclude it.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 11:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666205#M882972</guid>
      <dc:creator>MusAbaper</dc:creator>
      <dc:date>2008-04-15T11:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Graying a button (Enable)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666206#M882973</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;if u use excluding the button in menu or standard toolbar will be grayed out if it is in application toolbar it will be disappeared.&lt;/P&gt;&lt;P&gt;to make the application toolbar buttons appear and grayed out goto to the screen painter and select ur STATUS in change mode.there next to application toolbar section u will find out an icon.if u click on that,u will get a pop-up window in that select the radio button DISPLAY ALL and press OK button and then activate the menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 11:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666206#M882973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T11:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Graying a button (Enable)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666207#M882974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but i want just that the button ==&amp;gt; desabled not hide it.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 14:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666207#M882974</guid>
      <dc:creator>MusAbaper</dc:creator>
      <dc:date>2008-04-15T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Graying a button (Enable)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666208#M882975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just use this source like this : &lt;/P&gt;&lt;P&gt;include your bouton in group exemple 'BT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  group = 'BT'&lt;/P&gt;&lt;P&gt;nambuton-activ = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 14:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666208#M882975</guid>
      <dc:creator>adil</dc:creator>
      <dc:date>2008-04-15T14:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Graying a button (Enable)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666209#M882976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can make a LOOP AT SCREEN even though this is a button from the menu bar?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 15:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666209#M882976</guid>
      <dc:creator>MusAbaper</dc:creator>
      <dc:date>2008-04-15T15:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Graying a button (Enable)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666210#M882977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi please try the following code given below,&lt;/P&gt;&lt;P&gt;The following sample reports shows how to disable toolbar functions. Run the report and the push the ENTER button repeatedly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp; Report ZUS_SDN_ALV_EVT_TOOLBAR&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp; This sample report explains the handling of event TOOLBAR in order&lt;/P&gt;&lt;P&gt;*% to activate or inactive buttons of the ALV toolbar.&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp; Based on: BCALV_GRID_DEMO&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp; Procedure: Copy BCALV_GRID_DEMO and replace entire coding OR&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;copy screen '0100' and GUI status 'MAIN100' from&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BCALV_GRID_DEMO to this report.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zus_sdn_alv_evt_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: abap, cntb, icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;ok_code TYPE ui_func,&lt;/P&gt;&lt;P&gt;gt_sflight TYPE TABLE OF sflight,&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;g_container TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',&lt;/P&gt;&lt;P&gt;g_grid1 TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;g_custom_container TYPE REF TO cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;p_inact RADIOBUTTON GROUP grp1 DEFAULT 'X', " delete buttons&lt;/P&gt;&lt;P&gt;p_dele RADIOBUTTON GROUP grp1. " inactivate buttons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;p_newbut AS CHECKBOX DEFAULT ' ', " add new button&lt;/P&gt;&lt;P&gt;p_newddm AS CHECKBOX DEFAULT 'X'. " add dropdown menu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLASS lcl_eventhandler DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CLASS lcl_eventhandler DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS-DATA:&lt;/P&gt;&lt;P&gt;md_cnt TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS-METHODS:&lt;/P&gt;&lt;P&gt;handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;e_object&lt;/P&gt;&lt;P&gt;e_interactive&lt;/P&gt;&lt;P&gt;sender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS. "lcl_eventhandler DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLASS lcl_eventhandler IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CLASS lcl_eventhandler IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD handle_toolbar.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;§ 2.In event handler method for event TOOLBAR: Append own functions&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;by using event parameter E_OBJECT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;ls_toolbar TYPE stb_button,&lt;/P&gt;&lt;P&gt;ls_menu type STB_BTNMNU.&lt;/P&gt;&lt;P&gt;*....................................................................&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_OBJECT of event TOOLBAR is of type REF TO CL_ALV_EVENT_TOOLBAR_SET.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This class has got one attribute, namly MT_TOOLBAR, which&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;is a table of type TTB_BUTTON. One line of this table is&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;defined by the Structure STB_BUTTON (see data deklaration above).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;A remark to the flag E_INTERACTIVE:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;'e_interactive' is set, if this event is raised due to&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the call of 'set_toolbar_interactive' by the user.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;You can distinguish this way if the event was raised&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;by yourself or by ALV&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(e.g. in method 'refresh_table_display').&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;An application of this feature is still unknown... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD 1 TO md_cnt. " a simple counter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(1.a) Inactivate toolbar buttons&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF ( p_inact = abap_true ).&lt;/P&gt;&lt;P&gt;LOOP AT e_object-&amp;gt;mt_toolbar INTO ls_toolbar FROM 1 TO md_cnt.&lt;/P&gt;&lt;P&gt;ls_toolbar-disabled = 'X'.&lt;/P&gt;&lt;P&gt;MODIFY e_object-&amp;gt;mt_toolbar FROM ls_toolbar.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(1.b) Delete toolbar buttons&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;DO md_cnt TIMES.&lt;/P&gt;&lt;P&gt;DELETE e_object-&amp;gt;mt_toolbar INDEX 1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(2) Add new button&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF ( p_newbut = abap_true ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add separator to separate default and new buttons&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR: ls_toolbar.&lt;/P&gt;&lt;P&gt;ls_toolbar-butn_type = cntb_btype_sep. " separator&lt;/P&gt;&lt;P&gt;APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add new button "DETAIL"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR: ls_toolbar.&lt;/P&gt;&lt;P&gt;ls_toolbar-function = 'DETAIL'.&lt;/P&gt;&lt;P&gt;ls_toolbar-icon = icon_detail.&lt;/P&gt;&lt;P&gt;ls_toolbar-quickinfo = 'QuickInfo'.&lt;/P&gt;&lt;P&gt;ls_toolbar-butn_type = cntb_btype_button.&lt;/P&gt;&lt;P&gt;ls_toolbar-disabled = abap_false.&lt;/P&gt;&lt;P&gt;ls_toolbar-text = 'Details'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ls_toolbar-checked = ' '.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(3) Add new dropdown menu&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF ( p_newddm = abap_true ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add separator to separate default and new buttons&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR: ls_toolbar.&lt;/P&gt;&lt;P&gt;ls_toolbar-butn_type = cntb_btype_sep. " separator&lt;/P&gt;&lt;P&gt;APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add new dropdown menu "DETAIL"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR: ls_toolbar.&lt;/P&gt;&lt;P&gt;ls_toolbar-function = 'DDMENU'.&lt;/P&gt;&lt;P&gt;ls_toolbar-icon = icon_detail.&lt;/P&gt;&lt;P&gt;ls_toolbar-quickinfo = 'QuickInfo'.&lt;/P&gt;&lt;P&gt;ls_toolbar-butn_type = cntb_btype_dropdown.&lt;/P&gt;&lt;P&gt;ls_toolbar-disabled = abap_false.&lt;/P&gt;&lt;P&gt;ls_toolbar-text = 'DD-Menu'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ls_toolbar-checked = ' '.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD. "handle_toolbar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS. "lcl_eventhandler IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIN *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM sflight INTO TABLE gt_sflight.&lt;/P&gt;&lt;P&gt;CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE PBO OUTPUT *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;MODULE pbo OUTPUT.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'MAIN100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF g_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_custom_container&lt;/P&gt;&lt;P&gt;EXPORTING container_name = g_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Instantiate ALV grid control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CREATE OBJECT g_grid1&lt;/P&gt;&lt;P&gt;EXPORTING i_parent = g_custom_container.&lt;/P&gt;&lt;P&gt;CALL METHOD g_grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = gt_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set event handler for event TOOLBAR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SET HANDLER:&lt;/P&gt;&lt;P&gt;lcl_eventhandler=&amp;gt;handle_toolbar FOR g_grid1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;$Comment: Toolbar can be modified on-the-fly&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;g_grid1-&amp;gt;set_toolbar_interactive( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. "PBO OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE PAI INPUT *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;MODULE pai INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to react on oi_custom_events:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD cl_gui_cfw=&amp;gt;dispatch.&lt;/P&gt;&lt;P&gt;CASE ok_code.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;PERFORM exit_program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do nothing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;CLEAR ok_code.&lt;/P&gt;&lt;P&gt;ENDMODULE. "PAI INPUT&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM EXIT_PROGRAM *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM exit_program.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALL METHOD G_CUSTOM_CONTAINER-&amp;gt;FREE.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALL METHOD CL_GUI_CFW=&amp;gt;FLUSH.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;ENDFORM. "EXIT_PROGRAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if usefull,&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;kalyan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 16:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666210#M882977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T16:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Graying a button (Enable)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666211#M882978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you a lootttttttt, ur answer is very very helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt; this what is miss ====&amp;gt; &lt;U&gt;&lt;STRONG&gt;u will get a pop-up window in that select the radio button DISPLAY ALL and press OK button and then activate the menu&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you again&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Mustapha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 17:44:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-a-button-enable/m-p/3666211#M882978</guid>
      <dc:creator>MusAbaper</dc:creator>
      <dc:date>2008-04-18T17:44:13Z</dc:date>
    </item>
  </channel>
</rss>

