SAP LIST FORMAT COLOR ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_LIST - Using Colors
This example demonstrates how colors can make lists easier to read.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
All headers are displayed with the background color COL_HEADING. The key fields from the table SPFLI are defined using 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). In addition, flights where the number of bookings falls below a certain minimum number, have a red background. The total number of bookings for each flight has a yellow background.
It should be noted that after each event the system assumes the default setting (COLOR OFF, INTENSIFIED ON). For this reason, the line background of 'Total Bookings:' at the event GET LATE becomes COL_BACKGROUND again in the program above. INTENSIFIED is set to OFF here to preserve the same foreground color as for the other values displayed.