ASSIGN_OFF+LENGTH_ILLEGAL_CAST 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 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.
Error in ASSIGN f+offset(length) in program <runtime parameter>.
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.
The error occurred with one of the following statements:
(1) ASSIGN f+offset(length) TO ... RANGE r.
(2) ASSIGN
This error only occurs in programs with active Unicode checks. The
target area addressed by offset and length is not completely in the
source field. Part or all of it is in the explicitly specified range r.
The addressed target area contains deep components (data references,
object references, strings, internal tables). These deep components
must not be overwritten (and thus invalidated) as this would cause
runtime errors to occur (STRING_BAD_REF for example) upon subsequent
read access.
offset : <runtime parameter>
length : <runtime parameter>
Length of the source field : <runtime parameter>
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.
ASSIGN_OFF+LENGTH_ILLEGAL_CAST - assign off+length illegal cast ASSIGN_LENGTH_NEGATIVE - assign length negative ASSIGN_LENGTH_0 - assign length 0 ASSIGN_FIELD_NOT_IN_RANGE - assign field not in range ASSIGN_DECIMALS_WRONG_TYPE - assign decimals wrong type ASSIGN_DECIMALS_TOO_HIGH - assign decimals too high