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

diff: structure and table

Former Member
0 Likes
631

Hi,

could anyone tell me the difference between the table and the structure?? I heard that structure can hold only one record during runtime.. but some are saying that structure cant hold any data.. which is true??

Regards,

kalai

5 REPLIES 5
Read only

Former Member
0 Likes
586

Hi

Tables with data in their repository.

but the structures are same as tables with they will data only at run time and

once it is over again they will be empty.

Regards

Shiva

Read only

Former Member
0 Likes
586

Hi Kalaivani,

Table is a data dictionary object and can hold data in its underlying database table.

Structure is used to define the structure of object. At run time if you declare a work area based on the structure then you can hold one record, if you declare an internal table then at runtime you can hold more than one record in the internal table. Thus structure acts like a skleton in existance.

Regards,

George

Read only

Former Member
0 Likes
586

hi kalai,

Table : After creation, it will be created both in the abap dictionary and the underlying database. It can hold data.

Structure : It is created only in the abap dictionary. It cannot hold data.

Regards...

Arun.

Reward points if it helps.

Read only

Former Member
0 Likes
586

Hi Kalai,

A table is a table that has been created in the database.

A structure is just a list of fields defined under a name. Structures are useful for painting screen fields, and for manipulating data that has a consistent format defined by a discrete number of fields.

There is no content to view in a structure. You can, however, view the definition of a structure in SE11.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
586

Hi Kalai,

its true that structure can hold only one record that too at runtime. Whereas table is different. It can hold different no. of records based on the memory associated to it. To know the difference, you go to SE11 transaction. There you can type any table name say VARI, which is a table that stores the details of different varients in programs and press F7(display) . In the initial screen of the screen u can see the 'contents' tab button on the application tool bar (CNTLSHIFTF10). press the contents tab button and u can see the select-options for different fields and then press F8. u can see the details of the varients stored in different programs.

But in the initial screen of SE11, type a structure name say RSVAR, which is a structure that stores varient details and press F7. But u cannot see any 'contents' tab button in the application tool bar. i.e., it donot store any records. it is only a structure which is used in different programs and fm's as a work area. The record details stored in structure during runtime are erased from it immediately after the program is executed.

Hope it is clear for you now.

regards,

rajsekhar.k