Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between Data type & data objects

Former Member
0 Kudos
912

HI,

Is there any Difference between Data type & data objects ?

Puneet

1 ACCEPTED SOLUTION

Former Member
0 Kudos
89

HI PUNEET ,

i THINK THIS SHOULD HELP YOU,

Data Types:As well as occurring as attributes of a data object, data types can also be defined independently.

The definition of a user-defined data type is based on a set of predefined elementary data types.

You can define data types either locally in the declaration part of a program (using the TYPES

statement) or globally in the ABAP Dictionary. You can use your own data types to declare data

objects or to check the types of parameters in generic operations.

While Data objects are:

Data objects are the physical units with which ABAP statements work at runtime. Each ABAP

data object has a set of technical attributes, which are fully defined at all times when an ABAP

program is running. The technical attributes of a data object are its length, number of decimal

places, and data type. ABAP statements work with the contents of data objects and interpret

them according to their data type. You declare data objects either statically in the declaration

part of an ABAP program (the most important statement for this is DATA), or dynamically at

runtime (for example, when you call procedures). As well as fields in the memory area of the

program, the program also treats literals like data objects.

Regards,

NIkita

5 REPLIES 5

Former Member
0 Kudos
89

hi

any thing

that is being declared by using

DATA:

will occupy memery and caleed data object

where as if u use TYPES

it only defines the defination but no memeory is allocated to it

Cheers

Snehi

Former Member
0 Kudos
89

HI,

A data type is a basic unit for defining the structure of the data for a message type and, as a result, for the message to be exchanged.

Data objects are the physical units with which ABAP statements work at runtime. The contents of a data object occupy memory space in the program

Check this out for more detail

http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb2fb2358411d1829f0000e829fbfe/content.htm

Regards

VIjay

Former Member
0 Kudos
90

HI PUNEET ,

i THINK THIS SHOULD HELP YOU,

Data Types:As well as occurring as attributes of a data object, data types can also be defined independently.

The definition of a user-defined data type is based on a set of predefined elementary data types.

You can define data types either locally in the declaration part of a program (using the TYPES

statement) or globally in the ABAP Dictionary. You can use your own data types to declare data

objects or to check the types of parameters in generic operations.

While Data objects are:

Data objects are the physical units with which ABAP statements work at runtime. Each ABAP

data object has a set of technical attributes, which are fully defined at all times when an ABAP

program is running. The technical attributes of a data object are its length, number of decimal

places, and data type. ABAP statements work with the contents of data objects and interpret

them according to their data type. You declare data objects either statically in the declaration

part of an ABAP program (the most important statement for this is DATA), or dynamically at

runtime (for example, when you call procedures). As well as fields in the memory area of the

program, the program also treats literals like data objects.

Regards,

NIkita