Disable standard tool bar button

I want to disable standard tool bar Save button during run time.
Is it possible to achieve this.
Thanks,
Sai.

Hi Sai,
We use the ABAP statement "set pf-status" in PBO  to set a tool bar in the module pool program
We can deactivate any button by passing the function code in the "excluding" syntax addition of the
"Set pf-status 'XXXX' excluding int_fcode'.
data declarations:
data: wa_fcode type ty_status.
data: int_fcode type table of ty_status.
eg : 'SAVE' is the function code for 'SAVE' button and '
     ÉXAMPLE' is the name of pf-status in the module pool
then according to condition required.....say, if we want to hide save button for user 'SAI'
then write
if sy-uname = 'SAI'.
    wa_fcode = 'SAV'.
    append wa_fcode to int_fcode.
    clear wa_fcode.
endif.
then
set pf-status 'EXAMPLE' excluding int_fcode.
then you will no longer be able to use the 'SAVE'functionality for the user 'SAI'
Hope the example and code solves the problem
Regards

Similar Messages

  • Disable Standard Tool bar from FBL1N

    Hi everyone!!
    I have a doubt with transaction FBL1N. My user want to disable from the standard tool bar the Print Button. I know it's a crazy idea but I have to investigate It.
    I 'm trying to do it by a Transaction Variant ( SHD0) but although I disable  all the print functions the button continue active.
    Anyone have any ideas about it?
    Many thanks!!
    Nuria

    Hi Nuria,
    You may be able to block it using authorisations - maybe you can ask one of your authorisations team to investigate as well?
    Regards,
    Tony

  • Enable/Disable Standard Tool Bar

    Hi, Experts
       Using module pool how can I get control on Standard tool bar and application toolbar to make it ENABLE or DISABLE as per requirement.
    With warm regards
    Rajiv singh.

    Yes you can ..
    Check this code:
    DATA: itab TYPE TABLE OF sy-ucomm.
    APPEND 'DELE' TO itab.
    APPEND 'PICK' TO itab.
    SET PF-STATUS 'STA3' EXCLUDING itab.
    Here DELE and PICK are functionCodes. Once you include them in your PF-STATUS you can disable 'em.
    The problem here is you want to do it standard toolbar which is not possible but you can surely copy the standard GUI-Status and use it. And the functionality will not change and all standard SAP buttons will work as standard.
    Just let me know at what stage you want to disable in a program execution and i'll let you know the GUI-Status for standard toolbar.
    Regards
    Nishant

  • To disable the Application tool bar button in ALV report

    Hi Everyone,
    Iam using REUSE_ALV_GRID_DISPLAY to display ALV report.
    Now my requirement is to disable(I mean grey out) a application tool bar button.
    Thanks in advance
    Moderator message: please search for available information and try yourself before asking.
    locked by: Thomas Zloch on Sep 23, 2010 11:38 AM

    We can disable the buttons on the application toolbar as below.
    *To Exclude a few buttons from the Application tool bar
    data: it_excluding type slis_t_extab.
    data: wa_excluding type slis_extab.
    wa_excluding-fcode = '&OUP'.
    append wa_excluding to it_excluding.
    wa_excluding-fcode = '&ILT'.
    append wa_excluding to it_excluding.
    wa_excluding-fcode = '&ODN'.
    append wa_excluding to it_excluding.
    and in the FM.....
    call function 'REUSE_ALV_GRID_DISPLAY'
          exporting
            i_callback_program      = sy-repid
            i_callback_pf_status_set = 'ZPICK'
            is_layout               = itlayout
            i_callback_user_command =  'LIST1'
            i_grid_title            = <fs>
    *       i_callback_top_of_page  = ' '
            it_fieldcat             = itfieldcat[]
            it_excluding            = it_excluding
    But,no idea on how to disable the  whole application tool bar itself ?
    K.Kiran.

  • Creating button in standard tool bar

    Hi gurus,
    I hve to create  button in standard tool bar along with the existing icons and buttons, plz help
    how to suppres the fields other than screen table methods?
    reward asure
    with regards,
    thambe

    hi,
    if u using ALV then go to SE41.
    Give SAPLKKBL as program name and STANDARD_FULLSCREEN as status....
    now click on Copy Status and in that give ur program and status name into To.....
    now in REUSE_ALV_GRID_DISPLAY
    FORM display_list.
      g_f_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = g_f_repid
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_STAT'
          it_fieldcat              = g_t_fieldcat[]
          it_events                = g_t_events[]
        TABLES
          t_outtab                 = g_t_itab
        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.
    ENDFORM. " display_list
    FORM set_stat USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZSTAT' EXCLUDING rt_extab.
    ENDFORM.                    "set_stat
    here my status name is ZSTAT which i gave in SE41...
    and in user_command form...
    FORM user_command USING u_comm LIKE sy-ucomm selfield TYPE slis_selfield.
      CASE u_comm.
        WHEN 'DET'.
        ........ur logic.........
      ENDCASE.
    ENDFORM.                    "user_command
    reward if usefull...

  • How do I add a tool bar button?

    I would like to create a button on the Acrobat X Standard tool bar ribbon on the top of the page that saves the document I'm viewing to a specific directory TIFF format.  I have to do this MANY times per day, a script of this nature would save me MANY key strokes. Note I don't want the button on a form or burried in the "tools" menu, but rather along side the Save, Open, and other buttons.
    Do I need to upgrade to a more expensive Acrobat to get this functionality?
    Thanks
    Jim

    It should be possible with Standard. For more information, read the following:
    http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.524.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.134.html
    When you use the app.addToolButton method in a folder-level JavaScript in Acrobat 10, it adds the button in the "Tools > Add-on Tools" panel, but you can drag it up to the Quick Tools toolbar.

  • Standard tool bar for custom Dialog program

    Hi,
       I need to have a standard tool bar functionality like (Search & Print) for my screen 9000. Could you please let me know how can i get it. And i have a ALV in that screen, if i print the data will all the lines will be printed or only displayed lines will be printed, could you please let me know how to get all the lines of ALV. Basically i have some fields & ALV... everything should be printed out.
    Thanks

    my question is when you create a custom screen like 9000, pf-status also need to created. If i need to printing functionality what needs to be done. If i need all the standard functions in my custom screen...what i need to do.
    In that custom screen i have normal fields and one ALV. if i have print button in the standard tool bar and if i use it will it print all the lines of alv along with other fields. {please note that i am not talking about the alv print icon, i am talking about that standard tool bar print icon}.
    Thanks

  • Enabling Tool Bar Buttons for LIST UI for FBI ?

    Hi,
    I have created Actions to a Node 'MNR_SEARCH_RESULT',
    when I Configure LIST GUIBB with this node I made 3 tool bar Buttons for these actions, but when Test the Application tool Bar Buttons are disabled .
    (No data present in the list).
    below are the screen shots :
    How to make these Tool Bar Buttons Enable ?
    How to Create One Click Action in the List ?
    Thanks In Adv.
    Thanks,
    Kranthi.

    Hi Kranthi,
    1. Can you please check the additional settings in FPM list - 'Enable Event on All Selections'?
    2. Check the corresponding FPM view. In 'Action' tab, add the actions and check the checkbox 'enable' .
    Thanks,
    Dhivya

  • How to add a standard tool bar in alv

    H i
    i am developing a custom report  in Alv interactive report for to dispaly MRP information.
    Can you sejjest me how to add  a standard tool bar in alv.
      i displayed one final alv grid display there i have to add standard tool bar and application tool bar.
    Thanks,
    Rams
    Edited by: Ramsoft on Oct 27, 2010 12:09 PM

    Hi,
    Give the PF ststus name in  the PF status parameter of ALV FM
    I_CALLBACK_PF_STATUS_SET          = ' PF_STATUS'. " this parameter of ALV FM
    FORM pf_status USING pt_extab TYPE slis_t_extab.
      SET PF-STATUS 'MAIN' .
    ENDFORM.                    "pf_status
    Then create a main PF status by double clicking on it , after this goto EXTRA in menu
    EXTRA>ADJUST TEMPLATE> then give program - SAPLSLVC and status - STANDARD this will give u standard toolbar of ALV ,
    THen add what ever button you require in application toolbar
    Regards,
    Madhukar Shetty

  • How to grey out Allication tool bar button of PF-status for a selection-scr

    Hi All,
    I have an urgent requirement to grey out(not to exclude) an application tool bar button in normal selection-screen PF-STATUS.
    Please let me know if any one has done something like this before.

    Hi,
    This code[mentioned in the suggested link] will deactivate the button.
    DATA itab TYPE TABLE OF sy-ucomm.
    PARAMETERS test(10) TYPE c.
    AT SELECTION-SCREEN OUTPUT.
      APPEND:
               'PRIN' TO itab,
              'SPOS' TO itab.
      CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
           EXPORTING
                p_status  = sy-pfkey
           TABLES
                p_exclude = itab.
    You can deactivate Print and Save button.

  • User exit/ BADI in f-32 / f-28 for adding application tool bar button

    Hi Experts,
    There is a requirement, for adding application tool bar button in the Transaction codes F-32 / F-28 / Feba_lockbox. So that while clearing documents with reference document, they can upload the data(Reference Documents) from local file and after the data is fetched for clearing, they need to download the data to local file for verification. If the data is verified to be okay, then they can go ahead with simulation and posting. They need this verification to be done in excel sheet, so need to download the data into local file.
    I found a BADI in that screen is BADI_LAYER but I don't think it is relevant.         
    Any help is apreciated!
    Is there any EXIT ? Because I can not find it too.
    Regards,
    Nitin

    where you did the enhancement?
    I have to create the IDOC once Clear docuemnt is created.. It may help me.

  • Safari tool bar button text

    How can text be added to the tool bar buttons in safari,OSX version 10.10, have managed to get text on mail buttons but not Safari, just makes life easier when you can see what the buttons do.
    Best regards.

    If you forget what a particular button does just hover the cursor over it until it's title appears:

  • Standard Tool Bar

    Minor problem here, but how can I get the Standard Tool Bar
    to stay where I put it, or even stay active?
    Every time I open Dreamweaver, I have to reopen the tool bar
    and place it where ever I want.
    Is there a lock somewhere? I'm sure I'm missing something,
    but I've looked all over.
    I'm using CS3 if that helps.
    Thanks.
    Randy Overman

    roverman wrote:
    > Thanks.
    > I'll give it a try next chance I get.
    Why not also submit an enhancement request to the Dreamweaver
    team for
    the "standard" toolbar to be made standard (in other words,
    displayed by
    default)? It's something that beta testers have been
    hammering on about
    for years. A few more voices from others might tip the
    balance.
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Using the Default standard Tool-bar with a new screen.

    I created a screen with a table put would like the gui-status of the screen to be the same as that of a normal selection screen with all the functions. Is this possible and how do i go about it. Please help

    hi ,
    you can see the gui status of the any standard tool bar and copy the sane ..
    but you need to add custom code in you zprogram for their functionality..
    prabhudas

  • Function codes to  Standard Tool bar

    Hi Guy's,
    Please help me how to add Fuction Codes to Standard Tool bar in Function keys.
    Thanks and Regards,
    Sai.

    hi
    use the following function codes which will be very easy to remember and use in your programs
    Cancel - CANC
    Back   - BACK
    enter   - ENTER
    exit     - EXIT
    print   - PRINT
    <REMOVED BY MODERATOR>
    prince
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 4:04 PM

Maybe you are looking for

  • ITunes imports songs but they wont appear in iTunes

    When I go to import music, iTunes will go through the whole import process but when I go to search in my library, the songs dont appear. I can search for the album and it appears in the search box but when I click on it, nothing happens. I can go thr

  • Report S_ALR_87013536: display actual/downpayements

    Hello All, I have an issue where downpayments made against the PO does not reflect in the report S_ALR_87013536. PO is been created with the WBS as referance. when i check in the PO , i could find the downpayments values. My question is , to get this

  • Confusion about size and capacity of Stack class

    import java.util.*; public class StackDemo {      static void s_pop(Stack<Integer> s)           System.out.print("Pop elements of Stack: ");           try                for(int i=0;i<s.size();i++)                     System.out.print(s.pop()+" ");  

  • Group by sql statement is not sorted.

    execut sql statement include group by clause in a oci program, the result is not sorted. I don't know why.. in SqlPlus, same sql statement return sorted data. SELECT A.SHOP_ID,A.RESALE_TYPE, SUM(A.DEAL_AMT,0) DEAL_AMT FROM SHOP_ACC A, CD_TAB C WHERE

  • Why no iPod w/Video 60GB Universal Dock Adapter for UK?

    I've got a 60GB iPod with Video, which I use in two locations (home & work). As such, I have two universal docks. While the 60GB iPod with Video came with a single universal dock adapter, I need another adapter for my other universal dock. Unfortunat