Application Development and Automation 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: 
Read only

ALV Toolbar

Former Member
0 Likes
802

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
732

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

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.

3 REPLIES 3
Read only

Former Member
0 Likes
733

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

Read only

Former Member
0 Likes
732

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>

Read only

0 Likes
732

Thanks a ton!!!!!!!!!!!!!!!!!

issue resolved....Thanks for all the replies.