Ads

Pooled and Cluster tables in SAP ABAP

Pooled and Cluster tables in SAP ABAP


Pooled and cluster tables in SAP ABAP are also kind of SAP table .But these are used to store internal infromation of SAP system that are screen sequences,program parameters, temporary data, continuous texts such as documentation.

Table Pools


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 indicated as pooled tables or cluster tables.
Table Pools :A table pool corresponds to a table in the database in which all records from the pooled tables assigned to the table pool are stored.
A pool has the following structure: Field Data type Description 
Tabname CHAR(10) Name of pooled table 
Varkey CHAR Contains the entries from all key fields of the pooled table record as a string.
Dataln  leangth of string data in vardata.
Vardata  entries from the all data fileds as a string .
pooled  tables in sap abap

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 cannot exceed 10 characters.


Table Clusters

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 for distinguishing continuation records.
A table cluster has the following structure: Field Data type Description 
CLKEY1 * First key field
CLKEY2 * Second key field 
CLKEYn * nth key field 
Pageno INT2(5) Number of the continuation record 
Timestamp CHAR(14) Time stamps 
Pagelg INT2(5) Length of the string in Vardata 
Vardata RAW Contains the entries from the data fields of the assigned cluster tables as a string.
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.
If the string exceeds the maximum length of the Vardata field, the system writes a continuation record with the same key values.

 cluster tables in sap abap

The continuation records for a key are distinguished by their value in the Pageno field.
The actual length of the string in the Vardata field is stored in the Pagelg field by the database interface.

Steps to create a SAP Cluster Table

Comments

Popular posts from this blog

BADI Interview Questions in SAP ABAP

Sample SAP ABAP Programming Examples for Practice

Module Pool Programming Interview Questions and Answers in SAP ABAP

Step by Step tutorial on BDC Session Method Program in SAP ABAP

SAP ABAP Interview Questions and Answers for 10 Years Experienced