ARTIClE
Lists, Using Colors
The example shows how colors can make lists better readable.
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
All headings are displayed with the background color COL_HEADING .
Key fields from table SPFLI are defined with COL_KEY . At
the event GET sflight , the list body has a different line
background color ( COL_NORMAL ) than the background of the list (
COL_BACKGROUND ). What is more, flights with an occupancy below
the minimum number of bookings are displayed in red. The total bookings
for each connection is displayed in yellow.
Note that after each event the system assumes the default setting (
COLOR OFF , INTENSIFIED ON ). This is the reason why in the
above program the line background of 'Total Bookings:' reverts to
COL_BACKGROUND at the COL_BACKGROUND event. INTENSIFIED
is set to OFF to get the same foreground color as for the other
values displayed.
For technical reasons, the colors of this list do not completley match
the colors of the SAP system in the online help.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved