SORT_ILLEGAL_MODE is an ABAP runtime error which you may come across when using or developing within an SAP system. See below for the standard details explaining what it means and how you can avoid or fix this runtime error.
Short Dump Classification: A - ABAP Programming Error
You can view further information about a runtme error by using transaction code ST22 which will show you this and all runtime erros that have happen in your SAP system.
Also check out the Comments section below to view or add related contributions and example screen shots.
Please see program correction for more details about the possible cause of this runtime error and how it could be avoided.
Please see search hints for more details about the possible cause of this runtime error and how it could be avoided.
Please see send to sap for more details about the possible cause of this runtime error and how it could be avoided.
Invalid sort mode specified.
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.
When using statement "SORT ... %_SORTMODE mode ...", you can specify
"I" (internal sort) or "E" (force external sort) as the sort mode.
In the present particular case, <runtime parameter> has been specified as the sort mode.
In this particular case, <runtime parameter> was specified as the sort mode.
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.
SORT_ILLEGAL_MODE - sort illegal mode SORT_FIELD_NOT_IN_HEADER - sort field not in header SORT_EXTRACT_TOO_MANY_FIELDS - sort extract too many fields SORT_EXTRACT_INDEX_NO_ROLL - sort extract index no roll SORT_DEEP_INDEX_TOO_LARGE - sort deep index too large SORT_AS_TEXT_EX_BAD_TYPE - sort as text ex bad type