Can we disable the default push buttons on the ALV Grid

Hi,
    Can we disable the default push buttons on the ALV
Grid Control...
    If so, pls send me the procedure...
thanks and regards
   raghu

Hi,
In the PBO:
  PERFORM f9100_exclude_functions USING :
                         i_exclude[]  '&CHECK',
                         i_exclude[]  '&REFRESH',
                         i_exclude[]  '&LOCAL&CUT' ,
                         i_exclude[]  '&LOCAL&COPY',
                         i_exclude[]  '&LOCAL&PASTE',
                         i_exclude[]  '&LOCAL&PASTE_NEW_ROW',
                         i_exclude[]  '&LOCAL&UNDO' ,
                         i_exclude[]  '&LOCAL&APPEND',
                         i_exclude[]  '&LOCAL&INSERT_ROW',
                         i_exclude[]  '&LOCAL&DELETE_ROW',
                         i_exclude[]  '&SORT_ASC',
                         i_exclude[]  '&SORT_DSC',
                         i_exclude[]  '&FIND',
                         i_exclude[]  '&SUMC',
                         i_exclude[]  '&SUBTOT',
                         i_exclude[]  '&MINIMUM',
                         i_exclude[]  '&MAXIMUM' ,
                         i_exclude[]  '&VGRID' ,
                         i_exclude[]  '&VEXCEL' ,
                         i_exclude[]  '&VCRYSTAL',
                         i_exclude[]  '&HTML',
                         i_exclude[]  '&MAINTAIN',
                         i_exclude[]  '&SAVE',
                         i_exclude[]  '&GRAPH',
                         i_exclude[]  '&HELP',
                         i_exclude[]  '&ALL' ,
                         i_exclude[]  '&SAL' .
*                         i_exclude[]  '&EXCLALLFC'.
*&      Form  f9100_exclude_functions
* This form exclude buttons  from the toolbar.
*      -->P_IEXCLUDE  text
*      -->P_1150   text
FORM f9100_exclude_functions USING   pexclude LIKE i_exclude
                               value(pfunction).
  DATA: l_exclude TYPE ui_func.
  l_exclude = pfunction.
  APPEND l_exclude TO pexclude.
ENDFORM.                    " f9100_exclude_functions
This will exculde the default push buttons.
Let us know if it works for you.
Regards,
Anjali

Similar Messages

  • How to add a push button on an ALV grid  ?

    Hi,
    How to add a push button on an ALV grid, using ON_TOOLBAR, ON_USERCOMMAND Methods. Clicking on that push button, a new screen has to be displayed.

    Hi,
            Assuming that you want to have a "push-button" column, i.e. push-buttons within an ALV grid then you need to implement the following steps:
    (1) Set the style of the column as button
      ls_fcat-style = CL_GUI_ALV_GRID => MC_STYLE_BUTTON.
    (2) When the user pushes the button event BUTTON_CLICK is triggered. Thus, define an appropriate event handler method.
    <b>Reward points</b>
    Regards

  • How to disable the custom push button in Classic ALV

    Hi All,
    Iam Using Classic Alv (with out classes).I have a created a push button.now at run time i want to make it dynamic .
    iam using REUSE_ALV_GRID_DISPLAY
    for ex.
    i have some records in my out put.
    i have a push button "INSERT"
    For first time when i clicked it will be inserted.
    Now if i run the report for the same inputs as top,i will get the records.But the "INSERT" push button should be disable.IS that Possible ??
    If yes kindly send me the solution.

    Hi,
    Here is the piece of code for your understanding...
    FORM f4200_pf_status_set USING i_extab TYPE slis_t_extab.
      REFRESH i_extab.
      PERFORM f4210_exclude_fcodes CHANGING i_extab.( This form is mentioned below ).
      SET PF-STATUS 'STANDARD' OF PROGRAM '(Program name)' EXCLUDING i_extab.( This line of code will excude the function u don't want)
    ENDFORM.
    FORM f4210_exclude_fcodes USING i_extab TYPE slis_t_extab.
      DATA: ws_fcode TYPE slis_extab.
      CLEAR ws_fcode.
      ws_fcode = '&EB9'.           
      APPEND ws_fcode TO i_extab.
      ws_fcode = '&ABC'.           
      APPEND ws_fcode TO i_extab.
      ws_fcode = '&NFO'.           
      APPEND ws_fcode TO i_extab.
      ws_fcode = '&LFO'.          
      APPEND ws_fcode TO i_extab.
    ENDFORM.                    " f4210_exclude_fcodes
    I hope this clarifies. Revert for any queries.
    Cheers,
    Venkat

  • WPS push button on the Linksys WRT610N router does not work. Please help.

    Hi,
    I am facing problems of the WPS Push Button on the Linksys WRT610N version 2.0 router which has stopped working. I don't see the Blue LED blinking. The WPS button no more works on the router. It was working before. I did a firmware upgrade. Could this be the cause?
    Please help me in solving this issue at the earliest.
    Leo.

    when you reset the router, did you notice that your network name changed?
    also check the settings on the router if the wps is enabled.
    with a computer wired to the router, are you able to go online?
    follow the instructions in this page to setup wps
    to connect another computer to the network, follow the instructions here

  • When I try to download a free or purchased APP I get a box that says userID is disabled and a push button with "OK". I can't download any apps

    when I try to download a free or purchased APP I get a box that says userID is disabled and a push button with "OK". I can't download any apps

    Depending on why it's been disabled, you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
    Or you might need to contact Apple : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
    If it then works on your computer's iTunes but not your iPad then try logging out of your account on the phone by tapping on the id in Settings > Store and then log back in and see if that 'refreshes' the account on it

  • How can you get your submit buttons to be a single click instead of the default double click?  (The

    How can you get your submit buttons on the quiz template to be a single click instead of the default double click?  (The option to choose double click or not is not showing in properties for this).

    Hmmm... Submit button doesn't need a double click at all. Maybe you are talking about the two-step process? When you click on Submit, the feedback appears with the message to click anywhere or press Y. Is that what you are talking about? If you are talking about a real double-click, something must be wrong in your file. And which version are you using?
    http://blog.lilybiri.com/question-question-slides-in-captivate
    Lilybiri

  • Tm2t - Can I disable the wi-fi button on the side?

    I've accidentally disabled my wi-fi a few times when in tablet mode by pressing in the button on the side.  Is there any way to disable it when I boot up my computer?  That is, I'd still like to keep wi-fi on, but I just want to prevent the button on the side from turning it off.
    Thanks for any help provided.

    There is no way to disable the wireless button on the side of tm2...
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • What is the default key command for the COMMAND key?I seem to have changed it somehow along the way and now when I push the command key it hides all windows or shows desk top I need to correct this as soon as possible-.any ideas?

    What is the default key command for THE COMMAND (apple) key? I seem to have changed it somehow along the way and now when I push the command key (only) it hides all open windows and shows the desk top and when I push it again it shows all windows again...I need to return to default A.S.A.P. just this one key...Any ideas? Thanks in advance...

    Go to
     > System Preferences > Keyboard
    Click on the 'Keyboard' tab and hit the 'modifier keys...' button. You can see and change the defaults there.
    As I'm not sure if all the labels are the same in Lion, he's a screenshot from Snow Leopard. It should be similar enough:

  • Push button on the alvgrid tool bar?

    how can u place push button on the ALV GRID TOOL BAR?

    Hi,
    1. create the local class and implement the Toolbar event.
    2. within the event to add the new button.
    see the below example code.
    CLASS LCL_EVENT_HANDLER DEFINITION.
      PUBLIC SECTION.
        METHODS:
        HANDLER_TOOLBAR      FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID
                                 IMPORTING  E_OBJECT E_INTERACTIVE     ,
        HANDLER_USER_COMMAND FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
                                 IMPORTING E_UCOMM                     .
    ENDCLASS.                    "lcl_event_handler DEFINITION
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    Toolbar -----Create 'Add Issue' button
      METHOD HANDLER_TOOLBAR.
        DATA:  L_WA_TOOLBAR  TYPE  STB_BUTTON.                                          "  Toolbar
        CLEAR: L_WA_TOOLBAR.
    Button Type
        L_WA_TOOLBAR-BUTN_TYPE  =  C_BUTTON_TYPE   .            "  3.
        APPEND L_WA_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
    Add Issue Button.
        CLEAR: L_WA_TOOLBAR.
        L_WA_TOOLBAR-FUNCTION   =  'ADD_MI'   .                                         "  'ADD_MI'   .
        L_WA_TOOLBAR-ICON       =  'ICON_CREATE'.
        L_WA_TOOLBAR-QUICKINFO  =  'CREATE'   .                                         "  'Add Issue'.
        L_WA_TOOLBAR-TEXT       =  'CREATE'   .                                         "  'Add Issue'.
        L_WA_TOOLBAR-DISABLED   =  ''.
        APPEND L_WA_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
        CLEAR: L_WA_TOOLBAR.
      ENDMETHOD.                    "handler_toolbar
    User Actions Events-- Handle 'Add Issue' Button Click.
      METHOD HANDLER_USER_COMMAND.
        CASE E_UCOMM.
    Add Issue Button.
          WHEN C_ADD_MI.
            IF NOT G_MATNR IS INITIAL.
              FG_REFRESH  =  C_TRUE.
              PERFORM F_ADD_MEDIAISSUE.
            ENDIF.
        ENDCASE.
    Refresh Control
        CALL METHOD CL_GUI_CFW=>FLUSH
          EXCEPTIONS
            CNTL_SYSTEM_ERROR = 1
            CNTL_ERROR        = 2
            OTHERS            = 3.
    Handle Exceptions
        IF SY-SUBRC <> 0.
          CASE SY-SUBRC.
            WHEN 1.
              G_ERROR_TEXT = TEXT-026.                                        "  'Control System Error'.
            WHEN 2.
              G_ERROR_TEXT = TEXT-027.                                        "  'Control CL_GUI_CFW Has Raised Error'.
          ENDCASE.
            MESSAGE G_ERROR_TEXT TYPE 'E'.
        ENDIF.
    Refresh Alv Grid.
        PERFORM F_REFRESH_GRID.
      ENDMETHOD.                    "handler_user_command
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    Object Ref. Event Class.
    DATA: OBJ_EVENT_HANDLER TYPE REF TO LCL_EVENT_HANDLER.
    refer the sample program BCALV_GRID_05 in SE38
    Reward if found helpful.
    Regards,
    Boobalan Suburaj

  • How can I disable POST GOODS RECEIPT button in transactions VL31N/VL32N via Authorization or Role Level.

    How can I disable POST GOODS RECEIPT button in transactions VL31N/VL32N via Authorization or Role Level, There is a requirement from my client  and i propose two methode
    1- Creation of Ztcode ZVL32N and do changes ABAP program level
    2- Disablement via Authorization/Role level - but how can i find the auth object/ Authorization corresponds to POST GOODS RECEIPT button in VL32N

    I think you can make use of SHD0 - Transaction variant to achieve this. You can make it as grayed out while recording steps in SHD0.

  • Prob with Push Buttons in the selection screen

    Hi All,
    1) I have 6 push buttons in the selection screen(Normal Report), 3 in a first row(P11, P12, P13) and 3 in the second row(P21, P22, P23). If I press one push button(for ex P11) the other two Push buttons(P12 P13) should grey out(Inactive mode). If I press P22, P21 & P23 shoul grey out.
    2) I need color change for the Inactive push buttons.
    Thanks
    Kris

    Can you please post your selection screen definition? I don't understand what you want to achieve by greying out the other pushbuttons when one is pressed.
    Does that mean pushing one button will do nothing except greying out the buttons?
    Typically when you push a button, you want to continue to execute the required processing for that button not just grey out other pushbuttons and stay in the selection screen.
    Anyway, you can achieve that using the following logic. I am not sure how and if you can achieve the color change.
    TABLES: sscrfields.
    DATA: v_button_pushed(5).
    SELECTION-SCREEN PUSHBUTTON /1(10) p11 USER-COMMAND push1.
    SELECTION-SCREEN PUSHBUTTON 12(10) p12 USER-COMMAND push2.
    SELECTION-SCREEN PUSHBUTTON 23(10) p13 USER-COMMAND push3.
    SELECTION-SCREEN PUSHBUTTON /1(10) p21 USER-COMMAND push4.
    SELECTION-SCREEN PUSHBUTTON 12(10) p22 USER-COMMAND push5.
    SELECTION-SCREEN PUSHBUTTON 23(10) p23 USER-COMMAND push6.
    INITIALIZATION.
      p11 = 'Push11'.
      p12 = 'Push12'.
      p13 = 'Push13'.
      p21 = 'Push21'.
      p22 = 'Push22'.
      p23 = 'Push23'.
    AT SELECTION-SCREEN OUTPUT.
      CASE v_button_pushed.
        WHEN 'PUSH1'.
          LOOP AT SCREEN.
            CHECK screen-name <> 'P11'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDLOOP.
        WHEN 'PUSH2'.
        WHEN 'PUSH3'.
        WHEN 'PUSH4'.
        WHEN 'PUSH5'.
        WHEN 'PUSH6'.
        WHEN OTHERS.
      ENDCASE.
    AT SELECTION-SCREEN.
      v_button_pushed = sscrfields-ucomm.

  • 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

  • Is there a way to remove or disable the "Clear List" button from the downloads list?

    Is there a way to remove or disable the "Clear List" button in the downloads list? I like to _keep_ my list populated with what I've downloaded but occasionally end up with it getting clicked on accident and lose the whole thing. Given that "Tools > Clear Recent History" dialog can accomplish the same thing I find Clear List to be irritating. So can I get rid of it in any way?
    == This happened ==
    Just once or twice
    == my brain lapsed on me ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4

    Hello Chris.
    # go into ''Help > Troubleshooting Information...''
    # click ''Open Containing Folder''
    # in the folder that appears (new windo in windows explorer), go into the folder ''chrome''
    # open the file ''userChrome.css'' with a text editor
    # at the end of the file, in a new line, add the following code:
    <code>
    button#clearListButton
    </code>
    I haven't tested this, but it should work flawlessly. You can always erase this line if you want the button back. This will only work on your Firefox profile. If you want these changes to span across all Firefox users on your computer, please tell me.

  • Push Buttons in the custom Container

    Hi
    I have created one container using cl_gui_custom_container.
    Now I have splitted the container into two parts as left and right using cl_gui_splitter_container.
    Is there any way to create push buttons in the left container.
    Regards
    Vijay

    Pushbutton is an example of classic control while custom container is an example of GUI control . You can't mix controls of first type with the latter meaning you can embed classic control in GUI container. You can have such control only outside any container (on screen canvas). This is very common that you have docking container on the left and classic controls on the right side of the screen (not container)
    To be able to have a button inside container, you will have to use cl_gui_toolbar class adding your options there and handling them as normal OO event. This way you only combine GUI controls (toolbar + container). Otherwise it is not possible.
    Regards
    Marcin

  • How to disable a default selection checkbox in the tableview

    Hi All,
             How to disable a default selection checkbox in the tableview ???
    I have  a tableview  with a iterator class mentioned on the iterator attribute of the table view. Table is a MULTISELECT tableview . Is it possible to disable or make it invisible a particular row selection check box?.
    For my scenario I have Currency values on all the columns and I want to do a sub total overall total for all the price column fields in the last row of that table. I archived this functionality using Iterator class method. But I don't want the user to delete that last row in any case.
    Thanks for your help in advance.
    Thanks,
    Greetson

    Hi,
      You can NOT disable the "Checkbox" of particular row using HTMLB. I had the same requirement. I achieved using <b>2 Tableviews</b>, one after another. 1st tableview will show all the rows and 2nd Tableview(without Table Header) and without any row. The <b>total</b> will be displayed as <b>Column title</b> of 2nd Tableview.
    Here is the code of 2nd tableview which we used to display the Total:
              <htmlb:tableView id                  = "tv2"
                               headerVisible       = "false"
                               keyColumn           = "appid"
                               footerVisible       = "false"
                               selectionMode       = "SINGLESELECT"
                               design              = "ALTERNATING"
                               fillUpEmptyRows     = "false"
                               visibleRowCount     = "0"
                               width               = "100%"
                               table               = "<%= tot_header %>" >
                <htmlb:tableViewColumns>
                  <htmlb:tableViewColumn columnName = "empno"
                                         title      = "Total"
                                         width      = "50"
                                         type       = "TEXT" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "ename"
                                         title      = "  *      "
                                         width      = "90"
                                         type       = "TEXT" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "appamount"
                                         title      = "   <%= tot_appamt %> "
                                         width      = "60" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "ugjr_amt"
                                         width      = "60"
                                         title      = "<%= tot_ugjr %>" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "apprvd"
                                         width      = "50"
                                         title      = "*" >
                  </htmlb:tableViewColumn>
                </htmlb:tableViewColumns>
              </htmlb:tableView>
    Hope this will help you.
    <b>Note: Reward each useful post.</b>
    Raja T
    Message was edited by:
            Raja T

Maybe you are looking for

  • How I can change this query, so I can display the name and scores in one r

    How I can change this query, so I can add the ID from the table SPRIDEN as of now is giving me what I want: 1,543     A05     24     A01     24     BAC     24     BAE     24     A02     20     BAM     20in one line but I would like to add the id and

  • Error message while creating a ztable

    Hi, I am trying to create a ztable with 2 fileds mandt and age-which is user created dataelement and domain and now when i am  trying to activate the table i get  warning "Enhancement category for table missing" "Enhancement category for Include or s

  • Need to consider UNIX Path more than 40 Chars in a FM

    Can anyone suggest me a way where we can have a list of all UNIX directories, when UNIX path is given. I know a FM SUBST_GET_FILE_LIST which serves this purpose. But it accepts only 40 chars for UNIX path. But it should be more than 40 characters ser

  • Change busy cursor

    Hi guys,    I am trying to change app's busy cursor, but haven't been successful yet.  I have create a .swf file that work fine.  Next I tired the following code in my application init fuction                 var style:CSSStyleDeclaration = StyleMana

  • ScrollPane woes 2

    Hi, I try to attach a ScrollPane to a TextField with some text, but I have 2 bugs: The scrollBar is shown inside Flash testing movie environment, but not on the server, even when the text is long enough for a scrollbar. Even if there is no scrollbar,