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 is code to upload cost centers through call trans. and procedure

2157


What is the difference between a structure and a table?

553


How do you restrict the data to be entered in the payroll area? : sap abap hr

533


What is a table pool? : abap data dictionary

607


What is the difference between sum and collect?

891






In the `select' statement what is group by ?

1521


what is sales order confirmation and how can do design it in webdynpro. what is Tcode for the same?

1999


When value table becomes check table?

582


How can a lock object be called in the transaction?

531


Explain what are interactive reports?

625


Difference between Read and Get cursor?

1603


What are the dynapro keywords?

669


What are the types of the software component being deployed in the sap?

597


What are the parameter types for a method?

921


when run my program in se38 it was showing output, when i take background execution and giving printer details it was shoing out put. but in SP01 when i give the Spool Request Number it was showing not yet processed entire page why it happens i dont know please give me a solution.

2081