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

what is the difference between internel table and structure?

Former Member
0 Likes
909

what is the difference between internel table and structure?

what is the difference between internel table and structure?

5 REPLIES 5
Read only

Former Member
0 Likes
880

Internal table is define in Program itself but Structure you must

defined in Data dictionary.

Hope this would help.

Amit.

Read only

Former Member
0 Likes
880

A structure can hold a single record where as a internal table can hold mutiple records.

Note:Both the structure and internal table can hold the data during run time only.

Give reward points if helpfull.

Read only

Former Member
0 Likes
880

Tables :

1. The place where the data is stored so that you can retrieve at any time.

2. There can be more than one record stored

Structures :

1. The data / info stays only during the runtime of the application and will not get stored at all during the run time ....

2. Only one record can be stored at the runtime .....

A structure forms the skeleton of the table.

A structure comprises components i.e., fields. Types are defined for the components .A component can refer to an elementary type (via a data element or by directly specifying the data type and length in the structure definition), another structure or a table type. A structure can therefore be nested to any depth

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.

Read only

Former Member
0 Likes
880

Hi Selvakumar,

A table contains data in the database.

A structure contain data in runtime only.

regards,

teja.

Read only

Former Member
0 Likes
880

internal table is a set of many rows, where each row is like a structure of the table.

Eg.

Begin of x_str.

matnr like marc-matnr

werks like marc-werks

End of x_str.

x_str is a structure containing two columns matnr and werks

int_tab like standard table of x_str with header line.

this will declare an internal table with rows, where each row has structure like x_str

wa_tab like line of int_tab.

This will describe a work area.