on 02-27-2008 3:56 PM
Hello,
I show some Records in my ALV and Column PersonalNumber is noneditable.
and I have created Append Row Button. If I click on this Button, then new added PersonalNumber should
be editable and old PersonalNumbers should be noneditable. How can we realize that?
otherwise; How can we make some editable and some noneditable in ALV?
Thanks!
with my Best Regards
Beserithan Malabakan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this code for Editable ALV.
DATA: LR_COLUMN_SETTINGS TYPE REF TO IF_SALV_WD_COLUMN_SETTINGS,
LR_INPUT_FIELD TYPE REF TO CL_SALV_WD_UIE_INPUT_FIELD.
LR_COLUMN_SETTINGS ?= L_VALUE.
LR_COLUMN = LR_COLUMN_SETTINGS->GET_COLUMN( 'Your Field' ).
CREATE OBJECT LR_INPUT_FIELD EXPORTING VALUE_FIELDNAME = 'Your Field'.
LR_COLUMN->SET_CELL_EDITOR( LR_INPUT_FIELD ).
If any doubts let me know.
Thanks.
Edited by: Viji on Feb 28, 2008 12:14 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to be a little tricky to do this.
First of all make the ALV editable.
DATA:
lr_table_settings TYPE REF TO if_salv_wd_table_settings.
lr_table_settings ?= wd_this->r_table .
lr_table_settings->set_read_only( abap_false ).
Then add Text views as Input elements in your ALV for non editable columns
and Input fields for editable columns.
Hope this solves your problem.
Regards,
Ismail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.