Quick answer

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.

  1. 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.
  2. Extract and profile. Read the general, company-code and organisational segments: LFA1/LFB1/LFM1 for vendors, KNA1/KNB1/KNVV for customers, MARA/MARC/MBEW/MVKE for materials. Count blanks, invalid values, blocks and deletion flags per field.
  3. 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.
  4. 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.
  5. 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.
  6. 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:

DimensionCheck in SAP
CompletenessEvery 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
ValidityValues exist in their check tables: company code in T001, payment terms in T052, unit of measure in T006
ConsistencyThe same conventions everywhere: leading zeros, upper-case search terms, one spelling of each city and street
AccuracyValues match the real world: bank details, addresses, prices. Usually confirmed by the business owner, not by a system check
UniquenessOne record per real-world partner or material: no shared VAT number STCEG, tax number STCD1 or bank account across two vendors
TimelinessRecords change when the business changes; change documents in CDHDR and CDPOS show who changed what, and when
SAP data quality dimensions and the cleansing cycle: define standards, measure and profile, cleanse and validate, monitor
The six dimensions and the four-stage cycle: cleansing is one stage of a loop that repeats, not a one-off project.

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:

ReportWhat it readsWhat it surfaces
Duplicate Master Data (Vendors)LFA1 grouped by name, country and VAT number STCEGA vendor count per group; any count above 1 is a likely duplicate. Filter by account group KTOKK
Duplicate CustomersKNA1 grouped by name, tax number 1 STCD1 and countryLikely duplicate customers by count, with the top repeated names and tax numbers charted
Blocked / Deletion-flagged VendorsLFA1 and LFB1Central posting block SPERR, purchasing block SPERM and deletion flag LOEVM, plus the company-code block and flag
Master Data Completeness AuditMARA joined to MAKT, MARC, MBEW, MVKEMaterials with no plant, valuation or sales view; maintenance status PSTAT; created and changed by
Material Master 360General, plant, valuation and sales viewsOld material number BISMT, base unit MEINS, deletion flag LVORM side by side
Customer Master Sales 360KNA1, KNVV, KNVP, KNB1A KPI for customers with no payment terms in the sales area
Change Documents / Audit TrailCDHDR and CDPOSWho 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.

PostNow.ai field properties for Company Code with pre-validation switched on against SAP check table T001, key field BUKRS
PostNow.ai pre-validation looks each company code up in check table T001 before the load runs.
PostNow.ai validation results listing two errors on one cell: longer than the maximum length of 8, and not found in SAP master data
PostNow.ai Validate names each failing cell and the reason, and the list exports to CSV for whoever supplied the data.

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 LFBK adds 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 LFB1 and 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 keyWhere it livesStrength
Same VAT numberLFA1-STCEG, KNA1-STCEGStrong: a VAT number normally identifies one legal entity per country (VAT groups are the exception)
Same tax numberSTCD1, STCD2 in LFA1 and KNA1; tax numbers per BP in S/4HANAStrong, but the meaning of each field depends on the country
Same bank accountLFBK and KNBK (bank country, bank key, account number); BUT0BK for business partnersStrong, and a payment-risk signal when the names differ
Name + postal code + cityName and address in LFA1/KNA1, address details in ADRCMedium: needs normalised names and standard addresses
Name onlyNAME1, search term SORT1Weak: 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.

ⓘ
Retire a duplicate material in steps. First set a cross-plant material status (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.

ObjectBlock and flag fieldsTransactions
VendorLFA1: SPERR, SPERM, LOEVM; LFB1: SPERR, LOEVM; LFM1: SPERM per purchasing organisationXK05, XK06; BP on S/4HANA
CustomerKNA1: SPERR, order block AUFSD, delivery block LIFSD, billing block FAKSD, LOEVM; KNB1: SPERR, LOEVMXD05, XD06; BP on S/4HANA
MaterialMARA-LVORM, MARC-LVORM; material status MSTAE and plant status MMSTAMM06, 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 STREET while HOUSE_NUM1 is blank.
  • Variant spellings. "St.", "Str." and "Strasse"; "Muenchen" and "München" for one city.
  • Missing regions. Blank REGION in countries where tax or freight depends on it, such as US states.
  • Search terms. SORT1 in 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.

AspectBefore an S/4HANA migrationOngoing governance
GoalLoad only records that are needed, unique and completeKeep new and changed records to the same standard
ScopeEvery in-scope object, in load order; dormant records excludedNew records, changes, and a periodic sample
DuplicatesMerge or retire before CVI turns them into business partnersA duplicate check on every new partner and material
RulesWritten into the mapping and the load templatesField status, check tables, templates, approvals
EvidenceCounts before and after cleansing, per objectA 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 tcodeUse it to
PostNow.ai Report LibraryPull duplicate vendors and customers, blocked and deletion-flagged vendors, material completeness and change documents into Excel, with KPIs per report
SE16NCount blanks and values per field in any table, such as LFB1 by ZTERM
BP, XK03, XD03, MM03Display one partner or material in full before deciding on it
XK04, XD04, MM04See the change history of one vendor, customer or material
S_ALR_87012086List vendors with their master data
FBL1N, FBL5N, ME2LCheck open vendor items, open customer items and open purchase orders before blocking a duplicate
MM50, MM60List materials that can still be extended, and materials by type, plant and creation date
XK05, XK06, XD05, XD06, MM06Block partners and set deletion flags (on S/4HANA, partners in BP)
OBB8, CUNI, OY01Check the payment terms, units of measure and country settings the data must match
MDS_LOAD_COCKPITRun 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:

  1. Write the rules per object with its business owner: mandatory fields, allowed values, duplicate keys.
  2. Profile before you fix: counts of blanks, duplicates, blocks and deletion flags per object and org unit.
  3. Match on hard identifiers (VAT number, tax number, bank account) and treat a name match as a lead.
  4. Map every duplicate to a survivor and check open items and open orders before retiring it.
  5. Block and flag, never delete; archive later with the standard archiving objects.
  6. Keep BISMT unique and filled for every migrated material.
  7. Fix through SAP with a standard transaction or BAPI so a change document is written.
  8. Correct only what changed and keep the before-image, as PostNow.ai Mass Change does with its baseline.
  9. Move each rule into the entry path: field status, check tables and load templates such as the customer master upload.
  10. 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.

Frequently asked questions

How does PostNow.ai help with SAP data quality and master data cleansing?
PostNow.ai reads master data into Excel and posts corrections back through SAP. Report Library reports find duplicate vendors (grouped by name, country and VAT number), duplicate customers (name, tax number and country), blocked and deletion-flagged vendors, materials missing plant, valuation or sales views, and change documents. A designer can add custom checks in the query builder, such as vendors with no company-code record. Mass Change then posts only the rows you corrected, through standard BAPIs or recorded transactions under your own SAP login, and load templates with Validate and Simulate keep new records clean. A 14-day free trial is available.
What are SAP data quality best practices?
Write the rules per object with its owner, profile before you fix, match duplicates on VAT number, tax number or bank account, and map each duplicate to a survivor. Block and flag records rather than delete them, correct through standard transactions or BAPIs so SAP writes a change document, build each rule into data entry, and rerun the same profile every month.
What is the master data cleansing process?
The master data cleansing process has six steps: agree the rules per object with its owner, extract and profile the data, match likely duplicates on hard identifiers, decide which record survives, correct or retire the rest through standard SAP transactions or BAPIs, and move the rules into the entry path so the same errors do not return.
How do I find duplicate vendors in SAP?
Group vendor records in LFA1 on a normalised name plus a hard identifier: VAT number STCEG, tax number STCD1 or STCD2, or a bank account in LFBK shared by two vendors. A shared tax number or bank account is close to proof; a name match alone is a lead to review. Check open items in FBL1N and open purchase orders in ME2L before blocking the duplicate.
How do I clean vendor master data before an S/4HANA migration?
Exclude dormant vendors without open items from the load scope, merge or retire duplicates, and fill the fields S/4HANA business partners need, such as tax numbers, payment terms and bank details. Do this before the CVI synchronisation turns every vendor into a business partner. Load blocked vendors that still have open items, with their block.
What is the BISMT field in SAP?
BISMT is the old material number field in table MARA. Most migrations use it to store the legacy key of each material, which makes it a reliable duplicate check: two materials with the same BISMT were usually loaded twice. Keep it filled and unique for every migrated material.
What is the difference between LOEVM and SPERR in SAP?
SPERR is a posting block: the vendor or customer cannot be used for postings, centrally in LFA1 or KNA1 or per company code in LFB1 or KNB1. LOEVM is the deletion flag, which marks the record for archiving. Neither removes data. Materials use LVORM as their deletion flag.
Which SAP transactions help check master data quality?
SE16N for counts per field, BP, XK03, XD03 and MM03 to display records, XK04, XD04 and MM04 for change history, FBL1N, FBL5N and ME2L for open items and orders, MM50 for extendable materials, and XK05, XK06, XD05, XD06 and MM06 to block records and set deletion flags.
A professional working in PostNow.ai on a laptop

Clean master data, kept that way

Find and fix your bad records

Pull duplicates, gaps and stale blocks into Excel, correct them in one sheet, and post only the changed rows back to SAP.

Request a demo
Book a demo

Bring one SAP process. We show it end to end.

Tell us where to reach you and which process matters. The PostNow.ai team replies by email to arrange the demo.

  1. 01You send the formIt goes straight to the PostNow.ai team.
  2. 02We agree a timeWe reply to your work email to set up the call.
  3. 03You see your own processA process from your own SAP work, shown from start to finish.

Request your demo

Name, work email and company are needed.

Please use your company email address.
What would you like to see?

We use your details only to arrange the demo. See our privacy policy.