Application Development and Automation 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: 
Read only

Disable Checkbox

Former Member
0 Likes
449

Hi,

I have an OO ALV with checkboxes against each row, i want to check if a flag is set to 'X' for that perticular record then the check box agianst the record must be disabled otherwise it should be open for input. How can i do it?

Regards.

Hi,

I have an OO ALV with checkboxes against each row, i want to check if a flag is set to 'X' for that perticular record then the check box agianst the record must be disabled otherwise it should be open for input. How can i do it?

Regards.

2 REPLIES 2
Read only

Former Member
0 Likes
422

Hi...

Check...

FORM get_select_data.

DATA : l_t_rows TYPE lvc_t_row,

l_r_rows TYPE lvc_s_row,

l_t_rows1 TYPE lvc_t_row,

l_r_rows1 TYPE lvc_s_row,

l_f_lines TYPE i.

REFRESH: l_t_rows,l_t_rows1, g_t_formdata.

CALL METHOD g_r_grid->get_selected_rows

IMPORTING et_index_rows = l_t_rows.

CALL METHOD g_r_grid1->get_selected_rows

IMPORTING et_index_rows = l_t_rows1.

IF l_t_rows[] IS INITIAL AND l_t_rows1[] IS INITIAL.

MESSAGE e347(06).

ENDIF.

This will get you the selected button, you can write ur logic from here..

Hope this Helps .

Praveen

Read only

Former Member
0 Likes
422

use

cl_gui_alv_grid=>mc_style_disabled

check program BCALV_EDIT_05

Regards

Vasu