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 |
17) How will you validate selection screen elements?
If One session is processed, where can You see the processed session?
How can the standard tables of sap be modified?
What are the uses of table pool or table cluster.
What are standard layouts sets in the sap script?
Explain what are the different functions used in sap script? What are the parameters used in each function?
Suppose we are transfer data through BDC from legacy to SAP and their is some duplicate data in legacy system but we don’t want this in SAP system .So how can we check that this data is already exist ?
How do you handle in Call Transaction?
If i have locked a program using Locking and iam in bangalore.How can i give authorization to other user to use my program who is another place say Pune?is it possible?
How to put page-breaks in smartforms?
SAP Date Format?
What are the various types of selection screen event?