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 various types of parameters and how are they distinguished from one another?
how can we use the text randomly or circularly in smartforms.... means... suppose i have 'abap' horizantally... but i want it in vertically... how can... plz any body tell me this....
What are the different modes of processing batch input sessions? : abap bdc
What is a persistent class?
What are the properties of selection screen?
Can we access static attribute from instance method
PLEASE HELP ANYONE ON THIS ISSUE,is there any problem with this function module :RHPQ_T77BX_ADD_QUALIS_OF_DPLAN. IT IS TRIGGERING BEFORE COMPLETION OF THE DEVELOPMENT PLAN but it has to trigger after compltion of development plan..this issue raised in my project..so reply urgently..thanks in advance..
Explain the difference between cluster tables and pool table?
What is an authorization in sap?
Difference between call by value and call by reference? : abap data dictionary
How to combine multiple order in one Delivery ( Step by Step)?
function modules are also external subroutines. State true or false. : abap modularization
What is the difference between upload and ws_upload ? : abap bdc
What is the use of table maintenance allowed?
To how many tables can an append structure be assigned. : abap data dictionary