<?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 table data like control data and documentation data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-table-data-like-control-data-and-documentation-data/m-p/2905715#M683546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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="422960"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me reward points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2007 09:46:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-11T09:46:11Z</dc:date>
    <item>
      <title>pool and cluster table data like control data and documentation data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-table-data-like-control-data-and-documentation-data/m-p/2905713#M683544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;            wht is control data and documentation data which are stored in pool and cluster table what is the purpose of control and documentation data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 09:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-table-data-like-control-data-and-documentation-data/m-p/2905713#M683544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T09:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: pool and cluster table data like control data and documentation data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-table-data-like-control-data-and-documentation-data/m-p/2905714#M683545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * FROM CDHDR where obectclas = 'EINKBELEG' &lt;/P&gt;&lt;P&gt;AND objectid = &amp;lt;PO number&amp;gt;&lt;/P&gt;&lt;P&gt;AND TCODE = 'ME22N' .&lt;/P&gt;&lt;P&gt;&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&lt;/P&gt;&lt;P&gt;record in a table cluster.&lt;/P&gt;&lt;P&gt;A cluster key consists of a series of freely definable key fields and a field (Pageno) for&lt;/P&gt;&lt;P&gt;distinguishing continuation records. A cluster also contains a long field (Vardata) that contains&lt;/P&gt;&lt;P&gt;the contents of the data fields of the cluster tables for this key. If the data does not fit into the long&lt;/P&gt;&lt;P&gt;field, continuation records are created. Control information on the structure of the data string is&lt;/P&gt;&lt;P&gt;still written at the beginning of the Vardata field.&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&lt;/P&gt;&lt;P&gt;cluster. The values of the key fields are stored in the corresponding key fields of the table cluster.&lt;/P&gt;&lt;P&gt;The values of all data fields of the assigned cluster tables are written as a string to the Vardata&lt;/P&gt;&lt;P&gt;field of the table cluster. Besides the actual data values, the data string contains information on&lt;/P&gt;&lt;P&gt;the structure of the data and which table it comes from. If the string exceeds the maximum length&lt;/P&gt;&lt;P&gt;of the Vardata field, a continuation record is written with the same key values. The continuation&lt;/P&gt;&lt;P&gt;records for a key are distinguished by their value in field Pageno. The actual length of the string&lt;/P&gt;&lt;P&gt;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;You need the structural information stored in the ABAP Dictionary to read the data from a pooled&lt;/P&gt;&lt;P&gt;table or cluster table correctly. These tables can therefore only be processed using Open SQL&lt;/P&gt;&lt;P&gt;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;**********************************************&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;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&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;IV. Buffered Tables (includes both Transparent &amp;amp; Pool Tables)&lt;/P&gt;&lt;P&gt;While buffering database tables in program memory (SELECT into internal table) is generally a good idea for performance, it is not always necessary. Some tables are already buffered in memory. These are mostly configuration tables. If a table is already buffered, then a select statement against it is very fast. To determine if a table is buffered, choose the 'technical settings' soft button from the data dictionary display of a table (SE12). Pool tables should all be buffered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More at this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A clustered and a pooled table cannot be read from outside SAP &lt;/P&gt;&lt;P&gt;because certain data are clustered and pooled in one field. &lt;/P&gt;&lt;P&gt;But pool and cluster table is a many to one relationship table. &lt;/P&gt;&lt;P&gt;This means many pool table store in a database table which is know as table pool&lt;/P&gt;&lt;P&gt;All the pool table stored table in table pool does not need to have any foreign key relationship &lt;/P&gt;&lt;P&gt;but in the case of cluster table it is must. &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;and you can use select distinct, group for pool and cluster table. &lt;/P&gt;&lt;P&gt;You can use native SQL statement for pool and cluster table. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&l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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No real difference in practical use; new SAP tables usually are transparent tables. Cluster tables can not be joined in the select statement, this is one major difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pool tables:                   used with billiard&lt;/P&gt;&lt;P&gt;transparent tables          sit at table and see your feet trough&lt;/P&gt;&lt;P&gt;cluster tables                storage area with stuffed with tables all over&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Links:&lt;/P&gt;&lt;P&gt;&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="100902"&gt;&lt;/A&gt;&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="436315"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me reward points...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 09:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-table-data-like-control-data-and-documentation-data/m-p/2905714#M683545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T09:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: pool and cluster table data like control data and documentation data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-table-data-like-control-data-and-documentation-data/m-p/2905715#M683546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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="422960"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me reward points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 09:46:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pool-and-cluster-table-data-like-control-data-and-documentation-data/m-p/2905715#M683546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T09:46:11Z</dc:date>
    </item>
  </channel>
</rss>

