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 OM can't be edit

Former Member
0 Kudos

I am using the ALV OM, and i user following codes to offer a check box in the output ALV ,which users can select the data from the list :

data: begin of itab

chek (1)

fields

...

end of itab

try.

lr_column ?= lr_columns->get_column( 'CHECKBOX' ). "a field where the * value can be either 'X' or ' ' (space).

lr_column->set_cell_type( if_salv_c_cell_type=>checkbox_hotpot ).

lr_column->set_long_text( 'CHECKBOX' ).

catch cx_salv_not_found. "#EC NO_HANDLER

endtry.

But it's so strange that <b>,this checkbox can't be edit or mark in list screen....How can I solve this problem??</b>

Appricate you help .Thanks in advance.

2 REPLIES 2

Former Member
0 Kudos

Hi,

While building the field catalog for the field Chek set the edit parameter to 'X'.

And also in PAI modify the indernal table.

<b>Reward if helpful.</b>

Former Member
0 Kudos

It looks like you are using SALV (Simplified ALV).

While SALV has many nice features, it does not allow editable fields. In simplifying ALV, many features were left out.

You have to use CL_GUI_ALV_GRID or function modules to allow for editable fields.

You cannot do this with SALV. Unfortunately, none of the major tutorials that I have seen tell you this, which is a major oversight.

Good luck

Brian