2007 Sep 09 3:53 AM
what is the difference between the key words 'TYPE' and 'LIKE', In wht scenarios we can we use them, and in what r the scenarios we cant use these.
2007 Sep 09 5:33 AM
hi,
TYPE addition:
With TYPE addition, you can refer either to local data types of the
same ABAP program or on global data types of the Dictionaries.
Local types mask global types that have the same names. When typing
the interface parameters or field symbols, a reference is also
possible to generic types ANY, ANY TABLE,INDEX TABLE, TABLE or
STANDARD TABLE, SORTED TABLE and HASHED TABLE.
LIKE addition:
With the LIKE addition, you can refer to all visible data objects
at the ABAP program's positon in question. Only the declaration of
the data object must be known. In this case it is totally
irrelevant whether the data object already exists physically in
memory during the LIKE reference. Local data objects mask global
data objects that have the same name.
Sri
what is the difference between the key words 'TYPE' and 'LIKE', In wht scenarios we can we use them, and in what r the scenarios we cant use these.
2007 Sep 09 5:18 AM
2007 Sep 09 5:33 AM
hi,
TYPE addition:
With TYPE addition, you can refer either to local data types of the
same ABAP program or on global data types of the Dictionaries.
Local types mask global types that have the same names. When typing
the interface parameters or field symbols, a reference is also
possible to generic types ANY, ANY TABLE,INDEX TABLE, TABLE or
STANDARD TABLE, SORTED TABLE and HASHED TABLE.
LIKE addition:
With the LIKE addition, you can refer to all visible data objects
at the ABAP program's positon in question. Only the declaration of
the data object must be known. In this case it is totally
irrelevant whether the data object already exists physically in
memory during the LIKE reference. Local data objects mask global
data objects that have the same name.
Sri
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |