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: 

Disable select button in ALV report.

Former Member
0 Kudos
148

Hi,

i have an alv report with a select colunn, is there a way to disable a select botton in a specific row ?

for example i have a report with 30 rows i want to disable the select botton in row 15.

thanks

Elad.

3 REPLIES 3

Former Member
0 Kudos
46

Hi,

Try this

DATA ls_stylerow TYPE lvc_s_styl .

DATA lt_styletab TYPE lvc_t_styl .

  • Populate style variable (FIELD_STYLE) with style properties

LOOP AT it_ekko INTO wa_ekko. "loop on your internal table

IF sy-tabix = 15.

ls_stylerow-fieldname = 'SELECT' .

ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.

"set field to disabled

APPEND ls_stylerow TO wa_ekko-field_style.

MODIFY it_ekko FROM wa_ekko.

ENDIF.

ENDLOOP.

Thanks,

Anitha A

0 Kudos
46

i am using SALV

0 Kudos
46

Hi,

check the below link.

Thanks,

Anitha A