what is difference b/w like and type statements?give
example? when to use like and when to use type?
Answer Posted / guest
when refering to type-pool you need to use TYPE
declaration, and LIKE is used to refer your already
declared variable. And for declaring native types 'N' 'C'
you cannot use LIKE there.
data: matnr like mara-matnr,
matnr1 type mara-matnr.
will not make any difference in the program. however
data: matnr type mara-matnr,
matnr1 like matnr. when the attribute of matnr
changes will affect matnr1 also.
and LIKE statement become obselete in Object programming.
you can use TYPE statements only there.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of abap query tool?
The max number of calling modes stacked at one time is?
I am getting the (first) page number and the remaining records displayed in another list in another page BUT the PAGE Number is not displayed? What is the code/solution?
How can we upload a text file having delimiters in to legacy system? : abap bdc
What is the function of a data element?
What are logical databases?
Explain the difference between domain and data element? What are aggregate object?
What is a currency factoring technique?
How can an internal table with header line and one without header line bedistinguished when passed to a subroutine?
What is the basic difference internal tables and database tables? : abap data dictionary
Power is interrupted while transferring data from internal table to application server. How will you determine many records are transferred in session method and call transaction method? : abap bdc
How to debug a script in abap?
Give 3 scenario of reporting due to which you require reporting help of ABAP consultant?
How to define selection screen?
How will you link form with the event driven in sap scripts?