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 |
How do you call a report from a transaction ?
What kind of financial periods exist in sap? What is the relavent table for that?
In Interactive Report : How to come from Secondary List 10 to secondary list 4? what is the Program code?
What is an update type with reference to a match code id? : abap data dictionary
if i want to take some matter from a smart form to another smart form .then how is it possible?
How do you copy the script from source alert?
What are aggregated objects : abap data dictionary
Explain the use of insert and append statement in sap abap?
what is the role of extended syntax check in performance tuning?
A field containing quantity amounts (data type quan) must be assigned to a reference table and a reference field. Explain? : abap data dictionary
How can one distinguish between different kinds of parameters? : abap modularization
what is BAPI?
6 Answers FutureSoft, IntelNet, jusco,