Home About Blog Contact SAP HTML SQL Python AI
🛡️ SAP ABAP Tutorial · 2026–27

How SAP Tables Are Connected: SAP Data Relationships Every SAP Professional Must Know

2026–27 Guide Pramod Behera 10 min read SAP ABAP · ABAP Admin

Today we discuss How SAP Tables Are Connected — fundamental for anyone working with SAP systems, including developers, functional consultants, data analysts, and end users. SAP is built on a highly structured relational database where business data is stored across thousands of tables. Each table holds a specific type of data, such as customer details, sales orders, materials, or financial records. These tables are linked together through relationships that allow SAP to retrieve, process, and analyse business information efficiently. These connections enable SAP to maintain data consistency, scalability, and high performance.

SAP Tables Connected

📘 SAP Uses Different Types of Tables for Storing Data

In SAP, tables are structured data storage units used to store and manage business information. They organise data into rows (records) and columns (fields).

SAP Table Types
Table TypeDescription
Transparent TablesStored directly in the database — one SAP table maps to one database table. Most common type used in SAP.
Cluster TablesMultiple logical tables stored together in a single database table. Used for related data like payroll or document change history.
Pooled TablesMultiple small tables stored in a single pool table. Used for control and customising data with short, frequently accessed records.

📘 What Are SAP Tables?

SAP tables are the building blocks of business data storage. Each module (SD, MM, FI, etc.) uses its own set of tables to store transactional and master data.

Key SAP Tables — Examples
TableDescriptionModule
MARAGeneral material master data — material number, type, base unit of measure, industry sectorMM / Cross
KNA1General customer master — name, address, country, languageSD / FI
VBAKSales document header — sales order number, customer, sales org, document dateSD
VBAPSales order items — material, quantity, item number, plant, pricing referencesSD

🔑 Key Concepts Behind How SAP Tables Are Connected

Primary Keys

A primary key uniquely identifies each record in a table. It ensures no duplicate records exist, enables fast database access, and creates reliable table relationships.

Example — Sales Order Header Table (VBAK): Primary Key
FieldDescriptionRole
VBELNSales document numberPrimary Key — uniquely identifies each sales order in the system
No duplicate records
Fast database access
Reliable table relationships

Foreign Keys

Foreign keys link one table to another. They enforce data integrity by ensuring that referenced values exist in the target table before a transaction can be saved.

Example — Foreign Key Relationship: VBAP to VBAK
TableFieldReferencesMeaning
VBAPVBELNVBAKEvery sales order item must belong to a valid sales order header
💡

VBAP-VBELN → VBAK-VBELN is one of the most common foreign key relationships in SAP SD. SAP will reject the record if VBELN does not exist in VBAK.

Check Tables

SAP uses check tables to validate field values before data is saved:

Check Tables — Field Validation
FieldCheck TablePurpose
Customer NumberKNA1Ensures the customer exists before a sales order is created
Material NumberMARAEnsures the material exists before adding it to a purchase order

🔗 Types of Relationships Between SAP Tables

1️⃣
1 : 1

One-to-One

One record in a table corresponds to exactly one record in another table.

📑
1 : N

One-to-Many

One record in the parent table links to many records in the child table. Most common in SAP.

🔀
N : N

Many-to-Many

Multiple records in one table relate to multiple records in another. Uses intermediate tables.

One-to-Many Example — VBAK to VBAP
Sales Order (VBAK — VBELN)Item (VBAP — POSNR)Relationship
500001Item 10One header → many items
500001Item 20Same header, second item
500001Item 30Same header, third item

🔍 Understanding Table Joins in SAP

When retrieving data from multiple connected tables, SAP uses joins.

Inner Join

Returns records where values match in both tables.

ABAP / SQL
SELECT * FROM VBAK
  INNER JOIN VBAP
    ON VBAK~VBELN = VBAP~VBELN.

Left Outer Join

Returns all records from the left table and matching records from the right.

ABAP / SQL
SELECT * FROM VBAK
  LEFT OUTER JOIN VBAP
    ON VBAK~VBELN = VBAP~VBELN.
SAP Join Types — Quick Reference
Join TypeReturnsCommon Use Case
INNER JOINRows matching in both tablesSales orders with items (VBAK + VBAP)
LEFT OUTER JOINAll left rows + matching right rowsAll customers including those with no orders
RIGHT OUTER JOINAll right rows + matching left rowsAll items including unlinked orphan records

🛒 SAP Tables Connected in Sales and Distribution (SD)

Customer Master Tables

Customer Master — Table Structure
TableDescriptionKey Field
KNA1General customer data — name, address, countryKUNNR
KNVVSales area data — pricing, delivery terms, sales orgKUNNR + VKORG + VTWEG + SPART
ADRCAddress data — street, city, postal codeADDRNUMBER

Sales Document Tables

Sales Documents — Connection Example
TableDescriptionKey FieldLinks To
VBAKSales order header — one record per orderVBELNKNA1 (via KUNNR)
VBAPSales order items — one record per line itemVBELN + POSNRVBAK (via VBELN)
VBEPSchedule lines — delivery dates and quantitiesVBELN + POSNR + ETENRVBAP (via VBELN + POSNR)
🔗

Connection chain in SD:
VBAK-VBELN = VBAP-VBELN
VBAP-VBELN + VBAP-POSNR = VBEP-VBELN + VBEP-POSNR

📊 SAP Table Relationships — All Key Tables Across Modules
TableFull NameModuleKey Field(s)Links ToRelationship
MARAGeneral Material DataMM / CrossMATNRMARD, MARC, MAKT1 : N — one material → many plants/stocks
MARCPlant Data for MaterialMMMATNR + WERKSMARA, MARDN : 1 — many plant records → one material
MARDStorage Location Stock DataMM / WMMATNR + WERKS + LGORTMARA, MARCN : 1 — many storage locs → one plant record
KNA1Customer Master — GeneralSD / FIKUNNRKNVV, VBAK, BSID1 : N — one customer → many sales areas & orders
KNVVCustomer Master — Sales DataSDKUNNR + VKORG + VTWEG + SPARTKNA1N : 1 — many sales areas → one customer
VBAKSales Document HeaderSDVBELNVBAP, KNA1, VBUK1 : N — one order header → many items
VBAPSales Document ItemSDVBELN + POSNRVBAK, MARA, LIPSN : 1 — many items → one order header
VBEPSales Document Schedule LinesSDVBELN + POSNR + ETENRVBAPN : 1 — many schedule lines → one order item
LIKPDelivery HeaderSD / LEVBELNLIPS, VBAK1 : N — one delivery → many delivery items
LIPSDelivery Item DataSD / LEVBELN + POSNRLIKP, VBAP, MARAN : 1 — many delivery items → one delivery
BKPFAccounting Document HeaderFIBUKRS + BELNR + GJAHRBSEG, BSIS, BSAS1 : N — one doc header → many line items
BSEGAccounting Document SegmentFIBUKRS + BELNR + GJAHR + BUZEIBKPF, SKA1, KNA1N : 1 — many line items → one doc header
SKA1G/L Account MasterFIKTOPL + SAKNRSKB1, BSEG1 : N — one G/L account → many company codes
EKKOPurchasing Document HeaderMMEBELNEKPO, LFA11 : N — one PO header → many PO items
EKPOPurchasing Document ItemMMEBELN + EBELPEKKO, MARAN : 1 — many PO items → one PO header
LFA1Vendor Master — GeneralMM / FILIFNRLFB1, EKKO, BSIK1 : N — one vendor → many company code records
💡

Tip: Use transaction SE11 to view table structures and foreign key definitions. Use SE16 to browse live table data.

🛠️ Tools to Analyse SAP Table Connections

🗄️

Data Dictionary (SE11)

  • View full table structures and field definitions
  • Check foreign key definitions between tables
  • Analyse check tables and domain values
  • View technical settings and delivery class
🔎

Table Browser (SE16 / SE16N)

  • View live table data with key filters
  • Test table relationships by matching keys
  • Explore records and check row counts
  • Export table data for further analysis

📝 Quick Knowledge Check

1. Is VBELN the primary key used to connect VBAK and VBAP tables?

2. Is the One-to-Many relationship the most common type in SAP?

3. Can transaction SE11 be used to view foreign key relationships between SAP tables?

📘 Featured SAP Tutorials

SAP MM

SAP MM Configuration

Complete MM configuration guide covering procurement cycle and system settings.

Read Tutorial
SAP FICO

SAP FICO Training 2025

Career paths, certification guide, and hands-on FICO module training.

Read Tutorial
Python

Python Tutorial

Master Python from the ground up — syntax, loops, functions and more.

Read Tutorial