SAP SORT ITAB EXCEPTIONS ABAP Statements

Get Example source ABAP code based on a different SAP table
  


ABAP Code Snippet



Runtime Exceptions
Non-catchable Exceptions
CX_SY_DYN_TABLE_ILL_LINE_TYPE
Reason for error:
The table otab has a prohibited line type.
Runtime error:
DYN_TABLE_ILL_LINE_TYPE

CX_SY_DYN_TABLE_ILL_COMP_VAL
Reason for error:
A column of the table otab contains a prohibited value.
Runtime error:
DYN_TABLE_ILL_COMP_VAL


Non-catchable Exceptions
Reason for error:
A sort criterion dynamically specified in the form (name) with the explicit addition AS TEXT is not text-like.
Runtime error:
SORT_AS_TEXT_BAD_DYN_TYPE
Reason for error:
A field symbol used as a dynamic sort criterion with an explicit addition AS TEXT is not text-like.
Runtime error:
SORT_AS_TEXT_BAD_FS_TYPE
Reason for error:
A field symbol used as a dynamic sort criterion does not point to the header row of the internal table to be sorted.
Runtime error:
SORT_ITAB_FIELD_INVALID
Reason for error:
For a table of the type SORTED TABLE, the sort key does not match a beginning piece of the table key.
Runtime error:
SORT_SORT_ILL_KEY_ORDER
Reason for error:
The additions DESCENDING and AS TEXT are not allowed for tables of the type SORTED TABLE.
Runtime error:
SORT_SORT_ILLEGAL
Reason for error:
More than 250 sort criteria.
Runtime error:
SORT_TOO_MANY_FIELDS
Reason for error:
Sort mode neither 'E'(xternal) nor 'I'(nternal)
Runtime error:
SORT_ILLEGAL_MODE

Return to menu