
Output of Exceptions
Purpose
Exceptions are a graphical means to indicate that a threshold value in a list line has been exceeded. For example, as far as the flight model is concerned, you would use the red traffic light to indicate that a flight is full. The different colors help the user to quickly understand what the data displayed means. You can use three different statuses:
Display |
Internal value |
Indicates (for example) |
|
3 |
Low occupancy |
|
2 |
Medium to high occupancy (critical: flight almost full) |
|
1 |
High occupancy (no seats available) |

You can also display an exception as an LED (see
Application developers must both determine the threshold values and adapt the value of an exception to the threshold.

See also:
Sample report BCALV_GRID_04 in development class SLIS .
Process Flow
DATA gs_layout TYPE LVC_S_LAYO
.DATA: BEGIN OF GT_OUTTAB OCCURS 0.
INCLUDE STRUCTURE <DDIC-Struktur>.
DATA: light TYPE C. "to display exceptions
DATA: END OF GT_OUTTAB.
gs_layout-excp_fname = 'LIGHT'.

If you have changed the values for an exception in the output table, refresh the output using method
Result
The ALV Grid Control contains an exception column at the beginning of the list:
