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 pooled and cluster tables?
Hi everyone! i m pursuing ABAP so still in learning phase i want to know abt. IDOCs and ALE like what's the role of messege type in IDOCs and how things goes on in background i know i sound absurd but as i m not clear abt. the same Ur advice wud be highly appreciated looking forward for a quick reply with some scenarios if URl for some gud sites that wud b helpful in the initial stage of learning wud b provided it's wud b g8 thanks in advance
what are the events in LSMW?
why are we using events in reports than control break statements?
3 types of buffering techniqes. 1.bufering not allowed 2.buffering swithed on 3.buffering not allowed but switced on what does it means?
what is the use of system field 'SY-LOOC'? when will we use it? Plz answer me its urgent!!!
if while coding power goes off , how to retrieve the codes?
What are the events used for page headers and footers?
While sorting field groups we cannot use more than one key field. State true or false. : abap modularization
Explain the inside concept in select-options?
Does the call transaction method allow multiple transactions to be processed by sap?
Difference between Session Vs Call transactions?