Development resources, articles, tutorials, code samples, tools and downloads for SAP HANA and ABAP, HANA Database, SQLScript, SAP UI5, Screen Personas, Web Dynpro, Workflow
ALV Grid Color - Table Row Background Color in ALV List
ABAP developers can find a tutorial on how alternating ALV grid color can be used while displaying data rows on ALV lists at Multi Color ALV Grid Color Alternate using ALV Layout info_fname Property.
Of course, in this method in ABAP codes zebra layout style is not used for ALV Grid table row background color.
Because zebra layout has only two colors alternating each row or each record on the ALV list.
But on the mentioned ABAP ALV tutorial, we have pairs to be in same color on the ALV Grid display.
And following pairs must have different grid color.
In this ALV tutorial, we are going one more step ahead in order to color grids and color ALV list sample.
Here is the ABAP report source code for the ALV Grid color sample program where ALV list has table row background color different in each ALV grid row.
In the below ABAP report, ABAP developers will see the color grid codes assigned to the info_fname property of the ALV grid layout structure.
There are 9 color grid codes for use in ALV lists.
These ALV grid color codes are :
C110
C210
C310
C410
C510
C610
C710
C810
C010
ABAP programmers can use the above color codes for their ALV grid table row background color to make their SAP applications more advanced.