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

TYPE or LIKE

Former Member
0 Likes
760

Hi,

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

rgds,

hi.

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
744

type..

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

Hi,

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

rgds,

hi.

5 REPLIES 5
Read only

former_member156446
Active Contributor
0 Likes
745

type..

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

Read only

Former Member
0 Likes
744

Hi,

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

Plzz reward points if it helps.

Read only

Former Member
0 Likes
744

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

Read only

Former Member
0 Likes
744

thanks everybody

Read only

Former Member
0 Likes
744

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