2005 Aug 04 8:29 AM
Hi all,
Can any one tell me the difference between the type and like.
lets take i have a structure or table of some material data(MARA).
what is the difference between these two statements.
data wa like MARA.
data wa type mara.
please help me in this matter ,i was little bit confused.
2005 Aug 04 8:39 AM
2005 Aug 04 8:39 AM
2005 Aug 04 8:40 AM
Hi,
These statements are the same, because MARA is DDIC table. LIKE is not recommended to be used any more if TYPE can be used. LIKE can not be used in ABAP Objects.
Svetlin
2005 Aug 04 8:54 AM
Hi,
TYPE is a keyword to refer data type.
LIKE is a keyword to refer data object.
data types are purely descriptive means no memory allocation.
data objects have memory allocation.
data types will define technical properties data objects.
hope this helps
regards,
sai chand