09-07-2007 6:34 AM
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.
09-07-2007 11:06 AM
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>
09-07-2007 7:37 PM
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