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 should be the approach for writing a bdc program? : abap bdc

1058


What is elementary search help? : sap abap data dictionary

947


can anyone please tell me, in orient paper mill project which fields exits for creating report.

1654


Program lines for the radio button selection and unabling some input variables in section screen

1356


Explain how do you get output from idoc?

1035


What are the function modules used in f4 help?

1044


What are the two ways for restricting the value range for a domain? : abap data dictionary

921


What is maintenance view?

1038


What is the difference between collect and append statements?

1035


What are the organizational related infotypes? : abap hr

1119


How to use messages in lists?

1003


In Smartforms or ADOBE Forms Can we get text from standard table in verticle form? if yes, How?

2277


What are the types of bdc s?

1042


What does an exec sql statement do in abap?

1091


Can we create a gui status in a program from the object browser?

1098