2007 Feb 23 9:11 AM
Hi,
Please help me to disable the Insert with Overwrite button in my ALV toolbar,I have successfully disabled few ,but this is giving problem.
thanks.
2007 Feb 23 9:25 AM
DATA:
ls_exclude TYPE ui_func.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.
APPEND ls_exclude TO p_lt_exclude.
CALL METHOD gp_overdue_alv->set_table_for_first_display
EXPORTING
is_variant = ls_variant
i_save = c_a
is_layout = ls_layout
it_toolbar_excluding = lt_exclude
2007 Feb 23 9:25 AM
DATA:
ls_exclude TYPE ui_func.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.
APPEND ls_exclude TO p_lt_exclude.
CALL METHOD gp_overdue_alv->set_table_for_first_display
EXPORTING
is_variant = ls_variant
i_save = c_a
is_layout = ls_layout
it_toolbar_excluding = lt_exclude
2007 Feb 23 9:53 AM
add the below code to remove <b>insert with overwrite</b> button in tool bar of ALV
<b>DATA : ls_exclude TYPE ui_func,
pt_exclude TYPE ui_functions.
ls_exclude = cl_gui_alv_grid=>mc_mb_paste .
APPEND ls_exclude TO pt_exclude.</b>
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'JTAB'
is_layout = gs_layout
is_variant = gs_variant
i_save = x_save
<b> it_toolbar_excluding = pt_exclude</b>
is_print = is_print
CHANGING
it_outtab = jtab[]
it_sort = it_sort
it_filter = it_filt
it_fieldcatalog = i_fieldcat.
If u r removing the toolbar buttons by using the function code then the function code of insert with overwrite button is
<b>&MB_PASTE</b>
2007 Feb 24 4:50 AM
Thanks a ton!!!!!!!!!!!!!!!!!
issue resolved....Thanks for all the replies.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |