Term · Data and persistence

Foreign key

A column in one table that refers to the primary key of another table.

Topic
Data and persistence
Related terms
04

Glossary · F38 / 90

Foreign key

Data and persistence

01What it means

Foreign keys link records, for example an order’s customer number refers to a row in the customer table.

In SAP, foreign keys are defined in the ABAP Dictionary and checked by the application, for example through check tables and value help, rather than enforced by the database itself.

02Why it matters

  • Keeps references between records valid
  • Powers input checks and value lists
  • Broken references cause errors later
  • Defines the order data must be loaded in

03In practice

Example

A sales order cannot be saved with a payment term that does not exist, because the field is checked against its table.

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.