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

Former Member
0 Kudos

how to disable select all button from alv??

plz help

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Are u using classical alv or alv oops. In case u r using classical alv then there is an importing parameter in 'REUSE_ALV_GRID_DISPLAY' IT_EXCLUDING. U can pass the function code of select all button which is "&ALL" to this parameter. This will deactivate the button.

11 REPLIES 11

Former Member
0 Kudos

u will have to define your own pf-status for That

0 Kudos

i m not getting .....can you explain ????

Former Member
0 Kudos

First of all you have to copy the standard PF-STATUS into your own Z-PF-STATUS and then you can do what all the changes you want

0 Kudos

Hi Abhishek,

Go to SE41 and create a New PF-STATUS ZSPACE for your program. You can do it by clicking on COPy button in SE41. Once it is copied remove the Select ALL button from ZSPACE and then use that PF-STATUS in your program like SET PF-STATUS 'ZSPACE'.

Thanks & Regards,

Nagaraj Kalbavi

former_member705122
Active Contributor
0 Kudos

Pass the value

CL_GUI_ALV_GRID=>MC_FC_SELECT_ALL

to parameter

IT_TOOLBAR_EXCLUDING

of the method

SET_TABLE_FOR_FIRST_DISPLAY .

Former Member
0 Kudos

Hi,

Are u using classical alv or alv oops. In case u r using classical alv then there is an importing parameter in 'REUSE_ALV_GRID_DISPLAY' IT_EXCLUDING. U can pass the function code of select all button which is "&ALL" to this parameter. This will deactivate the button.

0 Kudos

HELLO NIKHIL,

when i pass the fuction code in fm , shortdumb (type-conflict)occurs

0 Kudos
data: it_exlcude type slis_t_exclude.  "Define like this..


...
..
append '&ALL' to it_exclude.   "append like this,,,

Now pass the it_exclude to the alv parameter.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
exporting
...
..
it_excluding   = it_exlcuding

0 Kudos

hello vijay

data: it_exlcude type slis_t_exclude.

in type slis_t_exclude is not defined in slis pool.......

0 Kudos

Sorry it was SLIS_T_EXTAB .

it is my mistake.

Former Member
0 Kudos

Hi Abhishek,

Try out the below code

DATA: t_exclude TYPE slis_t_extab,

wa_exclude TYPE slis_extab.

wa_exclude-fcode = '&ALL' .

append wa_exclude to t_exclude.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

it_fieldcat = it_fieldcat

IT_EXCLUDING = t_exclude

it_events = it_events[]

i_callback_program = sy-repid

is_layout = gs_layout

i_save = g_save

is_variant = gx_variant

TABLES

t_outtab = t_final.