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

What are the advantages of abap query tool?

1020


The max number of calling modes stacked at one time is?

1102


I am getting the (first) page number and the remaining records displayed in another list in another page BUT the PAGE Number is not displayed? What is the code/solution?

1974


How can we upload a text file having delimiters in to legacy system? : abap bdc

1103


What is the function of a data element?

1068


What are logical databases?

1096


Explain the difference between domain and data element? What are aggregate object?

1071


What is a currency factoring technique?

1211


How can an internal table with header line and one without header line bedistinguished when passed to a subroutine?

1066


What is the basic difference internal tables and database tables? : abap data dictionary

1029


Power is interrupted while transferring data from internal table to application server. How will you determine many records are transferred in session method and call transaction method? : abap bdc

1274


How to debug a script in abap?

1125


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

2088


How to define selection screen?

1116


How will you link form with the event driven in sap scripts?

992