2008 May 27 10:35 AM
what is the difference between internel table and structure?
2008 May 27 10:37 AM
Internal table is define in Program itself but Structure you must
defined in Data dictionary.
Hope this would help.
Amit.
2008 May 27 10:43 AM
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.
2008 May 27 10:44 AM
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.
2008 May 27 11:56 AM
Hi Selvakumar,
A table contains data in the database.
A structure contain data in runtime only.
regards,
teja.
2008 May 27 12:03 PM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |