ILLEGAL_SUBSTRING_MODIFICATION 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.
If you want to change part of a string, try something else instead,
like using a CONCATENATE statement for example.
Please see abap error 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 write access to a substring
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.
In the current program <runtime parameter>, an attempt was made to acquire write access
to part of string <runtime parameter>.
Access is not possible like this.
Only read access to substrings is possible.
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.