Skip to Content
0

Restore row color after refreshing alv grid

Jun 29, 2017 at 03:09 AM

43

avatar image

Hi,

I have a question about row color in alv grid.

At first loading, I display records of Flights that still have available seats. Color yellow for odd rows and blue for even rows. Everything goes as planned.

I also have a button that enables the user to toggle between 'Display Only Flights Which Still Have Available Seats' and 'Display All Flights'.

The button does what it suppose to do, but I cannot maintain the row color. The row color is reset after I click on this button.

Is there any function or method that can store/restore the row color?

Thank you very much.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Jun 29, 2017 at 05:11 AM
2

It depends whether the ALV table is updated (filter function) or recreated. In the first case, the colors are kepts, in the latter case it's recreated so you must assign colors again.

Share
10 |10000 characters needed characters left characters exceeded