Skip to Content
0
Former Member
Dec 03, 2008 at 04:33 AM

Unable to Sort the ATWTB Field

279 Views

Hello,

I am actually fetching the Batch Characteristics in an Internal Table for all the Batches in the Delivery.

I am using the Internal Table of type CLBATCH which contains the Field called ATWTB. Now, in my internal Table, if I have 4 entries as below for the ATWTB Field.

11.000

32.000

6.00

23.000

My requirement is to SORT the Internal Table to determine the Max & Min Value. So, I am Sorting the Internal Table in Descending Order during which the Entries are being Sorted in the Following Way.

11.000

23.000

32.000

6.00

which is actually wrong. I am using the Sort Descending Command and Sort ...As Text but it didn't work. Can someone give me an Idea to Achieve the Sorting of this Kind of Internal Table? The Internal Table has been declared as Standard Table. Defining the Internal Table as Sorted Table doesn't work either as I've tried that one as well.

Your responses would be appreciated.

Thanks and Regards,

Venkat Phani Prasad Konduri