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
Write an abap program for creation of customer enquiry using BAPI 'BAPI_INQUIRY_CREATEFROMDATA'.
Can a filed occur in several field groups?
How collect statement is different from append?
What is meant by hide area?
What are the techniques involved in using sap supplied programs?
How to load data from ms excel sheet to sap by using bdc method ? : abap bdc
Explain the advantages and disadvantages of different types of bdc's?
any 1 having notes on SAP-ABAP certification, or even if any 1 could provide the url for getting notes on SAP-ABAP certification, would be appreciated.
What is the table & field to identify the no of items (bottles) stored in one case?
Can we call reports and transactions from interactive reporting lists?
Explain the Types of Select statements?
What is the differences between structure and table in data dictionary in abap?
What is the difference between field-group header and other field groups?
Why grouping of fields is required? What is the max no of modification groups for each field?
What are the drill-down features provided by abap/4 in interactive lists?