what is difference b/w like and type statements?give
example? when to use like and when to use type?
Answer / 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 |
What are the different modules of sap? : sap abap hr
What are the screen painter and menu painter?
What is the process of project flow n sap?In context to project flow what are the role of an abapper?
What does an exec sql statement do in abap? What is the disadvantage of using it?
What are the main events of which are used for logical database?
what is the difference b/w linear search and binary search? (how can these search)
15 Answers HCL, IBM,
How to display dynamic logo's in Smartforms? i mean to say different logo's on different pages?
2 Answers Altimetrics, Cap Gemini,
What are the features of abap/4 dictionary? : abap data dictionary
How can we set the tablespaces and extent sizes ?
Why do we need enhancements?
how to write a Classical batch input program using transaction FK01 to create vendor/change the vendor address into R/3 system. (Call Transaction Method) plz mention the detail coding Tahnks, Rahul
what is use of material master c segment(marc) table?