SAP ABAP
Sample codes to make abaper's life easier
Wednesday, March 14, 2018
Sorting a Dynamic Internal table
DATA
:
otab
TYPE
abap_sortorder_tab
,
ls_otab
TYPE
abap_sortorder
.
ls_otab
-
name
=
'FIELDNAME'
.
ls_otab
-
descending
=
'X'
.
ls_otab
-
astext
=
''
.
APPEND
ls_otab
TO
otab
.
CLEAR
:
ls_otab
.
SORT
<fs_tab>
BY
(
otab
)
.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment