SY-SUBRC = 4 While SORT.
While SORT the internal table, it sorts but the return code is 4.
I am using only CHAR type fields only and its a STANDARD type table.
In 20 fields of the internal table, the 2nd, 3rd & 4th fields are used to sort.
Even these three fields have values or not, it returns 4.
When a SORT statement with STANDARD internal table will return 4? Provided all fields are CHAR type.
We can -