2006 Oct 06 7:46 AM
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
2006 Oct 06 7:48 AM
2006 Oct 06 7:50 AM
hi,
refresh that particular alv layout structure where u r passing that color fields
2006 Oct 06 8:54 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |