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

differences between structure and table

Former Member
0 Likes
1,173

who can tell me the differences between structure and table.

thanx in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,125

Hi,

Structures are constructed the almost the same way as tables, the only difference using that no database table is generated from them.

Structures can contain data only during the runtime of a program. That too one record at a time.

Tables can hold data but structures cannot other than runtime. Whenever we need the same set of fields in several tables, we will go for a structure and include it in tables. For example, consider Address is a structure which contains Street, City, Pin as its components. Whenever u need a Address field u can include this structure. Instead everytime creating the same fields tideosly.

Check this lnik also,

https://forums.sdn.sap.com/click.jspa?searchID=5825856&messageID=3877656

Thanks.

8 REPLIES 8
Read only

Former Member
0 Likes
1,126

Hi,

Structures are constructed the almost the same way as tables, the only difference using that no database table is generated from them.

Structures can contain data only during the runtime of a program. That too one record at a time.

Tables can hold data but structures cannot other than runtime. Whenever we need the same set of fields in several tables, we will go for a structure and include it in tables. For example, consider Address is a structure which contains Street, City, Pin as its components. Whenever u need a Address field u can include this structure. Instead everytime creating the same fields tideosly.

Check this lnik also,

https://forums.sdn.sap.com/click.jspa?searchID=5825856&messageID=3877656

Thanks.

Read only

Former Member
0 Likes
1,125

Hi Lawrence,

Table always contains the data. We can retreive at any time.

Structure will not contain any data. It is used like temperory storage.

suppose if we want to make a group fields under 1 category and we want to add it to the standar. table. we will create a structure and add it to the table.

Hope ur clear.

Assign points if useful.

Read only

Former Member
0 Likes
1,125

Hi,

A structure is simply a compilation of fields. A table is a collection of either mutliple fields or of structures in rows.

Think of an EXCEL sheet - the structure describes the fields in a row, a table is several rows with identical structure.

Regards, Joerg

Read only

Former Member
0 Likes
1,125

Hi,

Structure defines the fields to be used where as table has an underlying database table associated with it, where as structure defines the organisation of data.

Read only

Former Member
0 Likes
1,125

Hi,

Structures cant contain any data. At run time in a program it will contain only 1 record at a time

but Tables contains huge no. of records.

Gud luck,

Bhawani

Read only

Former Member
0 Likes
1,125

Hi,

Structure meant for GLOBAL EXISTANCE(these could be used by any other program without creating it again).

Structures are used especially to define the data at the interface of module pools and screens and to define the types of function module parameters.

Structures that are used more than once can be changed centrally because they were defined centrall. The active ABAP Dictionary makes this change at all relevant locations. ABAP programs or screen templates that use a

structure are automatically adjusted when the structure changes.

tables: There is a physical table on the database for each transparent table.

The names of the physical tables and the logical table definition in the ABAP/4 Dictionary correspond.

All business data and application data are stored in transparent tables.

<b>Rewar dif usefull</b>

Read only

former_member404244
Active Contributor
0 Likes
1,125

Hi,

chek the belwo links.

Reward if helpful.

Regards,

Nagaraj

Read only

varma_narayana
Active Contributor
0 Likes
1,125

Hi..

Tables are meant for Storing the Data in the Database level. So they will have a Storage space in the Database.

Structures are only Global data types . They will not have any storage at the Database level.

REWARD IF HELPFUL.