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 'z' report?

647


When a function module is activated syntax checking is performed automatically. State yes or no. : abap modularization

615


What are the disadvantages of different types of bdc's?

624


Explain the advantages of abap query tool?

530


Explain the function module in bdc?

582






What does an exec sql statement do in abap?

544


How do you set up background jobs in sap? What are the steps? What are the event driven batch jobs?

568


How to copy table across clients?

626


What is the different between template and a table?

608


what is bapi,badi,bdc,ale idocs?

1636


Is it possible to pass data to and from include programs explicitly?

586


SM35 transaction, How to automate BDC ?

614


Cds views

7686


What is get cursor field?

882


What is meant by a schema? : sap abap hr

583