What is a data cluster?

Unlike most of the SAP system, the Human Resources module stores much of its data in ABAP data clusters, rather than in data dictionary tables such as transparent, pool, or cluster tables. Data clusters are actually stored in some transparent tables. Any such transparent table can contain many different types of clusters. Each cluster of data is stored in encoded binary fields. A cluster can contain any number of individual components or pieces of data, which may range from single values to structures to tables.

You can access a data cluster in an ABAP program by running the ABAP command IMPORT. This command takes parameters—such as cluster database name, cluster ID, and so on—as well as a list of pieces of data to import. The IMPORT command also copies the contents of the data cluster into local variables within the calling code. A typical transparent table that contains cluster data has a structure similar to the following:

client

area

key

line counter

user data

data length

data cluster

The combination of transparent table name and area identifies which type of cluster to import, while the key identifies the specific cluster. For HR, the cluster key is typically some combination of personnel number and something else. The key is stored in a single text field, but may actually represent more than one logical key field (for example, personnel number + a sequence number for HR Payroll data).