Skip to main content

Posts

Showing posts from August, 2023

Display Traffic Light System in ALV Report

In the context of SAP ALV (ABAP List Viewer), a traffic light system is a visual representation used to indicate the status of certain data points. Typically, it uses color-coded indicators similar to traffic lights (red, yellow, green) to convey different states or conditions of the data. The traffic light system is used to quickly convey information at a glance, making it easier for users to understand the status of data without having to analyze detailed numbers or descriptions. Steps 1. ALV needs to be displayed using FM ''REUSE_ALV_GRID_DISPLAY" 2. One field needs to be included to hold traffic light value in the internal table structure (type C length      1). Value 1 will be assigned for red light, 2 will be assigned for yellow light and 3 will be assigned           for green light.             Example:                         ***If the field is defined as ICON and included in internal table structure                                   *** For condition 1: