INCLUDE
ARTICLE
No obsolete castings with ASSIGN
In ABAP Objects you are not allowed to use the additions TYPE and
DECIMALS for assigning data objects to field symbols using
ASSIGN .
Error message in ABAP Objects if the following syntax is used:
ASSIGN f TO fs TYPE ... [DECIMALS ...].
Correct syntax:
ASSIGN f TO fs CASTING TYPE|LIKE ...
Reason:
The TYPE and DECIMALS additions have been replaced by the
addition CASTING [TYPE|LIKE] .
Unlike the TYPE addition, CASTING supports any data type.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved