Skip to Content
0
Former Member
Sep 21, 2005 at 01:06 PM

Sorting of internal table

46 Views

Hi all ,

I have an internal table

DATA: BEGIN OF t_num OCCURS 0,

no(30) TYPE c,

END OF t_num.

The data in the table can be of numeric or alphabets or alphanumeric .

Suppose If my data in the table is 10,8,9,11,12

If i say sort on the table it sorts as 10,11,12,8,9

where in i require to be as 8,9,10,11,12 .

If my data in the table is

abc 8 , abc 11,abc 9 , abc 10, abc 12

If i say sort it sorts as

abc 10 , abc 11, abc 12 , abc 8 , abc 9 .

where in i require it to be as

abc 8 , abc 9 , abc 10 , abc 11, abc 12 .

How this problem can be solved .Please help .

Regards,

Ramana