‎2008 Jan 25 10:37 AM
Can anyone give me the difference between the structure and a table. I mean how do they differ in their memory allocations.
‎2008 Jan 25 10:39 AM
Tables
Represent the Database Tables where data actually resides.
Tables can be defined independently of the database in the ABAP Dictionary.
The fields of the table are defined with their (database-independent) ABAP/4 data types and lengths.
Structures
Are record declarations that do not correspond to a Database Table.
Just like user-defined data type.
Defined like a table and can then be addressed from ABAP/4 programs.
Structures contain data only during the runtime of a program.
‎2008 Jan 25 10:39 AM
Tables
Represent the Database Tables where data actually resides.
Tables can be defined independently of the database in the ABAP Dictionary.
The fields of the table are defined with their (database-independent) ABAP/4 data types and lengths.
Structures
Are record declarations that do not correspond to a Database Table.
Just like user-defined data type.
Defined like a table and can then be addressed from ABAP/4 programs.
Structures contain data only during the runtime of a program.
‎2008 Jan 25 10:41 AM
Hello Ashish,
Check the WIki Part of SDN where you will get all sort of interview questions.
Check this link.
https://www.sdn.sap.com/irj/sdn/wiki
Hope this will help you.
Cheers,
Vasanth
‎2008 Jan 25 12:22 PM
Hi,
Tables
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.
A table definition in the ABAP Dictionary contains the following components:
Table fields define the field names and data types of the fields contained in the table
Foreign keys define the relationships between the table and other tables.
Technical settings control how the table should be created in the database.
Indexes: To speed up data selection, secondary indexes can be created for the table
The customer can modify SAP tables with append structures and customizing includes. This kind of modification ensures that the customer
enhancements are automatically merged with the new versions of the SAP tables when there is a release upgrade.
Structures are imaginary of tables,that contain data only at runtime only.
Reward points if it is useful
Regards
swathi