Skip to Content
Former Member
Jul 31, 2012 at 06:03 PM

ALV - Sort empty dates at bottom



I'm working with an ALV grid, specifically cl_salv_hierseq_table, and I have a column that shows date values.

Sorting must be enabled for the date column. However, an empty date will sort to the top of the list with an ascending sort, and to the bottom with a descending sort.

Is there a way to make ALV (or the SORT statement for an internal table) treat an empty date as a high value?

If not, I could set all empty date values to 12/31/9999, if I could find a way to make ALV suppress their display (i.e. if the date value for that row is 12/31/9999, show it as blank to the user). Can that be done?