Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

remove select_all

Former Member
0 Kudos

Hi,

How to remove the Select All button in the grid (OO method - cl_gui_alv_grid) and the buttons for selecting the rows?

Thanks & Regards,

SAP Lover.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

If you want an example of what Krutiman Das is saying

goto se38

program BCALV_EDIT_05

check out

form exclude_tb_functions

form create_and_init_alv

11 REPLIES 11

Former Member
0 Kudos

remove box in layout.

Former Member
0 Kudos

Hi,

pass this ui field CL_GUI_ALV_GRID=>MC_FC_SELECT_ALL in the IT_TOOLBAR_EXCLUDING parameter

Cheers,

KD

Edited by: Krutiman Das on Oct 1, 2008 12:05 PM

Former Member
0 Kudos

If you want an example of what Krutiman Das is saying

goto se38

program BCALV_EDIT_05

check out

form exclude_tb_functions

form create_and_init_alv

0 Kudos

Hi,

I want to remove the default Select All button which is there in the grid(not in the toolbar), It is there in the left hand top corner. Also I dont want to display those select row buttons which is there for every row.

Regards,

SAP Lover.

0 Kudos

plz remove box field in layout.it will not give you these buttons

0 Kudos

I have not given any box field in the layout. FYR:

FORM build_layout CHANGING p_gs_layout TYPE lvc_s_layo.

p_gs_layout-stylefname = 'GT_TAB_CONTROL'.

p_gs_layout-sel_mode = 'A'.

ENDFORM. " BUILD_LAYOUT

0 Kudos

when u r declaring ur layout whatr u using ?

use slis-layout-alv. type

hope it help u

0 Kudos

Hi,

Try this way-

Data:w_exclude_fn TYPE ui_functions.

Before you are calling the method SET_TABLE_FOR_FIRST_DSIAPLY write-

APPEND cl_gui_alv_grid=>MC_FC_SELECT_ALL TO w_exclude_fn.

0 Kudos

Thanks for your reply But still those buttons are coming.

0 Kudos

Hi SAP Lover,

Try to set GS_LAYOUT-NO_ROWMARK = 'X'.

Hope it can help you to remove select all button in the grid.

Regards,

Ari

Former Member
0 Kudos

Hi,

Try like this....



Data:gt_excl_fun TYPE ui_functions.

APPEND cl_gui_alv_grid=>MC_FC_SELECT_ALL TO gt_excl_fun.

call method gcc_grid_dm->set_table_for_first_display
      exporting
*          i_structure_name              = c_s_dmhdr
        is_variant                    = gs_variant
        i_save                        = 'A'
        is_layout                     = gs_layout
        it_toolbar_excluding          = gt_excl_fun[]                           " Removing button
      changing
        it_outtab                     = gt_not_linked_debitmemos[]
        it_fieldcatalog               = gt_fcat[]
      exceptions
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        others                        = 4.
    if sy-subrc <> 0.
*     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.