AletheonAI Labs

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:

FieldMeaningNotes for a migration
MANDTClientPart of the key; one client per export
KUNNRCustomer numberText, ten characters, keep the leading zeros
NAME1 to NAME4Name, in up to four partsDecide once whether to join them or keep them apart
SORTLSort field (search term)Often a short name; useful for matching duplicates
STRASStreet and house numberSummary; the full address is in ADRC
ORT01City
PSTLZPostal codeText, or 01067 becomes 1067
REGIORegion (state, province)SAP region code, matched per country
LAND1Country keySAP country code, usually the ISO code
SPRASLanguage keySAP language code; map to the target's languages
TELF1, TELFXTelephone, faxFirst number only; more in ADR2
STCD1, STCD2Tax numbers 1 and 2Meaning depends on the country
STCEGVAT registration number
KTOKDCustomer account groupSeparates sold-to, ship-to, one-time customers; often a filter
ADRNRAddress numberLink to ADRC, ADR6 (e-mail) and ADR2 (phone)
ERDAT, ERNAMCreated on, created byERDAT is YYYYMMDD
LOEVMCentral deletion flagX = marked for deletion; usually left behind
SPERRCentral posting blockX = blocked; decide: archive or migrate inactive
AUFSD, LIFSD, FAKSDCentral order, delivery and billing blocksA reason code when set; check before migrating as active
LIFNRVendor number of the same partnerSet when the customer is also a vendor; keeps the two linked
Common KNA1 fields

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.

TableHoldsJoined on
KNB1Company code data: reconciliation account, payment terms, dunningKUNNR + BUKRS
KNVVSales area data: currency, incoterms, pricing, shippingKUNNR + sales organisation, distribution channel, division
KNVPPartner functions: sold-to, ship-to, bill-to, payerKUNNR + sales area + partner function
KNBKBank detailsKUNNR
ADRCFull address: names, street, city, postal code, regionADRNR = ADDRNUMBER
ADR6, ADR2E-mail addresses, telephone numbersADRNR = ADDRNUMBER
BUT000Business partner, general data (S/4HANA)Through the customer-to-partner link (CVI_CUST_LINK)
Tables linked to KNA1

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:

  1. Open SE16N, enter KNA1 and choose the fields you need, keeping the technical names (KUNNR, NAME1) as column headers.
  2. Filter out what should not move: LOEVM = X (marked for deletion), and account groups you do not migrate, such as one-time customers.
  3. Raise the maximum number of hits so the list is complete, and note the count SAP shows. It is your first reconciliation check.
  4. Export as Unicode text or .xlsx. Do not open a CSV in Excel and save it again: the leading zeros go.
  5. Export ADRC (and ADR6 for e-mail) with the same customers, and KNB1 and KNVV if company-code or sales data moves too.
  6. 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.

QuestionAnswer
What is KNA1?Customer master, general data
KeyMANDT + KUNNR
Company code dataKNB1
Sales area dataKNVV (partner functions in KNVP)
Full address, e-mail, phoneADRC, ADR6, ADR2 via ADRNR
Vendor counterpartLFA1 (linked through LIFNR)
In S/4HANAStill there; maintained through business partners (BUT000)
Display one customerXD03 in ECC; BP in S/4HANA
KNA1 at a glance

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
Start free sample

Keep reading

Contact us

SAP, multi-company Odoo or more than 2 million records?

Most migrations start with the free sample and need no call. For jobs above 2,000,000 records, SAP or multi-company ERP, or a pathway marked Contact us, tell us what you are moving and we will reply within one business day.

  • A reply from a person within one business day
  • A written plan and a price before any work starts
  • The same reconciliation report and rollback journal as every self-serve run
We reply within one business day, and use these details only to reply.