I am using the cl_gui_alv_grid class very often and it works norally very well. But now i have a request to change the color of a GRID-COLUMN.
SAP Help shows you a solution which works in this way:
DATA: BEGIN OF GT_OUTTAB OCCURS 0.
INCLUDE STRUCTURE <DDIC-Struktur>.
DATA: CT TYPE LVC_T_SCOL. "Table for colors
DATA: END OF GT_OUTTAB.
But if you use it in this way; following errors occurs:
1.) You have to use the table type : ANY TABLE in the method: me->set_table_for_first_display
2.) if you add the type LVC_T_SCOL to your DDIC-Structure, then an error occurs: you cannot use an table-type in a flat structure!
3.) The LVC_T_SCOL contains field names, they are not permitted. (for exp. INT ...)
Can somebody help me, to solve this problem?