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

Write an abap program for creation of customer enquiry using BAPI 'BAPI_INQUIRY_CREATEFROMDATA'.

1770


How can we declare a table control in the abap/4 program?

640


If I want to execute a program only in background not in foreground is there any option for this? : abap bdc

560


What are the types of subroutines?

618


Can you assign a matchcode object to a parameter? If so how?

596






what is sap scriptview ?

1731


In what ways we can get the context sensitive f1 help on a field?

598


Update function modules are classified as either v1 or v2. Which type of update is performed first and in what mode (asynchronously, synchronously or locally) can each type be processed in?

567


What is the difference between a substructure and an append structure?

624


any one can tell me which is the tables can store in ddic plese dont say db02l,please give me different ways of resideing the tables ?

1980


How to define selection screen?

595


What is the use of program rsbdcsub? : abap bdc

647


What does the extract statement do in extract datasets? : abap modularization

560


what is difference between user exit, customer exit and badi?

4073


What is the definition of modification in an sap system and how do they impact an upgrade?

535