ASSIGN_TYPE_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 statement 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 in a statement in the form ASSIGN f TO
One of the following two situations occurred:
1) Field f is a string, a data reference, an object reference, an
internal table or a structure that contains a field of this kind. With
the TYPE addition, this is not possible.
2) Field f is of type x, and field symbol
ASSIGN_TYPE_ILLEGAL_CAST - assign type illegal cast ASSIGN_TYPE_CONFLICT - assign type conflict ASSIGN_SUBSTRING_NOT_ALLOWED - assign substring not allowed ASSIGN_STRUCTURE_ILLEGAL_CAST - assign structure illegal cast ASSIGN_REFERENCE_EXPECTED - assign reference expected ASSIGN_OFFSET_TOOLARGE - assign offset toolarge