SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete Type Reference →LIKE - obsolete
Obsolete Syntax
... LIKE dtype ...
Effect
Outside of classes, you can also use the addition LIKE to refer to flat structures, database tables, or views of in ABAP Dictionary, as well as to the properties of data objects. A LIKE reference to the flat components of a deep dictionary structure is not possible. This affects the following ways of using LIKE:
If there is a data object called dtype in a local context, then this object hides the data type from ABAP Dictionary.
Notes
Bad example
DATA wa LIKE scarr.
Good example
DATA wa TYPE scarr.