11-22-2007 5:29 AM
Hi Experts,
While downloading into local file i want to sort my internal table, first two columns in ascending order, 3rd and 4th columns in decending and 5th and 6th columns in ascending order.
is it possible let me know
from
madhavi
11-22-2007 5:33 AM
before down loading u can sort internal table.
sort itab by ascending order, 3rd and 4th
sort itab decending and 5th and 6th .
Message was edited by:
Karthikeyan Pandurangan
11-22-2007 5:35 AM
hai Karthikeyan Pandurangan
i know that Karthikeyan, but the thing is that i want to sort the internal table either ascending or decending, but not both, thats the problem
11-22-2007 5:38 AM
Try with like this:
SORT ITAB BY FIELD1 ASCENDING
FIELD2 ASCENDING
FIELD3 DESCENDING
FIELD4 DESCENDING
FIELD5 ASCENDING
FIELD6 ASCENDING
Regards,
Naimesh Patel
11-22-2007 5:38 AM
11-22-2007 5:41 AM
Hi, Madhavi t .
I think you should try Naimesh Patel's method.
Regards,
feng.
11-22-2007 5:34 AM
Hi,
Yes,
try like thisd
sort it_tab by matnr werks descending
Regards,
Prashant
11-22-2007 5:37 AM
u can sort independently all field finiallu move one internal table.