‎2007 Oct 10 10:37 AM
who can tell me the differences between structure and table.
thanx in advance.
‎2007 Oct 10 10:39 AM
Hi,
Structures are constructed the almost the same way as tables, the only difference using that no database table is generated from them.
Structures can contain data only during the runtime of a program. That too one record at a time.
Tables can hold data but structures cannot other than runtime. Whenever we need the same set of fields in several tables, we will go for a structure and include it in tables. For example, consider Address is a structure which contains Street, City, Pin as its components. Whenever u need a Address field u can include this structure. Instead everytime creating the same fields tideosly.
Check this lnik also,
https://forums.sdn.sap.com/click.jspa?searchID=5825856&messageID=3877656
Thanks.
‎2007 Oct 10 10:39 AM
Hi,
Structures are constructed the almost the same way as tables, the only difference using that no database table is generated from them.
Structures can contain data only during the runtime of a program. That too one record at a time.
Tables can hold data but structures cannot other than runtime. Whenever we need the same set of fields in several tables, we will go for a structure and include it in tables. For example, consider Address is a structure which contains Street, City, Pin as its components. Whenever u need a Address field u can include this structure. Instead everytime creating the same fields tideosly.
Check this lnik also,
https://forums.sdn.sap.com/click.jspa?searchID=5825856&messageID=3877656
Thanks.
‎2007 Oct 10 10:40 AM
Hi Lawrence,
Table always contains the data. We can retreive at any time.
Structure will not contain any data. It is used like temperory storage.
suppose if we want to make a group fields under 1 category and we want to add it to the standar. table. we will create a structure and add it to the table.
Hope ur clear.
Assign points if useful.
‎2007 Oct 10 10:41 AM
Hi,
A structure is simply a compilation of fields. A table is a collection of either mutliple fields or of structures in rows.
Think of an EXCEL sheet - the structure describes the fields in a row, a table is several rows with identical structure.
Regards, Joerg
‎2007 Oct 10 10:41 AM
Hi,
Structure defines the fields to be used where as table has an underlying database table associated with it, where as structure defines the organisation of data.
‎2007 Oct 10 10:42 AM
Hi,
Structures cant contain any data. At run time in a program it will contain only 1 record at a time
but Tables contains huge no. of records.
Gud luck,
Bhawani
‎2007 Oct 10 10:42 AM
Hi,
Structure meant for GLOBAL EXISTANCE(these could be used by any other program without creating it again).
Structures are used especially to define the data at the interface of module pools and screens and to define the types of function module parameters.
Structures that are used more than once can be changed centrally because they were defined centrall. The active ABAP Dictionary makes this change at all relevant locations. ABAP programs or screen templates that use a
structure are automatically adjusted when the structure changes.
tables: There is a physical table on the database for each transparent table.
The names of the physical tables and the logical table definition in the ABAP/4 Dictionary correspond.
All business data and application data are stored in transparent tables.
<b>Rewar dif usefull</b>
‎2007 Oct 10 10:42 AM
‎2007 Oct 10 10:57 AM
Hi..
Tables are meant for Storing the Data in the Database level. So they will have a Storage space in the Database.
Structures are only Global data types . They will not have any storage at the Database level.
REWARD IF HELPFUL.