Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

sorting a field in ascending order

Former Member
0 Kudos

Hi all,

Sales order is created by uploading a tab delimited file through a program ZR_SO_UPLOAD.File has one field that is 'Item description'. After the sales order is created, i check at item level in VA02,the sequence of description for that particular item is neither ascending nor descending.Rather if the item has 16 records it is taking from 8th till 16th first and then from 1st till 8th.

My requirement is to get the description in the same order as in the file.

Please help.

Thanks and Regards,

Neha

3 REPLIES 3

Former Member
0 Kudos

Hi

After this function module in the report program ZR_SO_UPLOAD .Use

Sort by that particular item is either ascending or descending order.

Regards,

Sravanthi

Former Member
0 Kudos

After uploading the file , use

SORT itab by Item description filed.

Former Member
0 Kudos

Hi,

Sorting a field asscending and descending fallow given syntax,,

SORT itab BY A B ascending C descending.

if you want delete duplicate records go through given syntax.....

DELETE ADJACENT DUPLICATES FROM itab COMPARING A B.

Thanks&Regards,

Naresh