‎2007 Feb 17 11:12 AM
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
‎2007 Feb 17 11:15 AM
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
‎2007 Feb 17 11:22 AM
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
‎2007 Feb 17 12:25 PM
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.
‎2007 Feb 17 1:28 PM
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
‎2007 Feb 17 3:24 PM
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