Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How can I make a differentiation between dependent and independent data? : abap hr

1004


What are the page windows?

970


What are the differences between structure and table in data dictionary in abap? : sap abap data dictionary

1027


What functions does a data dictionary perform? : abap data dictionary

1001


Explain open dataset in sap abap?

1274


Performance tuning techniques

1292


What are the field and chain statements?

978


What is the modification assistant?

959


Can a domain, assigned to a data element be changed? : abap data dictionary

991


What kind of deliverables you have on a day to day basis?

1367


Explain the difference between cluster tables and pool table?

1055


Specify the types of data dictionary objects.

950


How to debug a script in abap?

1085


State the system field for the current date?

1024


Give 3 scenario of reporting due to which you require reporting help of ABAP consultant?

2047