‎2008 Apr 06 7:20 PM
‎2008 Apr 06 7:35 PM
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
‎2008 Apr 06 9:22 PM
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.