Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Difference between TYPE & LIKE

Former Member
0 Likes
756

Hi,

Can anyone tell the difference between TYPE & LIKE please.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
739

adding to manu..

for eg :

in kna1 table

u can say

using type :

kunnr type kunnr(field type)

using like:

kunnr like kna1-kunnr.

regds

6 REPLIES 6
Read only

manubhutani
Active Contributor
0 Likes
739

type refers the existing data type

like refers the existing data object

Type is a keyword used to refer to a data type whereas Like is a keyword used to copy the existing properties of already existing data object.

please reward points

Read only

Former Member
0 Likes
740

adding to manu..

for eg :

in kna1 table

u can say

using type :

kunnr type kunnr(field type)

using like:

kunnr like kna1-kunnr.

regds

Read only

Former Member
0 Likes
739

Hi,

please check this link

regards,

raam

Read only

Former Member
0 Likes
739

Hi,

like refers the existing data dictionary object object

type refers the existing data type

Type is used to refer some data type

Data : var1(5) type char.

Like is used to copy existing properties which is already exist in data dic. object.

data: var1 like tstc-tcode.

Read only

Former Member
0 Likes
739

Hi,

Type is used for predefined data elements whereas Like is used for variables already defined.

Thanks,

Sheel

Read only

Former Member
0 Likes
739

Hi,

Type is used for predefined data elements whereas Like is used for variables already defined.

Thanks,

Sheel