02-07-2008 4:57 PM
Hi ,
i have three fields field1 , field2 , field3 .They are from some database table.
i want to prepare a report that field1 values are in ascending order and field2 values are in descending order and field values are in ascending order .
Thanks in advance.
02-07-2008 5:07 PM
Hi,
Use below statement to do sorting as per your req.
SORT i_tab BY field1 ASCENDING field2 DESENDING field3 ASCENDING.
Regards
L Appana
02-07-2008 5:09 PM
Hi Kaladhar,
Store those values in an internal table
then SORT ITAB BY FIELD1 FIELD3 ASCENDING FIELD2 DESCENDING.