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: 

checkbox in alv grid display

Former Member
0 Kudos

I have used checkbox in alv grid display

but in output left side Select all icon comes which selects all the lines

but I dont want this icon in output grid display

so please tell me how to disable that..

3 REPLIES 3

Former Member
0 Kudos

Hi Sagar,

I am not sure. but check with this method which can be used to set the selection mode "SET_SELECTION_MODE_BASE". Check the selection what is taking for the first time when you select select all icon then disable this using this method.

Thanks

Sam.

Former Member
0 Kudos

I think if you have row selections enabled then this probably defaults ... but you could try removing the row selection completely (i.e ls_layout-no_rowmark = 'X'.) and code up one of the ALV grid columns as "buttons" that you could trap the click yourself... -> if you run BCALV_TEST_GRID with "No Row Selection" ticked, and also tick the "Button on Column Level / CARRID" option you could see what this might look like for your purposes.

Jonathan

former_member491305
Active Contributor
0 Kudos

Hi ,

U have to give the function code which u dont want in output in IT_EXCLUDING itab.

<b>DATA:it_exclude TYPE slis_t_extab,

x_exclude TYPE slis_extab.

Clear:x_exclude, it_exclude.

x_exclude-fcode = '&ALL'. "Function code for Select ALL option

append x_exclude to it_exclude</b>.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

i_callback_top_of_page = 'TOP_F_PAGE1'

i_callback_program = sy-repid

<b> IT_EXCLUDING = it_exclude</b>

  • i_callback_pf_status_set = 'PF_STAT'

  • i_callback_user_command = 'USER_CMD'

i_structure_name = 'EKPO'

is_layout = layout1

  • it_fieldcat = fieldcat

TABLES

t_outtab = it_ekpo.

Note:this code will work only if you dont set your own PF status.It you customized the PF status,then you have to give that FCODE ,while setting up youe own PF Status.

Eg:

SET PF-STATUS 'GUI_ALV' Excluding '&ALL'.

Message was edited by:

Vigneswaran S