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: 

how to remove the select button from the alv grid

Former Member
0 Kudos

Hi,

I am using the Function modules for alv report,

My 1st field in the list is checkbox,

User can select the checkbox for further process.

My problem is I want to remove the standards select option from alv.

I have searched in slis_layout_alv for any option, but I could not.

Please help me.

Regards

Rajan

3 REPLIES 3

uwe_schieferstein
Active Contributor
0 Kudos

Hello Rajan

In OO-based layouts (LVC_S_LAYO) you have to change ls_layout-SEL_MODE.

A similar field should be available in the old-fashioned SLIS layout, too.

For more details please refer to:

[An Easy Reference For ALV Grid Control|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907]

Regards

Uwe

Former Member
0 Kudos

If I understand your question right, define a GUI for your ALV and deactivate the standard buttons on that GUI.

Former Member
0 Kudos

HI

  • Exclude process options from ALV

PERFORM alv_excl. ( g_r_excl TYPE ui_functions . )

FORM alv_excl.

APPEND cl_gui_alv_grid=>mc_mb_sum TO g_r_excl.

APPEND cl_gui_alv_grid=>mc_mb_subtot TO g_r_excl.

APPEND cl_gui_alv_grid=>mc_fc_graph TO g_r_excl.

APPEND cl_gui_alv_grid=>mc_fc_info TO g_r_excl.

APPEND cl_gui_alv_grid=>mc_fc_print_back TO g_r_excl.

ENDFORM. " alv_excl

CALL METHOD g_r_grid->set_table_for_first_display

EXPORTING

is_layout = g_r_layo

is_variant = g_r_variant

it_toolbar_excluding = g_r_excl

i_save = 'X'

CHANGING

it_outtab = g_t_yetprint[]

it_fieldcatalog = g_t_fieldcat.

Options appended in g_r_excl, will be excluded from ALV

Praveen