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
How will you find manager of an employee
What is ole?
Hi my dear friends,Please give the answers for the following link http://www.saptechnical.com/InterviewQ/interviewQ.htm
Explain the difference between function group and function module?
How do you find the information on the current screen? : abap bdc
What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?
What is the use of the statement leave to list-processing?
What is cts and what do you know about it? : abap hr
How to debug rfc function module?
What are types of select statements?
Mention some important events in abap programming.
Did you create primary index?
Give Some examples of reports generated in real time scenarion? Also give examples of standard reports in SAP used in real time?
Why grouping of fields is required? What is the max no of modification groups for each field?
What are the problems in processing batch input sessions?