Code: Alles auswählen.
REPORT ZTEST_SORT.
TYPES: begin of Ty,
Sf type char02,
END OF ty.
data lt TYPE TABLE OF ty.
data ls TYPE ty.
append '01' to lt.
append '12' to lt.
append '11' to lt.
append '02' to lt.
append '03' to lt.
append '04' to lt.
cl_demo_output=>display_data( lt ).
sort lt ASCENDING by sf.
cl_demo_output=>display_data( lt ).