Skip to Content
0
Former Member
Nov 29, 2006 at 05:14 AM

Row color in ALV

64 Views

Hi all,

I am trying to display some selected rows in my report in a different color.

But its not working.

I have .....

i_gs_layout-info_fieldname = 'COLOR_LINE'.

my internal table to be displayed is...

DATA: BEGIN OF T_DISPLAY OCCURS 0,

MATNR TYPE MARA-MATNR,

LOSMENGE TYPE QALS-LOSMENGE,

SLMENGE TYPE MSEG-MENGE,

SL_PPM TYPE P DECIMALS 2,

COLOR_LINE(4) TYPE C,

END OF T_DISPLAY.

On some conditions I am filling the field COLOR_LINE with 'C610'.

The following function module is used for display.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = i_g_repid

i_callback_user_command = ''

i_callback_pf_status_set = ''

i_grid_title = l_title

is_layout = i_gs_layout

it_events = i_gt_events[]

it_fieldcat = i_gt_fieldcat[]

it_sort = i_gt_sort[]

i_save = 'A'

TABLES

t_outtab = T_DISPLAY.

Here everything is working fine except the color.

Eventhough I have the value C610 in my internal table in most of the rows, no row is getting displayed in this color.

Should I use some other function module or am I missing something in this code..?