Application Development and Automation 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: 
Read only

Sorting Issue

former_member191728
Active Participant
0 Likes
513

Hi Experts

I have an internal table which has customer master texts

Sort statement is done after fetching all  the customer texts from different text id

sort regio kunnr txtid

before sorting

table contents are

regio   kunnr     txtid             tdtext                                   text

inv     20000     z001            shipping instructions              site id......

inv     20000     z001            shipping instructions              dxx.....

inv     20000     z001            shipping instructions              cons......

after sorting

inv     20000     z001            shipping instructions              cons......

inv     20000     z001            shipping instructions              site id......

inv     20000     z001            shipping instructions              dxx.....

even though the sorting is done on regio kunnr and txtid but the text is also getting effected

Can you please explain the reason

Is there any way to solve this issue 

Thanks

Pawan Akella

1 ACCEPTED SOLUTION
Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
0 Likes
484

I haven't used it yet, but try use addition STABLE to SORT statement

-- Tomas --
3 REPLIES 3
Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
0 Likes
485

I haven't used it yet, but try use addition STABLE to SORT statement

-- Tomas --
Read only

anubhab
Active Participant
0 Likes
484

Hello Pawan,

  Can you try with SORT itab AS TEXT. Hope this will solve your issue. Please let know.

Regards,

Anubhab

Read only

Former Member
0 Likes
484

Hi Pawan,

Try tomas suggested solution.It should work.

Regards,

Sudeesh Soni