difference between TYPE and LIKE ?

Answer Posted / kishore

Usually for creating data object, that means for allocating
the memory for a particular type we use the following
statement
TYPES char(10) type c.

DATA var1 type char.

where C is ABAP predefined type.

IF we want another data object like the above.

DATA var2 like var1.

Here memory is directly allocating without going
to define type first and memory next.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bdc? : abap bdc

613


Explain the advantages of abap query tool?

530


Explain the components of selection table?

636


What will exactly the hide statement do?

574


On ABAP, Did you set up a workflow? Are you familiar with all steps for setting up a workflow?

596






What are the different functions used in sap script?

534


Why cant we use Normal function module for data transfer?

1709


Explain what is a logical database?

602


What are the parameter types for a method?

921


What is a table pool?

628


Filter badi and multiple used badi? Will the sequence matter of the badi implementation in case of multiple used badi?

1285


Name some data dictionary objects?

559


What should be the approach for writing a bdc program? : abap bdc

581


What are field symbols?

640


HI GUYS , FOR SAP INSTITUTION ATOS I BEST OR NOT? IAM PLANNING TO LEARN SAP COURSE IN ATOS... GIVE ME UR SUGGESTION ABOT ATOS?

2406