Skip to Content
author's profile photo Former Member
Former Member

Sort Statement

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 02:30 AM

    Binu,

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 02:31 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 02:36 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.