Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Sort Datetime Type in SAP ABAP

I am working on ABAP project and I need to do sorting on some variables which are of date time types.

data: 
var_a like sy-timlo,
var_b like sy-timlo.

How can I get it done?


1 Answer
SAP ABAP Expert

There are two operation LT (Less than) and GT (Greater Than) which you can use to perform basic comparisons between two variables.

You can frame the logic as per your requirement whether you have a set of variables or a table. If it involves set of variables then you need to do manual comparisons.

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.