TYPES: BEGIN OF ty,
C1(2) TYPE c,
C2(30) TYPE c,
C3(2) TYPE c,
END OF ty.
data it type STANDARD TABLE OF ty WITH HEADER LINE.
it-c1 = 8.it-c2 = 'Alex'.it-c3 = 45.append it.
it-c1 = 2.it-c2 = 'pedro'.it-c3 = 4.append it.
it-c1 = 3.it-c2 = 'luis'.it-c3 = 50.append it.
sort it DESCENDING by c2."ordena ascendente con respecto al campo 2 letras
sort it ASCENDING by c3. "ordena ascendente con respecto al campo 3 numeros
SORT it ASCENDING. "ordena ascedente con respecto al primer campo
SORT it DESCENDING. "ordena descendente con respecto al primer campo
No hay comentarios:
Publicar un comentario