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 freeze the selection column in the table control of the module pool.

Former Member
0 Kudos

hi ,

in my module pool there is a row selection field <b>w/selcolumn</b> of the table control called as mark.

how to freeze the selection column where there is no record in the table control row.

or in other words where wa is initial.

thanks

ekta

1 REPLY 1

Former Member
0 Kudos

Hi all,

in the PBO of the screen the following code is written.

say the selection column is MARK and is declared in the data as well.

thanks

ekta

*************************C O D E **************************************************

MODULE disp_tabctrl1 OUTPUT.

IF flag_c = 1.

READ TABLE it_create_data INTO wa_material_data

INDEX tab_ctrl1-current_line.

ELSE.

READ TABLE it_material_data INTO wa_material_data

INDEX tab_ctrl1-current_line.

IF sy-subrc = 0.

IF ok_code_0101 = '&SEL1'.

mark = 'X'.

ELSEIF ok_code_0101 = '&DSEL'.

mark = ' '.

ENDIF.

ELSE.

LOOP AT SCREEN.

IF screen-name = 'MARK'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDIF.

index_t = tab_ctrl1-top_line.

index_d = tab_ctrl1-top_line + n.

ENDMODULE. " DISP_TABCTRL1 OUTPUT