10-01-2008 11:00 AM
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.
10-01-2008 11:13 AM
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
10-01-2008 11:02 AM
10-01-2008 11:05 AM
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
10-01-2008 11:13 AM
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
10-01-2008 11:20 AM
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.
10-01-2008 11:21 AM
plz remove box field in layout.it will not give you these buttons
10-01-2008 11:25 AM
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
10-01-2008 11:31 AM
when u r declaring ur layout whatr u using ?
use slis-layout-alv. type
hope it help u
10-01-2008 11:32 AM
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.
10-01-2008 11:38 AM
11-03-2008 3:04 AM
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
10-01-2008 12:01 PM
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.