Application Development and Automation 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: 
Read only

Answer this!!!

Former Member
0 Likes
528

Can anyone give me the difference between the structure and a table. I mean how do they differ in their memory allocations.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
499

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.

3 REPLIES 3
Read only

Former Member
0 Likes
500

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.

Read only

Former Member
0 Likes
499

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

Read only

Former Member
0 Likes
499

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