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 will you find manager of an employee

1389


What is ole?

1190


Hi my dear friends,Please give the answers for the following link http://www.saptechnical.com/InterviewQ/interviewQ.htm

2212


Explain the difference between function group and function module?

1200


How do you find the information on the current screen? : abap bdc

1114


What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?

1348


What is the use of the statement leave to list-processing?

1044


What is cts and what do you know about it? : abap hr

1278


How to debug rfc function module?

1327


What are types of select statements?

1101


Mention some important events in abap programming.

1091


Did you create primary index?

1187


Give Some examples of reports generated in real time scenarion? Also give examples of standard reports in SAP used in real time?

2827


Why grouping of fields is required? What is the max no of modification groups for each field?

1074


What are the problems in processing batch input sessions?

1096