Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

STRUCTURE

Former Member
0 Likes
419

May i know the difference between structure and table .....

can we move the contents of table to corresponding structure

how can we create structure ......

i am going thru structure demo_conn and dealing with table spfli.

this is an example of example from abap docu (SCREENS).

3 REPLIES 3
Read only

Former Member
0 Likes
384

Table contains the structure and data, but in structure it has only structure(filed names length,...details only but not data).

We can't move the data to structure.

Go to se11 and create the global structure, other wise in the program you create the structure for that particular program.

ex: types : begin of st,

f1

f2

end od st.

Read only

Former Member
0 Likes
384

The differences between a STRUCTURE and a DATABASE TABLE:

1. Structure does not store data whereas Tables can store data.

2. You will have to specify technical settings when you create a table in SE11 Where as you wont while creating a structure.Technical settings basically contains data class, size category, and buffering type.

3. You can indexes for a table where as there will no indexes for a structure.

4. Tables can be defined independently of the database in the ABAP Dictionary. The fields of the table are defined with their (database-independent) data types and lengths.

When the table is activated, a physical table definition is created in the database for the table definition stored in the ABAP Dictionary. The table definition is translated from the ABAP Dictionary to a definition of the particular database.

Structure does not exist at the underlying data base level. Structure exists as Definition in the Dictionary.

5. In a database table, you can only include flat structures as substructures

Read only

Former Member
0 Likes
384

creating a structure

Go to T.code SE11 -> select the radio button data type -> give a name to it and select the create tab -> choose structure ->give the component name and component type save and activate !