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 logical databases?
How to convert the Unit for 'Distance' (The value from one Unit to another).
How do you Export a session ?
What is step-loop? Explain all the steps?
Explain the different types of screen keywords?
How to analysis Background Job for performance Issue?
What are the basic functions of database utility? : abap data dictionary
Explain what is runtime analysis?
performance tuning concepts
How to set an Enhancement point for a custom report?
What are the different functions used in sap script?
What are the system table used in abap?
Explain the call transaction method? : abap bdc
what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.
Explain the data types of internal tables?