‎2008 Jan 17 11:56 AM
hi friends,
could u plz tell me what is cluster table & table cluster.
what is the difference between them.....
thanks in advance,
regards,
priya.s
‎2008 Jan 17 12:01 PM
tablecluster is collection cluster tables
Edited by: sap abap on Jan 17, 2008 1:01 PM
‎2008 Jan 17 12:02 PM
hi priya,
cluster table : it consist of many tables, where the data in each table is less.
ex: consider a table which have some less amount of data, then large collection of such tables i.e more no.of such tables together form a cluster table
they reside in application layer
table cluster : it is the collection of cluster tables
they reside in database layer
‎2008 Jan 17 12:03 PM
Hi,
Table pools (pools) and table clusters (clusters) are special table types in the ABAP Dictionary. The data from several different tables can be stored together in a table pool or table cluster. Tables assigned to a table pool or table cluster are referred to as pooled tables or cluster tables.
A table pool or table cluster should be used exclusively for storing internal control information (screen sequences, program parameters, temporary data, continuous texts such as documentation). Data of commercial relevance is usually stored in transparent tables.
Several logical data records from different cluster tables can be stored together in one physical record in a table cluster.
A cluster key consists of a series of freely definable key fields and a field (Pageno) for distinguishing continuation records. A cluster also contains a long field (Vardata) that contains the contents of the data fields of the cluster tables for this key. If the data does not fit into the long field, continuation records are created. Control information on the structure of the data string is still written at the beginning of the Vardata field.
The records of all cluster tables with the same key are stored under one key in the assigned table cluster. The values of the key fields are stored in the corresponding key fields of the table cluster. The values of all data fields of the assigned cluster tables are written as a string to the Vardata field of the table cluster. Besides the actual data values, the data string contains information on the structure of the data and which table it comes from. If the string exceeds the maximum length of the Vardata field, a continuation record is written with the same key values. The continuation records for a key are distinguished by their value in field Pageno. The actual length of the string in the Vardata field is stored in the Pagelg field by the database interface.
You need the structural information stored in the ABAP Dictionary to read the data from a pooled table or cluster table correctly. These tables can therefore only be processed using Open SQL with the cluster interface, and not with Native SQL directly in the database.
Regards,
Renjith Michael
‎2008 Jan 17 12:23 PM
Table Cluster :
Database table in the database that contains the data of several cluster tables.
Cluster Table :
Database table defined in the ABAP Dictionary, whose version on the database is not only assigned to one table defined in the ABAP Dictionary. Several cluster tables are assigned to a table cluster in the database. The intersection of the key fields of the cluster tables forms the primary key of the table cluster. The other columns of the cluster tables are stored in compressed form in a single column VARDATA of the table cluster. You can access cluster tables only via Open SQL, and only without using joins.