Posts

Showing posts with the label Multi Color ALV Grid Color

SAP ABAP - Sample Report Program On Colors In ALV Grid Display.

Image
This report program can be used to color rows of a grid display in 8 different colors. SAMPLE PROGRAM: REPORT ZTEST_COLORS_ALV. TABLES: ekko. type-pools: slis. "ALV Declarations * DATA DECLARATION TYPES: BEGIN OF t_ekko, ebeln TYPE ekpo-ebeln, ebelp TYPE ekpo-ebelp, statu TYPE ekpo-statu, aedat TYPE ekpo-aedat, matnr TYPE ekpo-matnr, menge TYPE ekpo-menge, meins TYPE ekpo-meins, netpr TYPE ekpo-netpr, peinh TYPE ekpo-peinh, line_color(4) TYPE C, " Used to store row color attributes END OF t_ekko. DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0, wa_ekko TYPE t_ekko. * ALV DATA DECLARATIONS DATA: fieldcatalog TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE, gd_tab_group TYPE SLIS_T_SP_GROUP_ALV, gd_layout TYPE SLIA_LAYOUT_ALV, gd_repid LIKE SY-REPID. * START OF SELECTION START-OF-SELECTION. PERFORM data_retrieval. PERFORM build_fieldcatalog. PERFORM build_layout. PERFORM display_alv_report. *&---------------------------------...