what is the difference table type and structure?

Answer Posted / i.srikanth

Structures (structured types)
Structured types describe the structure and functions of any
structured data objects, that is of data structures with
components of any type.
A component can be a field with an elementary type or can
itself be a structure. A table can also be used as a
component in a structure.
A database table always has a structure and is therefore
implicitly a structured type. However, the fields of a
database table can only have an elementary type.

Table types
Table types describe the structure and functions of internal
tables in the ABAP program. Their rows can have any row
type. Table types with elementary row type therefore can be
defined just the same as multi-dimensional table types
(table types with a table type as row type) or table types
using structures with table-like components.

In a simple words,
Structure is just a flat structure but Table type is an
internal table.

Sample code how to use them to create internal table:
* Create Internal table from a structure:
DATA: IT_DATA TYPE STANDART TABLE OF Structure.

* Create Internal table from a table type:
DATA: IT_DATA TYPE table_type.

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between a database index and a match code?

786


What are the different types of the variable in the sap abap?

779


Differentiate screen painter from menu painter.

758


What is the difference between field-group header and other field groups?

739


What are the modes in which any update tasks work?

834


Explain how to create any functions?

798


What do you mean by batch data communications programming?

708


Lock objects and what are parameters of ENQUEUE FM?

1469


i want to add 2 records to a table but the last field in the table is 1000 char long.Is it possible?if yes how?

1987


What are the two statements which are required in an abap program to output an icon using a write statement?

985


what is user specific parameter?

1849


Explain the difference between function group and function module?

825


What is view? Explain the different types of view?

951


Which objects are independent transport objects?

1021


What is open sql vs native sql ?

2135