Is it possible to deactivate a button on the application toolbar?

Hello everybody!
Is it possible to deactivate a button on the application toolbar from standard transaction like PA40?
I'd want to do it using an user-exit.
Thanks in advance.
Cristian

there is a push button on the std tool bar of pf-status 'Function code'.using that u can activate and deactivate teh function codes
or
Check this FM : RS_SET_SELSCREEN_STATUS
sample code :
DATA: BEGIN OF i_exc OCCURS 0,
code LIKE sy-ucomm,
END OF i_exc.
DATA: ws_repid like sy-repid.
CLEAR i_exc.
i_exc-code = 'ONLI'.
APPEND i_exc.
MOVE: sy-repid TO ws_repid .
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = ' '
p_program = ws_repid
TABLES
p_exclude = i_exc.

Similar Messages

  • Displaying a Push button in the application toolbar for an ALV report

    Hello everyone,
    Query:
    Is it possible to display a custom push button in the application tool bar while displaying an ALV report(1st one)?
    On pressing this custom push button will I be able to display another ALV report(2nd one) based on the selection made on the current ALV report(1st one)?

    Yes u can have pushbutton on application toolbar.
    You just have to use the new pf status in your report program.
    You should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 >Programming SubObjects> Gui Status.
    Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --> Copy.
    Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.
    Then you can edit the new status to add or delete buttons. This will also bring in the standard SAP ALV functionality.
    Have a look at below code for using the new status.
    TYPE-POOLS: slis.
    DATA: i_qmel LIKE qmel OCCURS 0.
    data v_repid type repid.
    SELECT * FROM qmel INTO TABLE i_qmel.
    v_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = v_repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    i_structure_name = 'QMEL'
    TABLES
    t_outtab = i_qmel
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    form set_pf_status using rt_extab type slis_t_extab.
    set pf-status 'TEST'.
    endform.
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
    data lv_ucomm type sy-ucomm.
    lv_ucomm
    = sy-ucomm.
    CASE lv_ucomm.
    WHEN 'BUTTON'. "Double Click line Item
    **Write ur functinality here
    endcase.
    endform.
    Also have a look at below links.
    http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm
    ALV report
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Adding a Button in the Application toolbar when using LDB for HR programs

    Hi Experts,
    I have a requirement to add a new button after execute button in the Application tool bar for the HR programs when using LDB PNP.
    Normally when we are using LDB in our program we will get a extra button provided by SAP after the execyte button.          When we are creating a new button for this  by using the table fields sscrfields  with the function key as 2 we are not able to see the new button.
    can any one help me in this issue.

    please post your relevant coding with respect to the button
    A.

  • Creating a push button in the application toolbar-----vvvv urgent...

    Hi,
    I have already created in the program.
    The addl. requirement is to create a pushbutton after displaying the output .
    Can anybody tell the procedure on how to create a pushbutton in the application toolbar.
    Plz send the relevant code also to download the output in to the excel sheet.
    Regards,
    Sree
    Edited by: sree on Feb 18, 2008 10:09 AM
    Edited by: sree on Feb 18, 2008 10:13 AM

    Sree,
      If you are using ALV report:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
             EXPORTING
                  i_callback_program       = ws_repid
                  i_callback_pf_status_set = 'GUI_STAT1'
                  i_callback_user_command  = 'STAT'
                  is_layout                = gs_layout
                  it_fieldcat              = i_fieldcat[]
                  it_sort                  = wa_sort1
             TABLES
                  t_outtab                 = i_zaw_pol_plan.
    *--Setting Status of output screen
    FORM gui_stat1 USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'STANDARD1' EXCLUDING rt_extab.
      SET TITLEBAR text-005.
    ENDFORM.
    Double click on status 'STANDARD1'.
    Expand the Application toolbar-->press ctrl+f1 for change mode -
    >add your  buutton name --> double click on name add text name button icon  --> save it.
    In classiccal report also Add set pf status
    same like above

  • How to make the buttons INVISIBLE in the Application toolbar

    Hi All,
    I have a requirement to create a button in the Application toolbar of the Module Pool Screen. The field should be made Invisible by default. and it should be displayed based on one condition.
    Could you please let me know how to make that particular button INVISIBLE. I think we can make it invisible by using EXCLUDING statement. But, How to make the button VISIBLE again when the check is satisfied.
    I found from the portal that the FM 'VIEW_SET_PF_STATUS' can be used to make a button INVISIBLE. Could anyone help me out how to pass the parameters to this Function module?
    or is there any Function Module available to make the button VISIBLE and INVISIBLE? Please help me on this issues.
    Is there any possibility to make the button VISIBLE or INVISIBLE as we do for the screen fields using LOOP AT SCREEN..?
    Thank you in advance.
    Regards.
    Paddu.

    Hi,
    Try to use below in the PBO module status_0100 OUTPUT.
    DATA t_fcode TYPE TABLE OF sy-ucomm.
    refresh t_fcode[].
    APPEND 'Function code name of the button' TO t_fcode. 
    Check the condition here for which you want to make field visible.
        DELETE FCODE of the button from T_FCODE table
      ENDIF.
      SET PF-STATUS 'STATUS_0100' EXCLUDING t_fcode.

  • Buttons on  ALV Application Toolbar

    Hi,
    I have added buttons on the Application Toolbar of the ALV (in the GUI status).
    There are a lot of buttons and due to lack of space some of the buttons go out of the screen.
    Need to know if there is a way to make these buttons scrolable or in a dorp down.
    Thanks for the help.
    Karen

    Hi Karen,
    I also faced the same issue but solved it using alternative solution.
    1) Go to PF-STATUS and create a MENU BAR.
    2) Give Appropriate NAME and inside it  write FUNCTION CODE given for buttons under "Code"
    3) Appropriate description under "Text"
    4) Save and activate.
    Now,  execute the report and even if the buttons are going out of screen, you have option to select the button from MENU BAR.
    This is the best solution for this problem as far as i know.
    Also, if you re-size your window ; the you will get tabs with drop down.
    I hope this will help you in solving your issue.
    Regards,
    Rahul Mahajan

  • Deactivate 'APPROVE'   button  in the ALV  in RCATS_APPROVE_ACTIVITIES.

    Hi all,
    I am trying to deactivate 'APPROVE'   button  in the ALV output of the program RCATS_APPROVE_ACTIVITIES.
    Any ideas???
    Thanx in advance!!!!

    Hello Grigoria
    The following steps are necessary to implement your requirement:
    (1) Create BAdI implementation for BAdI CATS_REPORTING (i.e. class implementing interface IF_EX_CATS_REPORTING => e.g. ZCL_IM_CATS_REPORTING).
    (2) Add a public method HANDLE_TOOLBAR (to your BAdI implementing class) as event handler for event TOOLBAR of CL_GUI_ALV_GRID
    (3) Set method HANDLE_TOOLBAR as event handler for the CATS displaying grid instance:
    METHOD if_ex_cats_reporting~before_display_appr.
      SET HANDLER: handle_toolbar FOR im_alv_grid.
    ENDMETHOD.
    (4) Inactive the APPROVE toolbar button within the event handler method:
    METHOD handle_toolbar.
    * define local data
      DATA: ls_button   TYPE stb_button.
      LOOP AT e_object->mt_toolbar INTO ls_button.
        CASE ls_button-function.
          WHEN cl_grid_approval_actexp=>co_ok_approve.
            ls_button-disabled = 'X'.
          WHEN OTHERS.
            CONTINUE.
        ENDCASE.
        MODIFY e_object->mt_toolbar FROM ls_button INDEX syst-tabix.
      ENDLOOP.
    ENDMETHOD.
    Regards
      Uwe

  • In 4.0.1, is it possible to move the Bookmarks Button on the Bookmarks Toolbar to a different position on the Bookmarks Toolbar from it default position on the far right?

    The default Bookmarks Button is on the far, upper right side of the browser window on the Bookmarks Toolbar. It's distracting there, on the edge, in Siberia. I use it a thousand times per day. It's unnatural and distracting to always be turning to the edge, away from "the action". Is there any way to slide its location on the toolbar? Or at least put it on the far left where there's more "action"? I doubt I'm the only one with this instinct, otherwise the Firefox button and items on the usual menu bar (like File, Edit) would not always be placed on the upper left, not upper right. I'm not asking about the other, optional Bookmarks Button that can be put on the Navigation Toolbar which functions differently and more cumbersomely.

    To move the bookmarks button on the Bookmarks Toolbar, you have to go into Customize first. Just drag the button palette to one side so you have full access to the bar. The only things on it should be "Bookmarks Toolbar Items" and the icon for the bookmarks drop-down list. Hopefully then you can swap their positions.
    (And it is weird that the buttons look the same when one shows a menu and other opens the Bookmarks Sidebar.)

  • Grey-out button dynamically in the application toolbar

    Hi,
    How can I grey-out button dynamically in the application toolbar?
    It's not an ALV grid, where it's easy.
    SET PF-STATUS '100' EXCLUDING 'SOMETHING'. hides completely the button.
    Thanks,
    Peter

    Hi,
    Sorry forgot to add something to my previous reply...
    The complete steps will be as follows :
    1. Create Two PF status , One with active Button and Function code and Second with Inactive Function code and Greyed button (This can be acheive by using Push Button assignment as specified in the thread)
    2. Dynamically change the PF status to Second one when you want to deactivate the specified Function from the application tool bar.
    regards,
    Sumeet Mishra
    Reward point if this helps : )

  • Hide/Change "Help" button from the Main Toolbar

    Hi all,
    I would like to know if there is any possibility to change the URLs displayed when clicking in "Help" button from the Main Toolbar.
    I think that it is not possible so that is the reason I was also asking the the "toolbar ID" in order to hide the button through "Toolbar customization".
    Thank you very much in advance!
    Regards,
    Laura

    Hi Laura,
    We can change the URLs displayed when clicking in "Help" button from the Main Toolbar.
    In System Properties please mention the URLs to which you want these links to point:
    Documentation - system.help.url.buyside
    E-Learning - system.link.community_url
    Community - system.link.elearning_url
    Guides - system.link.guides_url
    Also you can customize the display names of these by changing the Localized Resource values for below
    common$common.top_links.documentation_link.name
    portal$portal.channel.help_center.training
    portal$portal.channel.help_center.community
    portal$portal.channel.help_center.guides
    Hope this helps!!!
    Regards,
    Vignesh

  • Display of push button in the application tool bar in an ALV report

    Hello everyone,
    Query:
    Is it possible to display a custom push button in the application tool bar while displaying an ALV report(1st one)?
    On pressing this custom push button will I be able to display another ALV report(2nd one) based on the selection made on the current ALV report(1st one)?

    Hiii..
    I have written a sample code for You
    <b>"Call the below FunctionModule For Displaying The List
    " And see the bolded line in the Below FunctionModule
    " STANDARD_02 and USER_COMMAND are the subroutine Names</b>
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
       i_callback_program             = sy-repid
       <b>i_callback_pf_status_set       = 'STANDARD_02'</b>
      <b> i_callback_user_command       = 'USER_COMMAND '</b>
       i_structure_name               =  'ZST_SCARR'
       is_layout                      = is_layout
       it_fieldcat                    = gt_fieldcat[]
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      is_sel_hide                    = is_sel_hide
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
       it_events                      = e03_lt_events[]
      IT_EVENT_EXIT                  =
      is_print                       = t
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        t_outtab                       = it_scarr
    EXCEPTIONS
       program_error                  = 1
       OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
       FORM PF_STATUS_SET
    <b>" Here Set A Button In Application Toolbar Using PF- Status</b>
    FORM standard_02 USING  extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDA02' EXCLUDING extab.
    ENDFORM.                    "STANDARD_02
    *&      Form  USER_COMMAND
          text
         -->R_UCOMM    text
         -->RS_SELFIELDtext
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
    <b> "menubutton with functioncode GOTO's Action</b>
        WHEN  'GOTO'.  
          READ TABLE it_scarr INDEX rs_selfield-tabindex. "cursorposit.
          IF sy-subrc = 0.
            WRITE:/ it_scarr-carrid,
                  /  it_scarr-carrname.
          ENDCASE.
    ENDFORM.                    "USER_COMMAND<b></b>
    Hope it helps..
    Regards,
    Simy

  • How to add my own button in the system toolbar?

    Hi,
    Is it possible to add my own button in the system toolbar which is linked to one of my own menu item ? I did a little bit search in the forum, all said it is not possible. Can anyone confirm it?
    Thanks,
    Lan

    Hi Lan,
    Your finding is correct. The toolbar is not open to UI API. We do not have any methods to change anything there.
    You may check this if you haven't: Browse Buttons in B1
    Thanks,
    Gordon

  • I've just recently updated to the ver 4.0. After the update, I can't select my vertical scroll and any buttons on the search toolbar.

    I've just recently updated to the ver 4.0. After the update, I can't select my vertical scroll and any buttons on the search toolbar. I've tried switching off all the add-ons and running it on safe-mode but the problem still persist. Anybody encountered the same issue here? Any help would be good. Cheers

    Okay. The missing menus at the top of iTunes (in recent versions) can indicate trouble with the Segoe UI fonts on your system. It's a new symptom of a problem that can also cause text to go missing from the Device tab in iTunes.
    Unfortunately it's a bit trickier to deal with on Windows 7 systems than Vista or XP. (The "Vortical" instructions which can fix it for almost all folks on Vista and XP aren't applicable to Windows 7.)
    Try having a look through the following (unfortunately very long) topic. It contains a lot of information on the Windows 7 variants of this, and possible methods for fixing the various Segoe UI-related issues that might be in play:
    iTunes 10.1 Missing Text

  • The "Go back one page" button on the Navigation toolbar doesn't work on certain web pages.

    == Issue
    ==
    Firefox is having problems with certain web sites
    == Description
    ==
    The "Go back one page" button on the Navigation toolbar doesn't seem to work on certain pages. On clicking this button, the focus stays on the same page and does not move to the previous page. The previous page does not appear even in the right-click context menu of the Back button. However, I am able to go back one page using Internet Explorer.
    == URL of affected sites
    ==
    http://justdial.com/
    http://southernrailway.gov.in/sr/indexhome.jsp
    == Troubleshooting information
    ==
    Application Basics
    Name
    Firefox
    Version
    3.6.3
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Kaspersky URL Advisor
    9.0.0.736
    true
    [email protected]
    Java Console
    6.0.14
    true
    Java Console
    6.0.17
    true
    Java Console
    6.0.20
    true
    McAfee SiteAdvisor
    3.1
    true
    Java Quick Starter
    1.0
    true
    [email protected]
    Download Accelerator Plus (DAP) extension
    9.4.0.5
    true
    Adblock Plus
    1.2
    true
    DownloadHelper
    4.7.3
    true
    FEBE
    6.3.3.2
    true
    {4BBDD651-70CF-4821-84F8-2B918CF89CA3}
    Flagfox
    4.0.6
    true
    {1018e4d6-728f-4b20-ad56-37578a4de76b}
    Lazarus: Form Recovery
    2.0.5
    true
    [email protected]
    WeatherBug
    2.0.0.4
    true
    {3EC9C995-8072-4fc0-953E-4F30620D17F3}
    WOT
    20100503
    true
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.flashBar
    0
    browser.places.importBookmarksHTML
    false
    browser.places.smartBookmarksVersion
    2
    browser.startup.homepage
    browser.startup.homepage_override.mstone
    rv:1.9.2.3
    extensions.lastAppVersion
    3.6.3
    network.cookie.prefsMigrated
    true
    places.last_vacuum
    1276949273
    privacy.sanitize.migrateFx3Prefs
    true
    security.warn_viewing_mixed
    false
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Office Plugin for Netscape Navigator
    *6.0.12.448
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Winamp Application Detector
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *Provides additional functionality on Facebook. See our web site for details.
    *Shockwave Flash 10.0 r22
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *Picasa plugin
    *Yahoo Application State Plugin version 1.0.0.7
    *3.0.40818.0
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object

    Try to open the right-click context menu of the Back button and see if you can go back further.
    The current active entry in that list has a bullet in front of it.
    If you hover an entry in that session history list then it shows the direction by adding an arrow at the left.
    You can left click an item to open it in the current tab or middle-click or Ctrl left-click an entry in that list to open that link in new tab, just like you can with other links.

  • How do I add the rotate button to the main toolbar for all users

    How do I add the rotate button to the main toolbar for all users. I have a Windows 2003 Citrix farm with Adobe Reader 8. I can add it user by user but I want to add it to all users at once. All users need this rotate button,
    Thanks in advance
    ND

    Try the Reader forum. I have no clue.

Maybe you are looking for