Hi,
I'm not sure if this function perhaps is not released or has bugs? I didn't see any OSS notes. I've read several sources on how to set the color for a given line and I'm not sure why I don't see it. I see the values in my internal table in the ROWCOLOR column.
We are on 4.6C and I wanted to use the LVC function to move toward the ECC versions of the structures ( LVCS_LAYO instead of SLIS_S_LAYOUT). Perhaps this function module is not really supported???
Could the ZEBRA parameter throw it off?
Could it be a buffer issue? I've tried it alternate ways and don't see a difference.
Thanks for any suggestions,
Ray
Here is the code I'm using to set the layout and define the table.:
gs_alv-callback_pf_status = 'PF_STATUS_SET'.
gs_alv-callback_user_command = 'USER_COMMAND'.
gs_alv-callback_program = sy-repid.
gs_alv-structure_name = 'ZHUS_ST_SP_REPORT'.
gs_alv-itabname = 'GT_DATA'.
gs_alv-itabwaname = 'GS_DATA'.
gs_layo-zebra = 'X'.
gs_layo-cwidth_opt = 'X'.
gs_layo-box_fname = 'SELECTED'. " Checkbox
gs_layo-info_fname = 'ROWCOLOR'.
gs_layo-sel_mode = 'B'. "Default - multiple rows
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = gs_alv-structure_name
CHANGING
ct_fieldcat = gt_fcat.
I set the color in my list table:
ls_data-rowcolor = 'C600'.
APPEND ls_data TO gt_data.
This is how I call the grid:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_buffer_active = 'X'
i_callback_program = gs_alv-callback_program
i_callback_pf_status_set = gs_alv-callback_pf_status
i_callback_user_command = gs_alv-callback_user_command
i_structure_name = gs_alv-structure_name
i_grid_title = gs_alv-grid_title
i_grid_settings = gs_glay
is_layout_lvc = gs_layo
it_fieldcat_lvc = gt_fcat
it_excluding = gt_excluding
i_default = gs_alv-default
i_save = gs_alv-save
is_variant = gs_disvariant
it_events = gt_event
it_event_exit = gt_event_exit
is_print_lvc = gs_prnt
TABLES
t_outtab = <gfs_t>
Edited by: Raymond Mannion on Jun 30, 2009 8:09 PM
Edited by: Raymond Mannion on Jun 30, 2009 8:10 PM