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: 

Change the color of edited cell based on condition as soon as u press enter

Former Member
0 Kudos

Hello all,

We have a designed an editable ALV(OOPS). We can change the color of the editable cell based on condition but not as soon as the user press ENTER. How can we achieve this???

Thanx in advance,

Regards,

Vishu.

2 REPLIES 2

Former Member
0 Kudos

Hi!

to respond on enter u can use....

call method r_alv_grid->register_edit_event

exporting

i_event_id = cl_gui_alv_grid=>mc_evt_enter.

and then the changes could be made on enter click.

0 Kudos

Hello Richa,

Thanks for ur response... I have already coded what u have mentioned...

But the problem is as follows.....

First i will edit row 1, then press enter, no effect in color of row 1...

Then i will edit row 2 , again press enter, this will change the color of row 1 now but not row 2.

but we want to change the color of row 1, when we press enter for the first time itself...

how to solve this????