2007 Mar 26 5:16 PM
what is the difference between type and like
wa_itab1 like itab1
wa_itab1 type itab1
are they the same
2007 Mar 26 5:19 PM
Refer
LIKE means the datatype of the variable is similar to the referenced variable.
TYPE means it is a predefined data type.
Eg:
DATA int TYPE i.
Here int is of integer data type.
DATA var LIKE int.
var is a variable having same data type of int. which in turn is integer.
Regards,
Santosh
Message was edited by:
Santosh Kumar Patha
what is the difference between type and like
wa_itab1 like itab1
wa_itab1 type itab1
are they the same
2007 Mar 26 5:19 PM
Refer
LIKE means the datatype of the variable is similar to the referenced variable.
TYPE means it is a predefined data type.
Eg:
DATA int TYPE i.
Here int is of integer data type.
DATA var LIKE int.
var is a variable having same data type of int. which in turn is integer.
Regards,
Santosh
Message was edited by:
Santosh Kumar Patha
2007 Mar 26 5:20 PM
Hi,
TYPE - Refer to data type (may be user defined using types)
LIKE - Refer to data object/database fields.
Regards,
Ferry Lianto
2007 Mar 26 5:21 PM
2007 Jul 24 12:41 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |