How to disable generic alv buttons in CL_SALV_TABLE?

I am needing to disable individually the generic alv buttons in CL_SALV_TABLE. 
I see how to disable buttons by group.  eg-
     lr_functions->set_group_export( abap_false ).
     lr_functions->set_group_filter( abap_false ).
     lr_functions->set_group_sort( abap_false ).
     etc....
However, I cannot find source  codes to disable individual buttons.  Is it possible to do this?...   and if so would appreciate an example coding.
Best Regards,
Dean Atteberry.

There are method available in the class CL_SALV_FUNCTIONS_LIST which can be helpful to active / deactive certain button.
Like: To remove the SORT Ascending button:
  data: lr_functions type ref to cl_salv_functions_list.
  lr_functions = gr_table->get_functions( ).
  lr_functions->SET_SORT_ASC( ).
Regards,
Naimesh Patel

Similar Messages

  • How to disable the cancel button in InputDialogBox?

    Can someone please tell me how to disable the cancel button in an input dialog box?
    thanks,

    Cross posted: [http://www.coderanch.com/t/487888/Swing-AWT-SWT-JFace/java/disable-cancel-button-input-dialog]

  • How to disable "View Report" button in reporting services

    Is anyone know how to disable "View Report" button in reporting services, I know can do custom code in report properties, what is the code? I have tried something like this ***button1.enable=false, but it can not success.
    Appreciate if anyone can reply me, thanks.

    Hi,
    The message box don't work on the web because it is of windowform box. Based on your further description, you might want to do the date parameter validation. If so, there is common way to do this:(assume the date parameter value inputed can't be less than 2007)
    1) Intert a textbox and input the message used to show the end users if they input a invalidated date value for the parameter, and then set the textbox's hidden property to =iif(Year(Parameters!myPrameter.value) < 2007,false, true)
    2) Insert a Rectangle control below the textbox created in step 1, and put all report items in it and set the Rectangle's hidden property to =IIF(Year(Parameters!myParameter.value)<2007,true,false)
    After these, if the end users input the date value can meet the project requirement, the report will show the data the end users want, otherwise, the end users will see the error textbox to tell them the parameter value is incorrect.
    Hope this help,
    thanks,
    Jerry

  • How to disable the trackpad button function?

    My trackpad botton goes mad, it's seems like hold you mouse's left button and you can click the right button, just can't open the file, my usb mouse works great only in Snow Leopard, in Leopard I can use none of mouse or trackpad.
    I think my trackpad button has broken, I want to disable this button, but I don't know how, can you give me some advise?
    I'm using Snow leopard( 10.6.2 ) now, how to disable the trackpad button in SL?

    I'm using Snow leopard( 10.6.2 ) now, how to disable the trackpad button in SL and keep my trackpad available, I prefer using touchpad, I think I can disable the button and still use touchpad?
    I apologies for my poor english.

  • How to disable the minimize button on the JFrame?

    Does anyone know how to disable the "Minimize" button on the JFrame (Window)?

    Why bother using a JFrame at all? Just extend JDialog, and there won't be a minimize button to worry about at all. The only drawback is that a JDialog doesn't put an icon in the taskbar, so you have to move/close other windows until you can see the JDialog window on the desktop.
    The windowMinimized stuff doesn't let you stop what the window is doing -- you just get an event telling you what happened.

  • How to disable the AET button on Web UI?

    Hi all,
    Does anyone know how to disable the AET button in the Web UI? Our customer doesnu2019t want the end users to change any configuration and the only thing left for this is hide/disable the AET functionality.
    Thank you very much in advance.
    Kind regards,
    Alvaro

    Alvaro,
    The AET should not be visible to end users, especially not in the production system.
    This should be done by authorisation.
    If you are referring to the personalization, you can disable this in the businessrole by selecting a value for the parameter PERSONALIZATION.
    If there are no values available, you can maintain them in sm30 --> PERSCV_PROFILE.
    Hope this helps.
    Regards,
    Pieter Rijlaarsdam

  • How to disable the salary button

    How to disable the salary button in "Combined Per & Asg Form WKFLW_NAME="US HRMS PERSON TASKFLOW" screen function.

    You should not modify the taskflow "US HRMS PERSON TASKFLOW" directly. Instead, create a new Taskflow that contains the navigation items you require, and then create a new function that uses the Taskflow.
    1. Create a Tasklfow
    2. Create a Function using the form "Combined Per & Asg Form" including the parameter WORKFLOW_NAME="XX HRMS PERSON TASKFLOW" (or whatever you have called it)
    3. Use this function in your menu definition.
    http://download-uk.oracle.com/docs/cd/B11454_01/11.5.9/acrobat/115hradm.pdf
    See section "Configuring Oracle HRMS" for more information on Taskflows.

  • How to disable user defined buttons

    hi,
    how to disable userdefined buttons in alv in webdynpro abap.
    thanks and regards,
    Sridevi.D

    Hi,
    Create attribute in context to control enabling/disabling action of a button. Bind this attribute to button. In some action method populate this attibute with boolean values.
    Reward point if useful.
    Regards,
    Karthick S

  • How to remove all ALV buttons?

    Hello all.
    Does anyone know how to remove all the ALV buttons?
    I now the IT_EXCLUDING option, but is there a different and
    faster way?
    (I'm using ALV classes).
    Thanks!

    hii..
    All the ALV Toolbar Buttons can be removed in Single Shot.
    There is a method in CL_GUI_ALV_GRID->SET_TOOLBAR_VISIBLE.
    it is protected method create class that is inheriting from CL_GUI_ALV_GRID.
    CALL METHOD ME->set_toolbar_visible
             EXPORTING
               visible = '0'
    *        EXCEPTIONS
    *          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.
    Set visible to '0' will disable all the buttons.
    Example Program:
    *DATA DECALRATIONS
    TYPES : BEGIN OF ty_sflight,
           carrid TYPE sflight-carrid,
           connid TYPE sflight-connid,
           Fldate TYPE sflight-fldate,
           price TYPE sflight-price,
           currency TYPE sflight-currency,
      END OF ty_sflight.
    DATA : IT_SFLIGHT TYPE TABLE OF TY_SFLIGHT,
            WA_SFLIGHT TYPE TY_SFLIGHT.
    DATA : IT_FCAT TYPE LVC_T_FCAT ,
            WA_FCAT TYPE LVC_S_FCAT.
    data : o_cont type REF TO cl_gui_custom_container ,
            o_grid type REF TO cl_gui_alv_grid.
    CLASS LCL_ALV DEFINITION INHERITING FROM CL_GUI_ALV_GRID.
       PUBLIC SECTION.
         METHODS : M1.
       ENDCLASS.
       CLASS LCL_ALV IMPLEMENTATION.
         METHOD M1.
           CALL METHOD ME->set_toolbar_visible
             EXPORTING
               visible = '0'
    *        EXCEPTIONS
    *          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.
         ENDMETHOD.
         ENDCLASS.
       START-OF-SELECTION.
         CALL SCREEN 200.
    *&      Module  STATUS_0200  OUTPUT
    module STATUS_0200 output.
       SET PF-STATUS 'ZDC'.
    *  SET TITLEBAR 'xxx'.
    endmodule.                 " STATUS_0200  OUTPUT
    *&      Module  USER_COMMAND_0200  INPUT
    module USER_COMMAND_0200 input.
    CASE SY-UCOMM.
       WHEN 'BACK'.
         LEAVE TO SCREEN 0.
         ENDCASE.
    endmodule.                 " USER_COMMAND_0200  INPUT
    *&      Module  GET_DATA  OUTPUT
    module GET_DATA output.
    SELECT * FROM SFLIGHT INTO CORRESPONDING FIELDS OF TABLE IT_SFLIGHT
                                                              UP TO 50 ROWS.
    CLEAR WA_FCAT.
    WA_FCAT-col_pos = '01'.
    WA_FCAT-fieldname = 'CARRID'.
    WA_FCAT-tabname = 'SFLIGHT'.
    WA_FCAT-ref_table = 'SFLIGHT'.
    APPEND WA_FCAT TO IT_FCAT.
    CLEAR WA_FCAT.
    WA_FCAT-col_pos = '02'.
    WA_FCAT-fieldname = 'CONNID'.
    WA_FCAT-tabname = 'SFLIGHT'.
    WA_FCAT-ref_table = 'SFLIGHT'.
    APPEND WA_FCAT TO IT_FCAT.
    CLEAR WA_FCAT.
    WA_FCAT-col_pos = '03'.
    WA_FCAT-fieldname = 'FLDATE'.
    WA_FCAT-tabname = 'SFLIGHT'.
    WA_FCAT-ref_table = 'SFLIGHT'.
    APPEND WA_FCAT TO IT_FCAT.
    CLEAR WA_FCAT.
    WA_FCAT-col_pos = '04'.
    WA_FCAT-fieldname = 'PRICE'.
    WA_FCAT-tabname = 'SFLIGHT'.
    WA_FCAT-ref_table = 'SFLIGHT'.
    APPEND WA_FCAT TO IT_FCAT.
    CLEAR WA_FCAT.
    WA_FCAT-col_pos = '05'.
    WA_FCAT-fieldname = 'CURRENCY'.
    WA_FCAT-tabname = 'SFLIGHT'.
    WA_FCAT-ref_table = 'SFLIGHT'.
    APPEND WA_FCAT TO IT_FCAT.
    CREATE OBJECT o_cont
       EXPORTING
    *    parent                      =
         container_name              = 'C1'
    .DATA O_ALV TYPE REF TO LCL_ALV.
       CREATE OBJECT O_ALV
       EXPORTING
         I_PARENT = O_CONT.
    CALL METHOD o_ALV->set_table_for_first_display
       CHANGING
         it_outtab                     = IT_SFLIGHT
         it_fieldcatalog               = IT_FCAT
    CALL METHOD O_ALV->M1.  "method called to remove all the toolbar buttons
    endmodule.

  • How to disable the Tools Button in Bex Analyzer

    Hi Guys,
    How do I disable the Tools button only in Bex Analyzer so as to avoid the users messing with Query Designer.
    Thanks,
    Recca

    Recca,
    Can you do this via authoirsations instead?  ie. Allow two types of users, Designers who have access and Users who don't.
    User will be able to access the Query Desinger but have no access to create or save. That should suffice.
    If you start tweaking with the toolbar it may have wider negative implications.
    Regards
    Gill

  • How to disable the cancel button in the ProgressMonitor

    hi,
    I need to know, is there any way to disable/remove the (cancel)button in the ProgressMonitor?
    One more problem is,
    Once i click the cancel button, isCanceled() return true, how to make it false again so that the process continue....
    It is very urgently.....
    please help me out.
    Thanks in advance.
    Regards,
    Deepa Raghuraman

    I don't think that's a good solution, because Cancel button itself is not disabled, so user is tempted to click it and nothing happens.
    A better but dangerous solution is this:
    progressMonitor = new ProgressMonitor(ProgressMonitorDemo.this,
                                         "Running a Long Task",
                                         "", 0, 100);
    progressMonitor.setMillisToDecideToPopup(0);
    progressMonitor.setMillisToPopup(0);
    progressMonitor.setProgress(0);
    JDialog dialog = (JDialog)progressMonitor.getAccessibleContext().getAccessibleParent();
    JOptionPane pane = (JOptionPane)dialog.getContentPane().getComponent(0);
    pane.setOptions(new Object[]{});Refer to the same question here [http://stackoverflow.com/questions/512151/how-do-i-disable-the-cancel-button-when-using-javax-swing-progressmonitor] .

  • How to disable (grey out) button in report

    Hi,
    Can any one; pls help how to disable button (grey out) on some specific condition.
    I have a report of 2 pages; In first page it displays few records; once click on specific record control goes to next page 2; And here i have button (template based button); Once click on this it perform pl/sql procedure.
    My requirement is: The button should disable (should not hide) when moves from page 1 to page 2 based on some specific returned values in page 2.
    I have return code in button conditions (Condition type = PL/SQL Function Body Returning a Boolean)
    Sample code is:
    if :value1 = 'disable_test_value' then
    return false;
    else
    return true;
    end if;
    The above code is working fine with button completely disappers if the :value1 = 'disable_test_value' (which is suppossed to be as we gave return false).
    My question is: Is there any way; we can still show button (but button disabled or grey out; so that no action can perform on this button )? And also show some text message in other text field when button is disabled?
    Thanks!!
    UK

    I have an example: http://apex.oracle.com/pls/otn/f?p=27168:1 using theme #2. You need to use a theme that has a "grayed-out" alternate button template.
    To accomplish this I:
    1) Created one item named P1_VALUE1 to contain the condition as to whether the button should be enable ("enable_test_value") or disabled ("disable_test_value").
    2) Created an enable button with a "Button Style" of "Template Based Button" with "Button Template" value of "Button". I had the "Condition" type of "PL/SQL Function Body Returning a Boolean" to be:
    if :p1_value1 = 'disable_test_value' then
    return false;
    else
    return true;
    end if;I had the "URL Target" to be: javascript:alert('Performing function ...');
    3) Create a disabled button with "Button Style" of "Template Based Button" with "Button Template" value of "Button, Alternate 3". I had the "Condition" type of "PL/SQL Function Body Returning a Boolean" to be:
    if :p1_value1 != 'disable_test_value' then
    return false;
    else
    return true;
    end if;I had the "URL Target" to be: javascript:alert('Performing function ...');
    Mike

  • How to disable the Add button of attachmentLink programatically in CO

    Hi All,
    Please let me know how to disable Add button created along with the view list link of attachmentLink item in OAF.
    I want to enable only the view list linkl and disable Add button.
    Thanks
    Pooja

    Hi Pooja,
    You can set the property insert allowed to false for the entity map related to attachment item in page definition.
    Now in your controller, you can set this to true if your condition is achieved.
    Dictionary[] entityMaps = attBean.getEntityMappings()
    entityMaps[0].remove("insertAllowed");
    entityMaps[0].put("insertAllowed", false);
    attBean.setEntityMappings(entityMaps);
    Hope it helps.
    Thanks,
    Deepak
    Edited by: Deepak Jain on Apr 6, 2010 11:01 PM
    Edited by: Deepak Jain on Apr 7, 2010 12:02 AM

  • How to disable the submit button

    Hello ,
    I have multiple controls on a page . I want to disable submit button until the user enters all the fields .
    How to do this . appreciate your help in this .
    rgds
    kumar

    Hi Kumar,
    watch this post: disabling the submit button
    Tobias
    http://apex-at-work.blogspot.com

  • How to disable the closing Button in the upper Frameborder

    Hey !
    I would like to disable the button in the right upper corner of my
    JDialog (In Windows the button with the cross int the right upper corner
    of a window).
    How can I do that.
    Thx advanced

    Thank you !
    I have already done this.
    But I dont like it so much.
    It would be nicer if you could disable somehow the buttons
    in the upper right corner.
    I know that it was possible in Delphi, but I cant find something
    to do it in Java.
    Somebody asked in this thread http://forum.java.sun.com/thread.jsp?forum=57&thread=389927&tstart=0&trange=15
    how to make your own borderstyle but the answeres there couldnt help me.
    May be there is a solution to influence the border of the Window somehow.

Maybe you are looking for