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
Program for Prime numbers and Matrix plz explain me the procedural method with steps
Explain the difference between a pool table and a transparent table?
What is the significance of technical settings (specified while creating a table in the data dictionary)? : abap data dictionary
I am uploading 100 records out of which say 59th record has error so what will happen if I am using synchronous or asynchronous method of bdc? Can we update the database using local update mode how? : abap bdc
What is screen flow logic? What are the sections in it?
What is new enhancement framework?
How to display if the value entered contains records or not?
What is the relationship existing between the various data elements in data dictionary? : abap data dictionary
Hi, I have a requirement for locking the fax field in user master records. As you know user can edit the details using the System>profile>own data (SU3), it is causing some security threat to our model. What i want is users should not be able to change the fax field under communications when they get into su3.I have heard of user Exist functionality but don't know how to implement it. Can you suggest something, it will be greatly appreciated.
What are the check tables?
What are the kinds of foreign key fields?
Structures can contain data only during the runtime of a program (t/f) : abap data dictionary
Explain different types of attributes of function module?
ABAP : Classical reports events name
Explain the differences between sap memory and abap memory?