SORT_FIELD_NOT_IN_HEADER 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.
Add the field to field group "HEADER".
With dynamic sorting, add your own error message if possible.
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.
Sort field not entered in field group "HEADER".
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.
All fields to be used for sorting an extract dataset must be in field
group "HEADER".
The current ABAP program <runtime parameter> is attempting to sort using field <runtime parameter>.
This field is not in field group "HEADER". This has caused the program
to terminate.
All fields to be used for sorting an extract dataset must be in a
special field group.
The current ABAP program <runtime parameter> is attempting to sort using a field that
is not in the field group. This has caused the program to terminate.
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 SORT_AS_TEXT_DEST_TOO_SHORT - sort as text dest too short