‎2008 Feb 05 6:12 PM
What is the differrences between structure and table in data dictionary in ABAP?
are they same?
‎2008 Feb 05 6:17 PM
Structure and table both are 2/2 matrices but there are many differences between table and structure.
1. Table can store the data physically but a structure dose not store.
2. Table can have primary key but a structure dose not have.
3. Table can have the technical attribute but a structure dose not have.
structure does't contain technical attributes.
structure does't contain primary key.
structure does't stores underline database level.
_____________
please register with your name. thank you.
‎2013 Nov 07 9:56 AM
‎2008 Feb 05 6:52 PM
Tables :
1. The place where the data is stored so that you can retrieve at any time.
2. There can be more than one record stored
Structures :
1. The data / info stays only during the runtime of the application and will not get stored at all during the run time ....
2. Only one record can be stored at the runtime .....
A structure forms the skeleton of the table.
A structure comprises components i.e., fields. Types are defined for the components A component can refer to an elementary type (via a data element or by directly specifying the data type and length in the structure definition), another structure or a table type. A structure can therefore be nested to any depth
Tables can be defined independently of the database in the ABAP Dictionary. The fields of the table are defined with their (database-independent) data types and lengths.
When the table is activated, a physical table definition is created in the database for the table definition stored in the ABAP Dictionary. The table definition is translated from the ABAP Dictionary to a definition of the particular database.
‎2008 Feb 05 7:37 PM
Hi,
A structure does not exist physically in the database, where as a table exists i.e Data in tables is stored on the database and structures only contain data temporarily during program runtime.
Also, a structure can at a time contain only one record,but a table can have many records in it.
Structures are defined (almost) exactly like tables; the only difference is that no database tables are generated from them.
A structure is defined like a table in the ABAP Dictionary and can then be accessed from within ABAP programs. A change in the definition of the structure in the ABAP Dictionary automatically takes effect in all programs.
Tables can be defined independently of the database in the ABAP Dictionary. The fields of the table are defined with their (database-independent) data types and lengths.
Hope its useful,
Sravani