I want to add a header row grouping the column headers.
Departure Arrival <-- This row is what I want to add
Airport Gate Date Airport Gate Date
-------- ----- ----- -------- ----- -------
O'Hare A10 10Mar Atlanta G19 10Mar
DFW K98 11Mar Denver Z76 11Mar
Note that I’m using an ALV List, not an ALV Grid. I’ve looked at the sample program BALVBT01 which has a 2-level header but it turns out it’s because they are displaying parent/child data. My data has only one level, I just want to group the columns.
Found my solution here.
Use the
top_of_listevent to add custom header info before the standard header is printed. If you want to replace the standard header with your own you can turn off the standard header by passingis_layout-no_colhead = 'X'in the layout table.