what is the difference between

data: begin of ty_emp,
eno type i,
ename type string,
dno type i,
end of ty_emp.
and
types: begin of ty_emp,
eno type i,
ename type string,
dno type i,
end of ty_emp.

Answer Posted / jwalitha

using the statement -Types
we can declare own data types
TYPES dtype [TYPE type|LIKE dobj] ...
where as using DATA statement
we can declare own variables or instance attributes of classes
DATA var [{TYPE type}|{LIKE dobj}] ...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a view? : abap data dictionary

850


Explain what is a foreign key relationship? Explain this with the help of an example.

801


What is the process to enhance the Infotype

3082


Difference between sy-tabix and sy-index?

1016


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

755


How to debug a sapscript?

804


How to read files and process BDC's automatically ?

1754


What are the different types of laws. What are they?

772


How move-corresponding works

1121


What is a data dictionary? : abap data dictionary

763


What are the events used in abap in the order of execution?

746


What is sapnet?

1142


How to handle error in session method? : abap bdc

925


What is a database view? : abap data dictionary

818


What are the tcodes for performance tuning?

1104