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

differancec between table type and structure

Former Member
0 Likes
608

hi,

what is the differancec between table type and structure

4 REPLIES 4
Read only

Former Member
0 Likes
588

for table type memory allocates.

for structure type memory not allocates.

Read only

Former Member
0 Likes
588

lt_filetable will be act as a Internal table...can hold multiple records....

ls_file will be act as a workarea...which will helps you to do the process (read, append, modify, insert) in the lt_filetable...because it can hold only one record...

Structures

A structure is a sequence of any other data types from the ABAP Dictionary, that is, data elements, structures, table types, or database tables. When you create a structure in the ABAP Dictionary, each component must have a name and a data type.

Table types

Table types are construction blueprints for internal tables that are stored in the ABAP Dictionary. When you create a table type in the ABAP Dictionary, you specify the line type, access type, and key. The line type can be any data type from the ABAP Dictionary, that is, a data element, a structure, a table type, or the type of a database table. You can also enter a predefined Dictionary type directly as the line type, in the same way that you can with a domain.

Read only

Former Member
0 Likes
588

1.The basic difference between Structure and the Table is that the Structure does not exist at the underlying data base level. Structure exists as Definition in the Dictionary.

2.. Structure will hold only one record at a time but table will hold n no of records.

3.. When u activate the table, this will created in undeylying data base but this not in structure.

Structure and table both are 2/2 matrices but there are many differences between table and structure..........like for example -

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 doesn't contain technical attributes.

Structure doesn't contain primary key.

structure doesn't stores underline database level.

Read only

Former Member
0 Likes
588

Hi Kiran,

Struture : A field called mandt is not used that makes it client dependent. It allows reusability.

Table: A table is a metadata which is client dependent.

Thanks

Mohinder Singh Chauhan