2008 May 20 11:42 AM
how is date and time field sorted if i do sort ascending on internal table
say i have date 1 = 10.04.2008
date 2 = todays date
sort ascending - how will it sort dates
how is date and time field sorted if i do sort ascending on internal table
say i have date 1 = 10.04.2008
date 2 = todays date
sort ascending - how will it sort dates
2008 May 20 11:54 AM
Hi ,
it will give u sort as follows,
10.04.2008
20.08.2008.
if u give it as descending...the result will be,
20.08.2008
10.04.2008
Regards,
kk.
2008 May 20 12:09 PM
Date is stored internaly as YYYYMMDD format,thus,
Date 1 = 20080410
and current date = 20080520
so upon sort ascending :
20080410
20080520
i.e. date 1 will be on top as its less then current date.
2008 May 21 6:38 AM
hi,
Internal Tables are sorted as follows.
SORT <itab> [ASCENDING|DESCENDING] [AS TEXT] [STABLE].
2008 May 21 6:44 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |