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: 

ALV OO - disable Change layout & Duplicate rows on Toolbar -cl_gui_alv_grid

Former Member
0 Kudos

can any one tell me name of attribute for Change layout and Duplicate rows on Toolbar.

Like we have the below to exclude Copy row.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.

append ls_exclude to pt_exclude.

Similarly i want the name of attribute for Change layout and Duplicate rows in Class CL_GUI_ALV_GRID.

Thanks.

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

May be check for

MC_FC_MAINTAIN_VARIANT

MC_FC_SAVE_VARIANT

8 REPLIES 8

former_member194669
Active Contributor
0 Kudos

May be check for

MC_FC_MAINTAIN_VARIANT

MC_FC_SAVE_VARIANT

0 Kudos

Thanks for your input.

MC_FC_CURRENT_VARIANT

is the attribute to disable Change layout..

Yet to find out for Duplicate rows

0 Kudos

Do you mean 'Copy Rows' or 'Insert Rows'?

0 Kudos

I think it could be MC_FC_LOC_COPY_ROW

0 Kudos

Please check in attributes tab of class cl_gui_alv_grid and check for values under associate type UI_FUNC.

0 Kudos

Thanks for your reply.

It working fine..

Former Member
0 Kudos

You can find them all in SE24 type in cl_gui_alv_grid and go to the 'Attirbutes' tab. All the buttons start with MC_FC.

0 Kudos

Use MC_FC_LOC_COPY_ROW or MC_FC_LOC_COPY.