‎2008 Jul 03 12:24 PM
HI,
Is there any Difference between Data type & data objects ?
Puneet
‎2008 Jul 03 12:35 PM
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
‎2008 Jul 03 12:25 PM
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
‎2008 Jul 03 12:26 PM
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
‎2008 Jul 03 12:32 PM
‎2008 Jul 03 12:33 PM
‎2008 Jul 03 12:35 PM
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