Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Editing ALV at cell-level

Former Member
0 Kudos

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á

5 REPLIES 5

Former Member
0 Kudos

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

former_member583013
Active Contributor
0 Kudos

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.

0 Kudos

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.

0 Kudos

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.

0 Kudos

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.