<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: pool and cluster tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-tables/m-p/3515713#M845607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Transparent Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Exists with the same structure both in dictionary as well as in database exactly with the same data and fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pooled Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Pooled tables are logical tables that must be assigned to a table pool when they are defined. Pooled tables are used to store control data. Several pooled tables can be cominied in a table pool. The data of these pooled tables are then sorted in a common table in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cluster Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Cluster tables are logical tables that must be assigned to a table cluster when they are defined. Cluster tables can be used to strore control data. They can also be used to store temporary data or texts, such as documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A transparent table is a table that stores data directly. You can read these tables directly on the database from outside SAP with for instance an SQL statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transparent table is a one to one relation table i.e. when you create one transparent table then exactly same table will create in data base and if is basically used to store transaction data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A clustered and a pooled table cannot be read from outside SAP because certain data are clustered and pooled in one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the possible reasons is for instance that their content can be variable in length and build up. Database manipulations in Abap are limited as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But pool and cluster table is a many to one relationship table. This means many pool table store in a database table which is know as table pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the pool table stored table in table pool does not need to have any foreign key relationship but in the case of cluster table it is must. And pool and cluster table is basically use to store application data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table pool can contain 10 to 1000 small pool table which has 10 to 100 records. But cluster table can contain very big but few (1 to 10) cluster table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For pool and cluster table you can create secondary index and you can use select distinct, group for pool and cluster table. You can use native SQL statement for pool and cluster table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A structure is a table without data. It is only filled by program logic at the moment it is needed starting from tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A view is a way of looking at the contents of tables. It only contains the combination of the tables at the basis and the way the data needs to be represented. You actually call directly upon the underlying tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2008 13:29:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-11T13:29:10Z</dc:date>
    <item>
      <title>pool and cluster tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-tables/m-p/3515710#M845604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone please tell wat is pool and cluster tables in simple words,when we use pool table and cluster tables,and difference between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;amp;regards.&lt;/P&gt;&lt;P&gt;srinivas reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 13:10:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-tables/m-p/3515710#M845604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T13:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: pool and cluster tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-tables/m-p/3515711#M845605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer the link,&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="150788"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 13:14:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-tables/m-p/3515711#M845605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T13:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: pool and cluster tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-tables/m-p/3515712#M845606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Table pool is used for storing large number of unrelated logical tables in one physical table. Table cluster is used for storing small number of related logical tables in one physical table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Tables in a cluster must have a significant part of the key common, but tables in a table pool do not have that restriction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. One record of a table pool represent one record of any one of the pooled table whereas one record of table cluster represent data from one or more records of all cluster tables (If it fits in one page).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cluster table contains large amount of data.&lt;/P&gt;&lt;P&gt;This cluster table in database is stored as the combination two or more small database tables.&lt;/P&gt;&lt;P&gt;For example BSEG is a cluster table.. &lt;/P&gt;&lt;P&gt;You can find all the Fields of this table in different small tables BSIS, BSAS etc...&lt;/P&gt;&lt;P&gt;The following are the table types used in SAP :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I. Transparent tables (BKPF, VBAK, VBAP, KNA1, COEP)&lt;/P&gt;&lt;P&gt;Allows secondary indexes (SE11-&amp;gt;Display Table-&amp;gt;Indexes)&lt;/P&gt;&lt;P&gt;Can be buffered (SE11-&amp;gt;Display Table-&amp;gt;technical settings) Heavily updated tables should not be buffered.&lt;/P&gt;&lt;P&gt;II. Pool Tables (match codes, look up tables)&lt;/P&gt;&lt;P&gt;Should be accessed via primary key or&lt;/P&gt;&lt;P&gt;Should be buffered (SE11-&amp;gt;Display Table-&amp;gt;technical settings)&lt;/P&gt;&lt;P&gt;No secondary indexes&lt;/P&gt;&lt;P&gt;Select * is Ok because all columns retrieved anyway&lt;/P&gt;&lt;P&gt;III. Cluster Tables (BSEG,BSEC)&lt;/P&gt;&lt;P&gt;Should be accessed via primary key - very fast retrieval otherwise very slow&lt;/P&gt;&lt;P&gt;No secondary indexes&lt;/P&gt;&lt;P&gt;Select * is Ok because all columns retrieved anyway. Performing an operation on multiple rows is more efficient than single row operations. Therefore you still want to select into an internal table. If many rows are being selected into the internal table, you might still like to retrieve specific columns to cut down on the memory required.&lt;/P&gt;&lt;P&gt;Statistical SQL functions (SUM, AVG, MIN, MAX, etc) not supported&lt;/P&gt;&lt;P&gt;Can not be buffered &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some of the tables are placed in a pool  means it had 1 to n correspondance exists. for every pool table there may be n no of tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 13:17:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-tables/m-p/3515712#M845606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T13:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: pool and cluster tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-tables/m-p/3515713#M845607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Transparent Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Exists with the same structure both in dictionary as well as in database exactly with the same data and fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pooled Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Pooled tables are logical tables that must be assigned to a table pool when they are defined. Pooled tables are used to store control data. Several pooled tables can be cominied in a table pool. The data of these pooled tables are then sorted in a common table in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cluster Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Cluster tables are logical tables that must be assigned to a table cluster when they are defined. Cluster tables can be used to strore control data. They can also be used to store temporary data or texts, such as documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A transparent table is a table that stores data directly. You can read these tables directly on the database from outside SAP with for instance an SQL statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transparent table is a one to one relation table i.e. when you create one transparent table then exactly same table will create in data base and if is basically used to store transaction data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A clustered and a pooled table cannot be read from outside SAP because certain data are clustered and pooled in one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the possible reasons is for instance that their content can be variable in length and build up. Database manipulations in Abap are limited as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But pool and cluster table is a many to one relationship table. This means many pool table store in a database table which is know as table pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the pool table stored table in table pool does not need to have any foreign key relationship but in the case of cluster table it is must. And pool and cluster table is basically use to store application data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table pool can contain 10 to 1000 small pool table which has 10 to 100 records. But cluster table can contain very big but few (1 to 10) cluster table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For pool and cluster table you can create secondary index and you can use select distinct, group for pool and cluster table. You can use native SQL statement for pool and cluster table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A structure is a table without data. It is only filled by program logic at the moment it is needed starting from tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A view is a way of looking at the contents of tables. It only contains the combination of the tables at the basis and the way the data needs to be represented. You actually call directly upon the underlying tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 13:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-tables/m-p/3515713#M845607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T13:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: pool and cluster tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-tables/m-p/3515714#M845608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai  &lt;STRONG&gt;Reddy&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Pooled and Cluster Tables&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Pools&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table in the database in which all records from the pooled tables assigned to the table pool are stored corresponds to a table pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The definition of a pool consists essentially of two key fields (Tabname and Varkey) and a long argument field (Vardata). A pool has the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt; Data type&lt;/P&gt;&lt;P&gt; Meaning&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Tabname&lt;/P&gt;&lt;P&gt; CHAR(10)&lt;/P&gt;&lt;P&gt; Name of pooled table&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Varkey&lt;/P&gt;&lt;P&gt; CHAR (n)&lt;/P&gt;&lt;P&gt; Contains the entries from all key fields of the pooled table record as a string, max. length for n is 110&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Dataln&lt;/P&gt;&lt;P&gt; INT2(5)&lt;/P&gt;&lt;P&gt; Length of the string in Vardata&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Vardata&lt;/P&gt;&lt;P&gt; RAW (n)&lt;/P&gt;&lt;P&gt; Contains the entries from all data fields of the pooled table record as a string, max. length n depends on the database system used&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a pooled table record is saved, it is stored in the table pool assigned. The name of the pooled table is written to the field Tabname. The contents of all key fields of the pooled table are written as a string to field Varkey and the contents of all data fields as a string to field Vardata. The length of the string stored in Vardata is entered in field Dataln by the database interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to the structure of a table pool, there are certain restrictions on the pooled tables assigned to it. The name of a pooled table may not exceed 10 characters. Since Varkey is a character field, all key fields of a pooled table must have character data types (for example, CHAR, NUMC, CLNT). The total length of all key fields or all data fields of a pooled table must not exceed the length of the Varkey or Vardata field of the assigned pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Clusters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Several logical data records from different cluster tables can be stored together in one physical record in a table cluster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. A table cluster has the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt; Data type&lt;/P&gt;&lt;P&gt; Meaning&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CLKEY1&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; First key field&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CLKEY2&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; Second key field&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CLKEYn&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; nth key field&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Pageno&lt;/P&gt;&lt;P&gt; INT2(5)&lt;/P&gt;&lt;P&gt; Number of the continuation record&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Timestamp&lt;/P&gt;&lt;P&gt; CHAR(14)&lt;/P&gt;&lt;P&gt; Time stamps&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Pagelg&lt;/P&gt;&lt;P&gt; INT2(5)&lt;/P&gt;&lt;P&gt; Length of the string in Vardata&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Vardata&lt;/P&gt;&lt;P&gt; RAW (n)&lt;/P&gt;&lt;P&gt; Contains the entries from the data fields of the assigned cluster tables as a string, max. length n depends on the database system used&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Eshwar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 13:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-tables/m-p/3515714#M845608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T13:37:27Z</dc:date>
    </item>
  </channel>
</rss>

