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 should be the approach for writing a bdc program? : abap bdc
What is elementary search help? : sap abap data dictionary
can anyone please tell me, in orient paper mill project which fields exits for creating report.
Program lines for the radio button selection and unabling some input variables in section screen
Explain how do you get output from idoc?
What are the function modules used in f4 help?
What are the two ways for restricting the value range for a domain? : abap data dictionary
What is maintenance view?
What is the difference between collect and append statements?
What are the organizational related infotypes? : abap hr
How to use messages in lists?
In Smartforms or ADOBE Forms Can we get text from standard table in verticle form? if yes, How?
What are the types of bdc s?
What does an exec sql statement do in abap?
Can we create a gui status in a program from the object browser?