KNA1 table in SAP: fields, keys and how to export customer data
- United States
- United Kingdom
- European Union
- India
- UAE
- Australia
- Canada
In short
KNA1 is SAP's customer master table for general data: one row per customer per client, keyed by MANDT (client) and KUNNR (customer number). It holds the customer's name, address summary, country, language, tax numbers, account group and central blocks. Company-code data such as the reconciliation account and payment terms lives in KNB1, and sales-area data in KNVV. The full address, e-mail and phone numbers are kept in the central address tables (ADRC, ADR6, ADR2), linked by ADRNR. On S/4HANA, KNA1 still exists, but customers are maintained as business partners and synchronised into it.
What KNA1 is
SAP splits a customer across several tables. KNA1 holds the general data, the part that is the same whatever company or sales organisation deals with the customer (SAP Library (opens in a new tab)). Each row is one customer in one client. The key is MANDT, the client, plus KUNNR, the customer number.
KUNNR is ten characters of text. Numeric customer numbers are stored with leading zeros, so customer 100001 is 0000100001 in the table even when a screen shows 100001. Keep it as text in every export and every target system, or the links from other tables break. The SAP downloads guide covers why the zeros disappear and how to keep them.
The KNA1 fields that matter in a migration
KNA1 has well over a hundred fields; a full list is in public references such as LeanX (opens in a new tab). Most migrations need fewer than twenty. These are the ones that come up every time:
| Field | Meaning | Notes for a migration |
|---|---|---|
| MANDT | Client | Part of the key; one client per export |
| KUNNR | Customer number | Text, ten characters, keep the leading zeros |
| NAME1 to NAME4 | Name, in up to four parts | Decide once whether to join them or keep them apart |
| SORTL | Sort field (search term) | Often a short name; useful for matching duplicates |
| STRAS | Street and house number | Summary; the full address is in ADRC |
| ORT01 | City | |
| PSTLZ | Postal code | Text, or 01067 becomes 1067 |
| REGIO | Region (state, province) | SAP region code, matched per country |
| LAND1 | Country key | SAP country code, usually the ISO code |
| SPRAS | Language key | SAP language code; map to the target's languages |
| TELF1, TELFX | Telephone, fax | First number only; more in ADR2 |
| STCD1, STCD2 | Tax numbers 1 and 2 | Meaning depends on the country |
| STCEG | VAT registration number | |
| KTOKD | Customer account group | Separates sold-to, ship-to, one-time customers; often a filter |
| ADRNR | Address number | Link to ADRC, ADR6 (e-mail) and ADR2 (phone) |
| ERDAT, ERNAM | Created on, created by | ERDAT is YYYYMMDD |
| LOEVM | Central deletion flag | X = marked for deletion; usually left behind |
| SPERR | Central posting block | X = blocked; decide: archive or migrate inactive |
| AUFSD, LIFSD, FAKSD | Central order, delivery and billing blocks | A reason code when set; check before migrating as active |
| LIFNR | Vendor number of the same partner | Set when the customer is also a vendor; keeps the two linked |
The tables around KNA1
A customer in KNA1 alone is rarely enough. Accounting data and sales data sit in their own tables, one row per company code or sales area, and contact details sit in the central address tables.
| Table | Holds | Joined on |
|---|---|---|
| KNB1 | Company code data: reconciliation account, payment terms, dunning | KUNNR + BUKRS |
| KNVV | Sales area data: currency, incoterms, pricing, shipping | KUNNR + sales organisation, distribution channel, division |
| KNVP | Partner functions: sold-to, ship-to, bill-to, payer | KUNNR + sales area + partner function |
| KNBK | Bank details | KUNNR |
| ADRC | Full address: names, street, city, postal code, region | ADRNR = ADDRNUMBER |
| ADR6, ADR2 | E-mail addresses, telephone numbers | ADRNR = ADDRNUMBER |
| BUT000 | Business partner, general data (S/4HANA) | Through the customer-to-partner link (CVI_CUST_LINK) |
KNA1 or ADRC: which address is right
KNA1 carries name and address fields, but in many systems the address users see and edit is the one in ADRC. Fivetran's troubleshooting note explains why NAME1 to NAME4 in KNA1 can be shorter than the name on the SAP screen: the screen reads ADRC (Fivetran (opens in a new tab)). SAP's own knowledge base names both tables for the same fields (SAP KBA 3328402 (opens in a new tab)).
The safe routine: export KNA1 and ADRC together, join on ADRNR, and compare five or ten customers with what XD03 or the BP transaction shows. Take the address from whichever table matches the screen. E-mail addresses are in ADR6, not KNA1.
KNA1 in S/4HANA
S/4HANA keeps KNA1, but customers are created and changed as business partners (transaction BP, table BUT000). Customer-vendor integration writes the customer roles through to KNA1, KNB1 and KNVV, so the familiar tables are still filled and can still be exported. The link between a business partner and its customer number is kept in CVI_CUST_LINK.
For a migration out of S/4HANA this means either source works: KNA1 for the customer view, or BUT000 and the address tables for the partner view. Pick one and stay with it, so every customer comes through once.
How to export KNA1 for a migration
SE16N (or SE16) is the usual way to get KNA1 out without a developer:
- Open SE16N, enter KNA1 and choose the fields you need, keeping the technical names (KUNNR, NAME1) as column headers.
- Filter out what should not move: LOEVM = X (marked for deletion), and account groups you do not migrate, such as one-time customers.
- Raise the maximum number of hits so the list is complete, and note the count SAP shows. It is your first reconciliation check.
- Export as Unicode text or .xlsx. Do not open a CSV in Excel and save it again: the leading zeros go.
- Export ADRC (and ADR6 for e-mail) with the same customers, and KNB1 and KNVV if company-code or sales data moves too.
- Before loading anything, compare a handful of customers with the SAP screen.
What Aletheon does with a KNA1 download
Upload the KNA1 download, with ADRC or BSEG if you have them, in the free check. Aletheon recognises KNA1 by its name and columns, describes each known column (KUNNR as customer number, ORT01 as city) and keeps KUNNR and PSTLZ as text. It reads ERDAT as a date and, when KUNNR is unique in the file, makes it the key. Other tables' KUNNR columns then become links to it, so open items keep their customer. Titles, ruler lines and the Number of entries line of an SE16N text download are skipped and listed, and no value is changed.
The SAP profile knows 71 standard columns; fields outside it, such as AUFSD or KNVP data, are read as they are, without a description. SAP migration projects are planned with you and quoted after a paid discovery. More on the SAP page (opens in a new tab), and the other tables are in the SAP tables guide.
| Question | Answer |
|---|---|
| What is KNA1? | Customer master, general data |
| Key | MANDT + KUNNR |
| Company code data | KNB1 |
| Sales area data | KNVV (partner functions in KNVP) |
| Full address, e-mail, phone | ADRC, ADR6, ADR2 via ADRNR |
| Vendor counterpart | LFA1 (linked through LIFNR) |
| In S/4HANA | Still there; maintained through business partners (BUT000) |
| Display one customer | XD03 in ECC; BP in S/4HANA |
Questions people ask
What is the KNA1 table in SAP?
KNA1 is the customer master table for general data: customer number, name, address summary, country, language, tax numbers, account group and central blocks. Its key is the client (MANDT) and the customer number (KUNNR).
What is the difference between KNA1, KNB1 and KNVV?
KNA1 holds data that is the same everywhere. KNB1 holds data per company code, such as the reconciliation account and payment terms. KNVV holds data per sales area, such as currency, incoterms and pricing.
Does KNA1 exist in S/4HANA?
Yes. In S/4HANA customers are maintained as business partners (BUT000), and customer-vendor integration keeps KNA1, KNB1 and KNVV filled, so KNA1 can still be read and exported.
Where is the customer e-mail address in SAP?
Not in KNA1. E-mail addresses are in the central address table ADR6, linked through the address number ADRNR. Telephone numbers beyond the first are in ADR2.
Why does KUNNR have leading zeros?
SAP stores numeric customer numbers as ten-character text, padded with zeros. Keep KUNNR as text in every export and target system, or links from other tables such as KNB1 and BSEG stop matching.
Sources
Try it on your own data
Run the free sample, read the reconciliation report, roll it back if you like.
Check a KNA1 download free