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 nodes in smart forms?
what is the difference between user-exit & BADIs?
17) How will you validate selection screen elements?
can u add a new view to the existing view?
2 Answers Bristle Cone, Cap Gemini, HP, Satyam, Wipro,
defination of workarea? and header line
we go in debugging but i m in 5th line of debugging and i want to go again in 4th line of it then how to do that
at which situation we create the secondary index?
What is a database view? : abap data dictionary
What is design pattern? Provide example .Why are we using it?
What are authorization objects and what statement is used to perform an authorization check in an abap program?
Print options in smartforms?
Explain the way(s) you find an exit(s) to a given standard sap program?