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

ALV list

Former Member
0 Likes
441

Hello All,

I am facing problem in overwriting colors.

First I am displaying all rows in the ALV list in red color then based on some condition I am trying to change few rows from red to green but not happening.

In debugind mode, table is updated succ from red to green

but while displaying not changing.

But green to red is happening.

Is there something like overwriting properties?

Regards

Divakar

Hello All,

I am facing problem in overwriting colors.

First I am displaying all rows in the ALV list in red color then based on some condition I am trying to change few rows from red to green but not happening.

In debugind mode, table is updated succ from red to green

but while displaying not changing.

But green to red is happening.

Is there something like overwriting properties?

Regards

Divakar

3 REPLIES 3
Read only

Former Member
0 Likes
416

Hi,

In otherwords how to refresh ALV list.

Regards

Divakar

Read only

Former Member
0 Likes
416

hi,

refresh that particular alv layout structure where u r passing that color fields

Read only

Former Member
0 Likes
416

Hi,

Before you click to display the list, In pai module invoke the event to display.

MODULE pai_100 INPUT.

CASE ok_code.

WHEN 'EXIT'.

LEAVE TO SCREEN 0.

WHEN 'BACK'.

LEAVE PROGRAM.

WHEN 'DISPLAY'.

PERFORM changed_data.

endcase.

endmodule.

In the class definition define..event method

*handle data changed1..

methods:

<b>handle_data_changed1

FOR EVENT data_changed OF cl_gui_alv_grid

IMPORTING er_data_changed

e_onf4_before

e_onf4_after

e_onf4,</b>endmethod.

in class implementation..

call this method before the grid is dipsplayed.

<b>CALL METHOD grid1->refresh_table_display.</b>

ENDMETHOD. "handle_user_command1

Hope it helps

Regards

Madhavi.