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

differance between type table and structure

Former Member
0 Likes
450

Hi

good day to all

differance between type table and structure

2 REPLIES 2
Read only

b_deterd2
Active Contributor
0 Likes
401

Hi,

A tabletype is a type for a multiline element. The fields in a line are specified by a structure. A structure sets the definition (the fields) of a line.

In the declaration part.

Data: lt_table type zt_table . (where tt_table is a tabletype).

data: lt_table type table of zstr_table (where zstr_table is a structure).

Hope it helps you,

Bert

Read only

0 Likes
401

Hi Suresh,

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.

4. Table can store more than one record,but not structure

5. A structure does not exist physically in the database, where as a table exists

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,

Ranjith.