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 open sql vs native sql ?

1855


what is the exact code that shoud be implimented in sap note

1972


Explain the use of table maintenance allowed?

541


– Programming using BAPI : Create Debit Memo Request (DMR) with reference to Sales Order and update the delivery number and PO number in the newly created DMR. Send the spool of the report by E-mail if the E-mail option is enabled. Selection Screen Required:  Sales Org  Delivery type  Sales document type Optional:  Planned Goods movement date  Option to choose E-Mail  E-mail Address  Output device Output Output should display both successful and unsuccessful creation of DMR with the following fields,  Success/Error (S/E)  Sales Document number  Delivery number  New Debit memo request number  Error message Tables TVAK, TVCPA, VBAK, LIKP, LIPS

5526


What are screen painter? Menu painter? Gui status?

596






How to give programe name as input in BDC report of abap ?

1732


Can you define a field without a data element? : abap data dictionary

623


Can there be more than 1 main window in sap script?

619


What is a data dictionary? : abap data dictionary

575


Can we display a list in a pop-up screen other than full-size stacked list?

693


What is the transaction for recording bdc ? : abap bdc

602


What are the dis-advantages of logical databases? : abap hr

608


What are different ABAP editors? What are the differences?

592


If A is the super class of B. And both the classes have constructor. We create an object of class B. Then which constructor will be called? If both then in which order?

930


How do you save data in bdc tables? : abap bdc

588