on 04-29-2010 8:55 AM
Hi,
I am facing a strange issue, that my alv table is opening as editable format even i havnt write editable coding in doinit() method. i have written my coding in domodify().
coding as follows:
WHEN 'PRIORITY'.
DATA: lr_column_settings_PRIORITY TYPE REF TO if_salv_wd_column_settings,
lr_column_PRIORITY TYPE REF TO cl_salv_wd_column,
lr_input_field_PRIORITY TYPE REF TO CL_SALV_WD_UIE_DROPDOWN_BY_KEY.
lr_column_settings_PRIORITY ?= lo_value.
lr_column_PRIORITY = lr_column_settings_PRIORITY->get_column( 'PRIORITY').
if MODIFY_PARAM eq ABAP_TRUE.
*Getting the columns settings.
CREATE OBJECT lr_input_field_PRIORITY EXPORTING SELECTED_KEY_FIELDNAME = 'PRIORITY'.
lr_column_PRIORITY->set_cell_editor( lr_input_field_PRIORITY ).
lr_table_settings->set_read_only( abap_false ).
else.
CREATE OBJECT lr_input_field_PRIORITY EXPORTING SELECTED_KEY_FIELDNAME = 'PRIORITY'.
lr_input_field_PRIORITY->set_enabled( abap_false ).
lr_column_PRIORITY->set_cell_editor( lr_input_field_PRIORITY ).
lr_table_settings->set_read_only( abap_false ).
ENDIF.
What is wrong in this and how initially table is populating as editable?
Please help me on this issue.
Thanks,
GS
HI,
Did you check like this
lr_table_settings->set_read_only( abap_true ).
Regards and Best wishes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I found the issue. I have passed parameter in domodify(). Now i removed that and code works well. Thanks for all your support.
GS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have tried by giving abap_true also. Still i am facing the same issue. any other suggestions..?
Thanks,
GS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CREATE OBJECT lr_input_field_PRIORITY EXPORTING SELECTED_KEY_FIELDNAME = 'PRIORITY'.
lr_column_PRIORITY->set_cell_editor( lr_input_field_PRIORITY ).
lr_table_settings->set_read_only( abap_false ).
else.
CREATE OBJECT lr_input_field_PRIORITY EXPORTING SELECTED_KEY_FIELDNAME = 'PRIORITY'.
lr_input_field_PRIORITY->set_enabled( abap_false ).
lr_column_PRIORITY->set_cell_editor( lr_input_field_PRIORITY ).
lr_table_settings->set_read_only( abap_false ).
ENDIF.
Write down the Read only property in your code as ABAP_TRUE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.