What are SAP data quality best practices?
SAP data quality best practices keep master data complete, valid, consistent and unique: agree rules per object, profile before fixing, match duplicates on tax number or bank account, correct through standard transactions or BAPIs, and build each rule into data entry. PostNow.ai reads master data into Excel with duplicate and completeness reports and posts the fixes through Mass Change.
- Master data cleansing is find, then fix. Profile each object for duplicates, missing views, missing tax numbers, blocks and deletion flags, then correct the records that fall short.
- Fix through SAP, never in the tables. Corrections go through standard transactions or BAPIs, so SAP validates them and writes a change document.
This guide is for master data owners, AP and AR leads, and the consultants who clean vendor, customer and material data before a migration or keep it clean after go-live. It covers the cleansing process, the SAP fields and transactions behind each typical defect, and a checklist. The ownership model and roles are covered in SAP master data management; this page is about finding and fixing the bad records themselves.
The master data cleansing process in SAP
The master data cleansing process in SAP runs in six steps: agree the rules per object, extract and profile the data, match likely duplicates, decide which record survives, correct or retire the rest through SAP, and stop the same errors coming back. PostNow.ai covers the extract, profiling and correction steps from Excel.
- Agree the rules per object. For vendors: which fields are mandatory per account group, which payment terms are allowed, what counts as a duplicate. Write the rules down with the data owner before anyone runs a report, or every finding turns into a debate.
- Extract and profile. Read the general, company-code and organisational segments:
LFA1/LFB1/LFM1for vendors,KNA1/KNB1/KNVVfor customers,MARA/MARC/MBEW/MVKEfor materials. Count blanks, invalid values, blocks and deletion flags per field. - Match likely duplicates. Group on normalised name plus a hard identifier: tax number, VAT number or bank account for partners; description plus manufacturer part number or old material number for materials.
- Decide the survivor. Keep the record with open items, recent postings and the most complete data. Map every loser to its survivor, so purchasing and finance know where to point open orders and contracts.
- Correct or retire through SAP. Fix fields with a standard change transaction or BAPI; block and flag the losers for deletion rather than deleting them. Records with open items stay until they are cleared.
- Prevent recurrence. Move the rules into the entry path (field status, check tables, load templates) and rerun the same profile on a schedule.
SAP data quality dimensions as concrete checks
SAP data quality dimensions only help when each one becomes a query on a table. The six usual dimensions map to SAP like this:
| Dimension | Check in SAP |
|---|---|
| Completeness | Every vendor in LFA1 has its LFB1 company-code record with reconciliation account AKONT and payment terms ZTERM; every material in MARA has the plant and valuation views its processes need |
| Validity | Values exist in their check tables: company code in T001, payment terms in T052, unit of measure in T006 |
| Consistency | The same conventions everywhere: leading zeros, upper-case search terms, one spelling of each city and street |
| Accuracy | Values match the real world: bank details, addresses, prices. Usually confirmed by the business owner, not by a system check |
| Uniqueness | One record per real-world partner or material: no shared VAT number STCEG, tax number STCD1 or bank account across two vendors |
| Timeliness | Records change when the business changes; change documents in CDHDR and CDPOS show who changed what, and when |

How PostNow.ai finds and fixes bad master data
PostNow.ai handles master data cleansing in four moves: read the records into Excel with ready reports, add your own checks in the query builder, correct the records with Mass Change, and keep new records clean with load templates. Every read and every posting runs under the user's own SAP login and authorisations.
1. Read master data into Excel with the Report Library
The PostNow.ai Report Library includes governance and master data reports that answer the usual cleansing questions directly. Each one opens in Excel with KPIs and charts above the rows:
| Report | What it reads | What it surfaces |
|---|---|---|
| Duplicate Master Data (Vendors) | LFA1 grouped by name, country and VAT number STCEG | A vendor count per group; any count above 1 is a likely duplicate. Filter by account group KTOKK |
| Duplicate Customers | KNA1 grouped by name, tax number 1 STCD1 and country | Likely duplicate customers by count, with the top repeated names and tax numbers charted |
| Blocked / Deletion-flagged Vendors | LFA1 and LFB1 | Central posting block SPERR, purchasing block SPERM and deletion flag LOEVM, plus the company-code block and flag |
| Master Data Completeness Audit | MARA joined to MAKT, MARC, MBEW, MVKE | Materials with no plant, valuation or sales view; maintenance status PSTAT; created and changed by |
| Material Master 360 | General, plant, valuation and sales views | Old material number BISMT, base unit MEINS, deletion flag LVORM side by side |
| Customer Master Sales 360 | KNA1, KNVV, KNVP, KNB1 | A KPI for customers with no payment terms in the sales area |
| Change Documents / Audit Trail | CDHDR and CDPOS | Who changed a record, when, with which transaction |
2. Add your own checks in the query builder
A designer can add any SAP table by name to the PostNow.ai query builder, join it, and save the result as a report that operators run themselves. Two features carry most cleansing checks. The has no matching record filter finds orphans: vendors in LFA1 with no LFB1 record, materials in MARA with no MARC record. Aggregate mode groups and counts, so the vendor bank table LFBK grouped by bank key and account number with a count of vendors shows every bank account used by more than one vendor.
3. Correct the records with Mass Change
PostNow.ai SAP Mass Change downloads the records you select into the template sheet and keeps a hidden baseline copy. Edit the payment terms, tax numbers or blocks in Excel, and Update changed rows posts only the rows that differ from the baseline, through the template's BAPI or recorded transaction. If an approval policy covers the template, the change waits for an approver. Each row gets its SAP result in the Run Log, and SAP writes a change document for every correction.
4. Keep new records clean with load templates
PostNow.ai templates carry the rules into every new load. A designer marks required fields with * in the Excel header, restricts codes such as payment terms to an allow-list, and sets per-field transformations: trim, default value, leading zeros to a target length, then upper case. Validate checks every cell for required values, length, type, date format and allowed values; with pre-validation switched on it also confirms that a code exists in its SAP check table. Simulate then shows which rows SAP would accept before anything posts.


Worked example: 4,800 vendors before mock 1
The numbers below are illustrative; the pattern is typical of an ECC vendor base going to S/4HANA. Company code 1000 holds 4,800 vendors.
- Duplicates. The Duplicate Master Data (Vendors) report returns 112 groups with a count above 1. A query on
LFBKadds 37 bank accounts shared by two vendors. Purchasing and AP pick a survivor for each group. - Retire, don't delete. 141 losers get the central posting block and deletion flag through Mass Change; 9 of them still have open items, so AP clears those first.
- Dormant vendors. The Blocked / Deletion-flagged Vendors report shows 620 vendors already blocked. The migration team excludes those without open items from the load scope.
- Gaps. 58 vendors have blank payment terms in
LFB1and 203 have no VAT number. AP fills both columns in Excel and posts the 261 changed rows; the other rows in the sheet are left untouched.
The cleaned vendor base then goes into the mock loads described in SAP data migration, and new suppliers arrive through the vendor master upload template with the same rules built in.
Duplicate vendors and customers: matching on name, tax number and bank details
Duplicate vendors and customers are found by grouping records on a normalised name plus a hard identifier: VAT number STCEG, tax number STCD1 or STCD2, or the same bank account. A name match alone is a lead; a shared tax number or bank account is close to proof. PostNow.ai's duplicate reports group vendors on name, country and VAT number, and customers on name, tax number and country.
| Match key | Where it lives | Strength |
|---|---|---|
| Same VAT number | LFA1-STCEG, KNA1-STCEG | Strong: a VAT number normally identifies one legal entity per country (VAT groups are the exception) |
| Same tax number | STCD1, STCD2 in LFA1 and KNA1; tax numbers per BP in S/4HANA | Strong, but the meaning of each field depends on the country |
| Same bank account | LFBK and KNBK (bank country, bank key, account number); BUT0BK for business partners | Strong, and a payment-risk signal when the names differ |
| Name + postal code + city | Name and address in LFA1/KNA1, address details in ADRC | Medium: needs normalised names and standard addresses |
| Name only | NAME1, search term SORT1 | Weak: a lead to review, never grounds to merge |
Normalise before you compare: upper case, strip punctuation and legal forms such as GmbH, Ltd or Inc, collapse spaces. "ACME Ltd." and "Acme Limited" then fall into one group. Exclude one-time vendor and customer account groups from the match; they share a record by design.
Vendor master data cleansing
Vendor master data cleansing starts with duplicates because a duplicate vendor splits spend, payment history and open items, and can let one invoice be paid twice under two vendor numbers. For each group, check open items in FBL1N, open purchase orders in ME2L and the last posting date, then keep the vendor with the live business. Block the others for posting and purchasing (XK05) and set the deletion flag (XK06) once nothing is open; on S/4HANA both are set in transaction BP in the supplier roles. Check the payment-relevant fields of the survivor last: bank details, payment methods ZWELS, payment terms and the alternative payee. The accounts payable side of this is covered in SAP accounts payable automation.
Duplicate customers and business partners (BP and CVI)
On SAP S/4HANA, transaction BP is the single point of entry for customer and supplier master data, and customer/vendor integration (CVI) keeps each business partner synchronised with its customer or supplier record (SAP Help). On a conversion from ECC, every customer and vendor is synchronised to a business partner, so a duplicate in ECC becomes a duplicate business partner in S/4HANA. Clean duplicates before the CVI synchronisation runs (transaction MDS_LOAD_COCKPIT, per the SAP conversion guide), not after. Customers and vendors that are the same company, linked through KNA1-LIFNR and LFA1-KUNNR, can then become one business partner with both roles. For records that already exist as business partners, SAP's data cleansing cases compare a source and a target partner and merge them (SAP Help).
Material duplicates, BISMT and incomplete material views
Material duplicates are the same part created under two material numbers, usually by two plants or a migration that ran twice. Find them by grouping on a normalised description from MAKT, the manufacturer part number MFRPN, and the old material number BISMT. PostNow.ai's Material Master 360 report shows the description and BISMT side by side; add MFRPN in the query builder.
The old material number (BISMT)
The old material number, field MARA-BISMT, is where most projects store the legacy key of a migrated material. That makes it the best duplicate key you have: two materials with the same BISMT were almost always loaded twice, and a blank BISMT on a migrated material breaks the trail back to the source. Before a new migration, decide what BISMT will hold and keep it unique per material type.
Incomplete views
A material is incomplete when a process needs a view it does not have: no MARC record for the plant that buys it, no MBEW valuation record, no MVKE record for the sales organisation that sells it. The maintenance status PSTAT lists the views that exist as letters, such as K for basic data, E for purchasing, D for MRP and B for accounting. Transaction MM50 lists materials that can still be extended to more views; the PostNow.ai Master Data Completeness Audit counts materials with no plant, valuation or sales view. Missing views are filled with MM01 extensions or a material master mass update.
MSTAE) whose configuration in OMS4 blocks purchasing and stock postings, move stock and open orders to the survivor, then flag it for deletion with MM06. A deletion flag alone does not stop the material being used.Blocked and deletion-flagged records: LOEVM, SPERR and LVORM
A block stops a record being used; a deletion flag marks it for archiving. Vendors carry the central posting block LFA1-SPERR, the purchasing block SPERM and the deletion flag LOEVM, with matching fields per company code in LFB1. Materials use LVORM. Neither removes data; archiving does that later. PostNow.ai reports both.
| Object | Block and flag fields | Transactions |
|---|---|---|
| Vendor | LFA1: SPERR, SPERM, LOEVM; LFB1: SPERR, LOEVM; LFM1: SPERM per purchasing organisation | XK05, XK06; BP on S/4HANA |
| Customer | KNA1: SPERR, order block AUFSD, delivery block LIFSD, billing block FAKSD, LOEVM; KNB1: SPERR, LOEVM | XD05, XD06; BP on S/4HANA |
| Material | MARA-LVORM, MARC-LVORM; material status MSTAE and plant status MMSTA | MM06, MM02 |
Cleansing asks three questions of these fields. Is any flagged or blocked record still in use, with postings this year or open items? Is any record dormant, with no postings for years, but still open for use? And which blocked records belong in the migration scope? Blocked vendors with open items must be loaded with their block, or their open items have nowhere to go; the SAP data migration testing guide shows how a missed rule like this surfaces in a mock load. Records that are flagged and have nothing open are candidates for the archiving objects FI_ACCPAYB (vendors), FI_ACCRECV (customers) and MM_MATNR (materials).
Missing tax numbers, wrong payment terms and inconsistent units of measure
Missing tax numbers, wrong payment terms and inconsistent units of measure stop transactions, not just reports. Each has a fixed home in SAP: tax numbers in STCEG and STCD1, payment terms ZTERM per company code and per purchasing or sales organisation, units in MARA and MARM. PostNow.ai reads all of them into one sheet.
Missing tax numbers
SAP checks the format of a tax number against the country rules when it is entered, but a blank field passes unless the account group's field status makes it required. Profile STCEG, STCD1 and STCD2 by country and account group: a domestic vendor in a country that issues VAT numbers, with all three blank, needs a number or a documented exemption. Fix the field status so new records cannot be saved without it.
Wrong payment terms
Vendors carry payment terms twice: LFB1-ZTERM for the company code, used on the invoice, and LFM1-ZTERM for the purchasing organisation, proposed into the purchase order. Customers carry them in KNB1 and KNVV. Three checks find most errors: terms that differ between the two levels for the same partner, rarely used keys that are typos of a standard key, and blanks. The keys themselves are configured in OBB8 (table T052). The PostNow.ai Vendor Master Purchasing 360 report puts both vendor fields in one row.
Inconsistent units of measure
The base unit MARA-MEINS is the unit stock is kept in; order unit BSTME and sales unit VRKME need a conversion to it in MARM. Typical defects: similar materials in EA, PC and BOX for no business reason, an order unit with no MARM conversion, and legacy codes such as "PCS" mapped differently in two loads. Units are defined in CUNI (table T006); note that the internal unit ST shows as PC in an English logon, which confuses many load files.
Address standardisation in SAP
Address standardisation in SAP means one structure and one spelling for every address: street and house number in their own fields, the postal code in the country's format, the region from its list, and the city written one way. PostNow.ai templates apply these rules to new records, and Mass Change corrects the existing ones from Excel.
Vendor, customer and business partner addresses are stored in central address management, table ADRC. Country settings in OY01 (table T005) define the postal code length and check rule, and when the regional structure indicator is set for a country, SAP checks postal codes, cities and streets against the regional structure (SAP Help). Without it, profile ADRC for:
- Mixed fields. House numbers inside
STREETwhileHOUSE_NUM1is blank. - Variant spellings. "St.", "Str." and "Strasse"; "Muenchen" and "München" for one city.
- Missing regions. Blank
REGIONin countries where tax or freight depends on it, such as US states. - Search terms.
SORT1in mixed case or empty, which hides duplicates from anyone searching by name.
In a PostNow.ai template, trim and upper-case transformations and an allow-list for regions stop the same variants arriving again.
Data cleansing before an S/4HANA migration vs ongoing governance
Data cleansing before an S/4HANA migration is a project with a deadline: shrink the scope, merge duplicates and fill the fields the target needs before mock 1. Ongoing governance keeps the data clean after go-live with entry rules, owners and scheduled checks. PostNow.ai runs the same reports for both, so the baseline and the monthly check match, and new records after cutover arrive through the same templates, as described in SAP data loads after go-live.
| Aspect | Before an S/4HANA migration | Ongoing governance |
|---|---|---|
| Goal | Load only records that are needed, unique and complete | Keep new and changed records to the same standard |
| Scope | Every in-scope object, in load order; dormant records excluded | New records, changes, and a periodic sample |
| Duplicates | Merge or retire before CVI turns them into business partners | A duplicate check on every new partner and material |
| Rules | Written into the mapping and the load templates | Field status, check tables, templates, approvals |
| Evidence | Counts before and after cleansing, per object | A KPI trend: duplicates, gaps and blocks per month |
The migration side sits in phase 2 of the SAP data migration checklist. For the ongoing side, SAP Master Data Governance governs how master data is created and changed, and its consolidation and mass processing can apply data quality rules (SAP Learning); SAP Information Steward profiles data and tracks quality with scorecards (SAP). How the two disciplines split is explained in MDG vs MDM in SAP.
SAP data quality checks: transactions and reports to use
SAP data quality checks rely on a short set of transactions: table display for profiling, list reports per object, change history per record, and open-item lists before anything is retired. PostNow.ai Report Library covers the profiling in Excel; the SAP transactions below confirm and act on single records.
| Tool or tcode | Use it to |
|---|---|
| PostNow.ai Report Library | Pull duplicate vendors and customers, blocked and deletion-flagged vendors, material completeness and change documents into Excel, with KPIs per report |
SE16N | Count blanks and values per field in any table, such as LFB1 by ZTERM |
BP, XK03, XD03, MM03 | Display one partner or material in full before deciding on it |
XK04, XD04, MM04 | See the change history of one vendor, customer or material |
S_ALR_87012086 | List vendors with their master data |
FBL1N, FBL5N, ME2L | Check open vendor items, open customer items and open purchase orders before blocking a duplicate |
MM50, MM60 | List materials that can still be extended, and materials by type, plant and creation date |
XK05, XK06, XD05, XD06, MM06 | Block partners and set deletion flags (on S/4HANA, partners in BP) |
OBB8, CUNI, OY01 | Check the payment terms, units of measure and country settings the data must match |
MDS_LOAD_COCKPIT | Run the CVI synchronisation of customers and vendors to business partners on an S/4HANA conversion |
SAP data quality best practices: a checklist
SAP data quality best practices come down to ten habits that keep master data cleansing from becoming a yearly project. PostNow.ai users run most of them as saved reports and templates, so each check repeats the same way every month:
- Write the rules per object with its business owner: mandatory fields, allowed values, duplicate keys.
- Profile before you fix: counts of blanks, duplicates, blocks and deletion flags per object and org unit.
- Match on hard identifiers (VAT number, tax number, bank account) and treat a name match as a lead.
- Map every duplicate to a survivor and check open items and open orders before retiring it.
- Block and flag, never delete; archive later with the standard archiving objects.
- Keep
BISMTunique and filled for every migrated material. - Fix through SAP with a standard transaction or BAPI so a change document is written.
- Correct only what changed and keep the before-image, as PostNow.ai Mass Change does with its baseline.
- Move each rule into the entry path: field status, check tables and load templates such as the customer master upload.
- Rerun the profile monthly and track the counts, so a rise in duplicates shows early.
The wider ownership model, from data owners to stewards, is covered in SAP master data governance. Ready Excel workbooks for material create, change and deletion flags (MM01, MM02, MM06) are in the free master data templates.

