Following statement is used to sort a hashed or a standard table:
SORT <itab> [ASCENDING|DESCENDING] [AS TEXT] [STABLE].
It sorts the internal table <itab> in ascending order by its key. It always applies to the table itself, The order of sorting is dependent upon the standard key fields in the internal table. ASCENDING and DESCENDING additions are used to specify the direction of sorting. By default, it is sorted in ascending order. Sorted table cannot be sort using SORT statement as these tables are always in sorted order automatically.
SORT <itab> [ASCENDING|DESCENDING] [AS TEXT] [STABLE].
It sorts the internal table <itab> in ascending order by its key. It always applies to the table itself, The order of sorting is dependent upon the standard key fields in the internal table. ASCENDING and DESCENDING additions are used to specify the direction of sorting. By default, it is sorted in ascending order. Sorted table cannot be sort using SORT statement as these tables are always in sorted order automatically.
No comments:
Post a Comment