Application Development and Automation 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: 
Read only

Partial ALV refresh

Former Member
0 Likes
1,282

Hi experts,

I have an ALV Grid with some editable fields. Once I have introduced something in this, it must not change.

This works properly, however, if I try to change field's content, it doesn't recover his original value until I refresh entire table.

How could I do to recover the original value after I try to modify this field?

Thanks for all!

Regards,

David

1 ACCEPTED SOLUTION
Read only

Patrick_vN
Active Contributor
0 Likes
1,225

So if I understand correctly, then only the empty editable fields can be changed? If that is the case, I would make sure the fields that aren't empty aren't editable.

In cl_gui_alv_grid you can do so by adding a styletable to each row for example.

6 REPLIES 6
Read only

LukaszPegiel
SAP Champion
SAP Champion
0 Likes
1,225

If I understand you correctly you want to disallow to change the value of the field once it was entered? If yes they use cell styles to make cell disabled for editing in event data_changed_finished.

Read only

0 Likes
1,225

Hi Łukasz,

Yes, You have understand me correctly.

It's possible to disable cell for editing on a single row?

I mean if it's possible to disable in a row and another no.

Thanks!

Read only

0 Likes
1,225

Using a styletable, you can make cell per cell editable (or not) .

example: or report BCALV_EDIT_05

Read only

0 Likes
1,225

Yes it's possible . Check this demo programs.

Read only

Patrick_vN
Active Contributor
0 Likes
1,226

So if I understand correctly, then only the empty editable fields can be changed? If that is the case, I would make sure the fields that aren't empty aren't editable.

In cl_gui_alv_grid you can do so by adding a styletable to each row for example.

Read only

Former Member
0 Likes
1,225

In answer to your other question:


David Sánchez wrote:


This works properly, however, if I try to change field's content, it doesn't recover his original value until I refresh entire table.

How could I do to recover the original value after I try to modify this field?

Thanks for all!

Regards,

David

The editable ALV grid if set up properly has an undo button which will undo any changes made.

Rich