Term · Data and persistence

Primary key

The column or columns whose values uniquely identify each row in a table.

Topic
Data and persistence
Related terms
04

Glossary · P56 / 90

Primary key

Data and persistence

01What it means

No two rows can share the same primary key. In most SAP tables the key starts with the client number, followed by fields such as the document or material number.

Keys are used to find records quickly and to link tables together.

02Why it matters

  • Prevents duplicate records
  • Lets the database find rows quickly
  • Other tables point to it
  • Key mapping is central in migrations

03In practice

Example

In an accounting document header table, the key is client, company code, document number and fiscal year.

SAP INTELLIGENCE

Turn insight into action.

If one of these topics reflects a challenge inside your SAP environment, BERACAH AI Labs can help assess the current state and identify the next steps.