02-10-2008 1:42 PM
Hi,
If is often advised to use type instead of like. Please tell the reason .
Points will be rewarded.
Regards
02-10-2008 2:12 PM
type is for predefined data type
where as like is for usedefined datatype.
example.
data: a1 type i.
for like
types: a1 type i.
data: a2 like a1.
see here a1 acts like interger datatype and it is a userdefined datatype.
if useful reward with points
02-10-2008 2:16 PM
02-10-2008 5:13 PM
Hi Ashish,
TYPE is used as a reference to basic type (i.e. c,i,n,..) or data dictionary type (i.e. data elelement, structure, table, table type...).
LIKE is using as reference to an existing data type.
Because in the past (I guess until Release 2 of R/3) there was no TYPE allowed, everything was LIKE and for upward compatibility reasons you can still use it.
Regards,
Clemens