2007 Sep 02 5:50 AM
hi every body,i am not clear about where to use like or type in a structure,and what is importance of each keyword........
2007 Sep 02 5:59 AM
2007 Sep 02 6:45 AM
When u declare as like that time it allocate the memory for that varible. but when u declare as type that time that time it give the refference of that varible.
2007 Sep 02 9:20 AM
Hi Sekhar..
when you declare TYPE it means the variable you declared with TYPE wont get memory, it resembles the data type of the object only.
if you declare a variable with LIKE keyword, then your variable will get memory from the system as well as the domain properties of the reffered data object.
<b>Reward points if Useful</b>
Cheers,
Chandra
2007 Sep 02 10:52 AM
note
var like vbap-matnr
is correct
but
types var type p decimals 5.
data var1 like var -
is incorrect
write
data var1 type var.
reward if helps