08-22-2007 8:07 PM
Hi!
My problem is I need to create an ALV grid which is editable at cell level. I could do this using BCALV_EDIT_02. But i need to change which cells are editable during the flow of the program and i can set new cell editable but if i make any change in the grid after i set new cell editable then all the edit properties will be set like when the program started. So for example if i fill a cell then all the newly set editable cell will become uneditable.
Does sombody know why this happens and how could i keep newly set editably cell editable?
Regards,
Zoltá
08-22-2007 8:16 PM
Hello,
An idea is to create the lalyout and catalog of the ALV during execution depending on the properties selected by the user.
It will take you a while to do it, byut its possible.
Bye
Gabriel
08-22-2007 8:18 PM
Try with this post...It's in Spanish, but the code can help you out -;)
<a href="http://atejada.blogspot.com/2007/04/celdas-editables-en-alv-oo.html">Celdas Editables en ALV / Editable Cells on ALV</a>
Greetings,
Blag.
08-22-2007 8:25 PM
Thanks, but i have to change which cell are editable in the program, and the one you showed me just sets some editable in the begining and that's it.
I guess i'll create a intermediary table in which i store the currently editable cells and set them so every time i diplay the grid.
08-22-2007 8:37 PM
Yeah...The code I send you do that...Stablish with fields can be modified and which are not....But it was just a indication of how to achieve what you must do...
At runtime you must modify the table that handles the "modify" and "not modify" fields....refresh the ALV and that's it -:)
I don't have the code right here, but it's not that hard to accomplish..Give a try and post your code...
Greetings,
Blag.
08-22-2007 8:43 PM
I did that exactly, but my problem is that if I refresh the ALV as you said then SAP somehow sets every editable cell back the way it used to be when the program started.
It just modifies the LVC_T_STYL tables of my data table.