Application Development 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: 

TYPE or LIKE

Former Member
0 Kudos
81

Hi,

which one is good in performance wise TYPE or LIKE and why?

rgds,

hi.

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos
65

type..

if you use type the memory allocation is done only at run time.

5 REPLIES 5

former_member156446
Active Contributor
0 Kudos
66

type..

if you use type the memory allocation is done only at run time.

Former Member
0 Kudos
65

Hi,

Use type only, because like is obsolete statement in oops abap.

Plzz reward points if it helps.

Former Member
0 Kudos
65

it's always preferable to use TYPE. if u put LIKE it finds the data type of the data object you mention after LIKE.

Reward if useful

Regards

ANUPAM

Former Member
0 Kudos
65

thanks everybody

Former Member
0 Kudos
65

Hi Mr/Ms Hi

you cannt compare the performance for these two 'type' & 'like'.

Like - it works like as a data type. like as a user defined data type.

Type - it works like as a standard data type.

pls reward pts.

Regards

Deepanker