Skip to Content
1
Jul 09 at 08:40 AM

ABAP SORT Statement is strange

59 Views Last edit Jul 09 at 08:44 AM 2 rev

Hi everyone,

I am facing with a strange issue about sorting.

My data before sorting is below:

After using "SORT itab BY EBELP ETENR RSPOS, the output is strange:

As you can see above, I don't know why "I" go before "D" in RSPOS item no 10.

Can everyone help me explain the reason why I > D?.

I think that it should be keep the original order in case of the sort key is the same.

(NOTE: The sort statement is in BAPI_PO_CHANGE)

Attachments

before.png (58.0 kB)
after.png (65.1 kB)