on 12-07-2009 7:50 AM
Hello Friends...
I am displaying an alv in a view ......now want to make it editable (alll columns ) on click of button ...
how can i do this ....Please provide some reffrence code...
Thanks and Regards...
Priyank Dixit
Hi,
create a attribute READ_ONLY type wdy_boolean inaside the node to which the ALV is bound..
Now for the ALV coulnns create an input field type reference cl_salv_wd_uie_input_field and bind the read only to this attribute..
initially before the table binding -
loop at lt_table into ls_table.
ls_table-read_only = abap_true. " non editable
modify lt_table from ls_table index sy-tabix.
endloop.
Now on the button handlder,
loop at lt_table into ls_table.
ls_table-read_only = abap_false. " editable
modify lt_table from ls_table index sy-tabix.
endloop.
Regards,
Lekha.
Edited by: Lekha on Dec 7, 2009 1:26 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you find the solution? If yes please share it. We are facing the same problem.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
Refer this article on EDITING ALV
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Refer this tutorial on Editiong ALV :
The approach would be :
1. Place input fields inside your ALV to make it editable.
2. Ensure that node binded to ALV has one attribute to make it Editable at runtime.
Rest refer ans by Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.