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
Explain what is the step-by-step process to create a table in data dictionary?
What are the two different ways of building a match code object? : abap data dictionary
Difference between Read and Get cursor?
what is diff between idocs,bdc,rfc and bapi. give real time answer
How will you read from internal table records in a given value range (without using loop)
What will happen when we use fully buffered in abap?
How many default tab strips are there?
Does sap handle multiple currencies?
What is example class
What is tcode se16?
How do you display a data in a detail list?
State the differences between database view & projection view? : abap data dictionary
Define database layer?
What are the check tables?
How the at-user command serves mainly in lists?