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
What are the differences between a database index and a match code?
What are the different types of the variable in the sap abap?
Differentiate screen painter from menu painter.
What is the difference between field-group header and other field groups?
What are the modes in which any update tasks work?
Explain how to create any functions?
What do you mean by batch data communications programming?
Lock objects and what are parameters of ENQUEUE FM?
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?
What are the two statements which are required in an abap program to output an icon using a write statement?
what is user specific parameter?
Explain the difference between function group and function module?
What is view? Explain the different types of view?
Which objects are independent transport objects?
What is open sql vs native sql ?