Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to sort the date and time of the inner table in the server

Shulou Source: shulou.com Published: 2022-05-31 12:06:20 10月06日 Update

This article mainly introduces how to sort the date and time of the inner table in the server, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.

When the date and time exist in the inner table, if you want to sort by date and time, ABAP defaults to ascending order. As shown in the following table:

DATA: BEGIN OF IT_TAB OCCURS 10

DATUM TYPE SY-DATUM

UZEIT TYPE SY-UZEIT

MBLNR TYPE MKPF-MBLNR

END OF IT_TAB.

Descending all:

SORT IT_TAB DESCENDING BY DATUM UZEIT

Rise and fall before and after:

SORT IT_TAB BY DATUM UZEIT DESCENDING.

Rise and fall before and after:

SORT IT_TAB BY DATUM DESCENDING UZEIT.

Thank you for reading this article carefully. I hope the article "how to sort the date and time of the inner table in the server" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Date time article sort server service value interest ascending order at the same time internal more friends knowledge editing industry information information channel channel reference Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB OPPO Reno Xiaomi NVidia MySQL