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: 

Sort Statement

Former Member
0 Kudos

Hi,

In my custom program, I have issued a SORT command on my internal table.

SORT it_itab by hkont prctr gsber waers.

After the SORT command, the relative sequence of entries in the internal table having the same set of values for the fields mentioned in the SORT command, is different in ECC 6.0 when compared with 4.6C results.

Has anybody faced a similar situation?

Is there a functionality difference in SORT in ECC 6.0?

Any inputs on this will be highly appreciated.

Thanks,

Binu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Binu,

I never faced the Problem however it should not happen. anyways try this one, Sort only those fields which are character fields.

3 REPLIES 3

Former Member
0 Kudos

Binu,

I never faced the Problem however it should not happen. anyways try this one, Sort only those fields which are character fields.

Former Member
0 Kudos

Hi Binu,

There is difference for SORTing in ECC6.0 and 4.6C. It may be due to difference in Key field criteria.

Regards

Akshay

Former Member
0 Kudos

Hi,

For sort statement, there is no difference between 4.6C and ECC6.0.

You can debug your program, before and after sorting the internal table, you can check whether the internal table changes the sequence.

Or you can put your code here to make us more clear what happened.

Thanks and regards,

Chris Gu