What SAP master data migration involves
SAP master data migration moves the records that transactions point to (G/L accounts, cost and profit centers, business partners, materials, BOMs, assets, prices) into the target system before any open item or stock is loaded. Each object is loaded in dependency order, through SAP's Migration Cockpit at cutover or through the object's BAPI or a recorded transaction. With PostNow.ai, each object is one Excel template: Validate checks the sheet offline, Simulate lets SAP check every row in BAPI mode and rolls it back, and Run writes SAP's result back to each row, which becomes the reconciliation record.
- Load order is dependency order. A record whose references do not exist yet is rejected, so configuration comes first, then G/L accounts, profit centers, cost centers, banks, partners and materials.
- Prove every object three ways. Record counts per organisational unit, a full comparison of the critical fields, and one result per loaded record.
Master data in SAP is the set of records that transactions reference rather than create: the customer and the material on a sales order are master data, the order is not. This page covers the master data part of a migration: the objects, their tables and transactions, the load order across objects, the tools, and validation and reconciliation per object. The whole programme, with open items, balances and cutover, is in SAP data migration; SAP's own load tool is explained in SAP Migration Cockpit; testing the loads is in SAP data migration testing; and the day-to-day loads after go-live are in SAP master data mass upload.
How PostNow.ai loads master data in a migration
PostNow.ai treats a master data migration as a sequence of templates, one per object and mode, that run in the same order in every mock load and again at cutover or in hypercare. A designer builds and publishes each template against the target system; the people who own the data run their cleansed files through it from Excel, each under their own SAP login.
- Pick the interface per object. Search your target system's BAPIs by name, or let Find with AI suggest one from the transaction code:
BAPI_COSTCENTER_CREATEMULTIPLEfor KS01,BAPI_MATERIAL_SAVEDATAfor MM01,BAPI_FIXEDASSET_CREATE1for AS01,BAPI_BANK_CREATEfor FI01. On S/4HANA, API mode posts business partners to SAP's publishedAPI_BUSINESS_PARTNERservice. Where no BAPI takes the data, as for G/L accounts in FS00 or pricing in VK11, the designer records the transaction (BDC). - Map the columns once. Mapping AI matches your column headers to the interface's fields; it reads the headers only, never the cell values. For BAPIs with update-flag structures (
PLANTDATAandPLANTDATAX, for example), where a value only reaches SAP when its flag is set, PostNow.ai sets the flag for every mapped field. Values that never vary in a load, such as the controlling area or the chart of accounts, become fixed values. - Validate the cleansed file. Validate checks every cell offline, in Excel: required fields, type, length, special characters, date format and decimals. Per-field rules pad keys with leading zeros to their target length and apply the date format of each legacy extract.
- Let SAP check the rows before anything is kept. In BAPI mode, Simulate calls the BAPI for every row and then
BAPI_TRANSACTION_ROLLBACKinstead of a commit, so SAP's own answers (profit center unknown, account group not defined in the chart) come back without creating a record. For a recorded template, Debug replays a few rows in the foreground in SAP GUI first. - Run, and keep the key cross-reference. Each row posts under the user's own SAP login, and a BAPI row is committed only when SAP returns no error. The Run Log cell of each row holds SAP's message with the SAP user, time and system. In the template's Run Log Message settings, the Save to Excel tab writes a value SAP returns, such as an internally assigned material, asset or partner number, into a column of the same row, next to the legacy key. Recorded templates use SAP GUI only on the user's own computer, with the user's own stored login, when the user starts the action (Record, Run, Debug or Call Transaction); never on a server, never unattended, never with someone else's login.
- Re-run only what failed. Retry Failed re-posts the rows whose Run Log starts with ERROR, scanning from the current Start Row. If someone clicks Run again on a sheet that was already posted, PostNow.ai first lists the posted rows and offers Skip posted rows, Post again or Cancel.
Recorded templates need PostNow.ai's ZPOSTNOW_* objects installed once in the target system; BAPI and API templates need only RFC access and the user's normal SAP authorisations. Because a published template is run-only for operators, the mapping proven in mock load 1 is the mapping used in mock load 3 and at cutover.
Master data load order: which objects first
PostNow.ai runs one template at a time, so the master data load order is the order of your template runs, and it follows what each object refers to. An object loads after every object it points to: a cost center names a profit center, a supplier names a reconciliation account, a BOM names its component materials.
| # | Object | Load after | What the reference is |
|---|---|---|---|
| 0 | Configuration | Nothing: it arrives by transport or is set up in the client | Chart of accounts, account groups, controlling area and its standard hierarchy, material types, BP groupings, number ranges, asset classes, condition tables |
| 1 | G/L accounts | Configuration | Account group and field status group; the company code segment is what lets a company code post to the account |
| 2 | Profit centers | Configuration; the standard hierarchy nodes | Standard hierarchy node, segment, company code assignments |
| 3 | Cost centers | Profit centers | The profit center on the cost center, inside its validity dates; the hierarchy area |
| 4 | Bank master | Configuration | Bank country and bank key, which partner bank details refer to |
| 5 | Business partners: customers and suppliers | G/L accounts, banks | Reconciliation account in the company code data, bank key in the bank details, payment terms |
| 6 | Materials | Configuration; profit centers where the plant data carries one; G/L accounts before the first goods movement | Material type, plant, profit center, valuation class; the valuation class finds its G/L accounts through account determination |
| 7 | Batches | Materials | A batch-managed material; where batches carry characteristics, the batch class and its characteristics (CT04, CL02) |
| 8 | Bills of material | Materials | The header material and every component material, maintained in the plant |
| 9 | Pricing conditions | Customers, materials | The key combination of the condition table: customer, material, sales area, price list |
| 10 | Purchasing info records | Suppliers, materials | Supplier with purchasing organisation data, material, plant |
| 11 | Fixed assets | G/L accounts, cost centers | Asset class (account determination), cost center, plant |
| 12 | Functional locations | Cost centers | The superior functional location, maintenance plant, cost center |
| 13 | Equipment | Functional locations, materials | The functional location it is installed at; the material and serial number for serialised equipment |
SAP does not check every reference at the same moment. A cost center with a profit center that does not exist is rejected when it is created. A material whose valuation class has no G/L account in account determination is created without complaint; the error appears at the first goods movement, which in a migration is the stock load, so a mock load that stops after materials will not show it.
Three rules hold inside the order:
- Parents before children within an object. A superior functional location before the ones under it, the lower BOM levels before the assemblies above them so each level can be exploded and checked, the hierarchy node before the profit centers that sit in it.
- Create, then extend, then change. A material is created with its first plant, extended to the other plants in a second run, and corrected in a third. Mixing them in one file returns errors that contradict each other.
- Gates, not a list. No cost center load until the profit center counts reconcile; no pricing until customers and materials are both signed off. Objects loaded in parallel fail on each other's gaps, and the failures are harder to unpick.
Open items, stock and balances follow the master data and are sequenced in the migration plan; the full order across master and transactional objects is in SAP data migration. For planning, the free migration object load sequence planner has one row per object with what it depends on and its owner, and tracks each object through the mock loads to cutover.
SAP data migration objects: transactions, tables and interfaces
PostNow.ai loads each master data object through the interface that fits it: a BAPI where SAP releases one that takes the data, a recorded transaction where it does not, and SAP's published API for business partners on S/4HANA. The tables are where you count and compare after the load.
| Object | Transaction | Tables | How PostNow.ai loads it |
|---|---|---|---|
| G/L account | FS00 (FSP0 chart, FSS0 company code) | SKA1, SKB1, SKAT | Recording of FS00, since the standard G/L account BAPIs (BAPI_GL_ACC_*) only read; where your SAP team uses GL_ACCT_MASTER_SAVE_RFC (named in SAP KBA 3589646), check in SE37 that it is remote-enabled, then find it by name in BAPI search |
| Profit center | KE51 | CEPC, CEPCT, CEPC_BUKRS | BAPI_PROFITCENTER_CREATE, with the company code assignments in its COMPANYCODES table |
| Cost center | KS01 | CSKS, CSKT | BAPI_COSTCENTER_CREATEMULTIPLE |
| Bank master | FI01 | BNKA | BAPI_BANK_CREATE |
| Business partner (S/4HANA) | BP | BUT000, BUT020, BUT100; customer and supplier data in KNA1/KNB1/KNVV and LFA1/LFB1/LFM1, linked in CVI_CUST_LINK and CVI_VEND_LINK | API mode: API_BUSINESS_PARTNER. BAPI mode: BAPI_BUPA_CREATE_FROM_DATA, or an RFC function your SAP team builds on SAP's customer/vendor integration |
| Vendor and customer (ECC) | XK01, XD01 | LFA1/LFB1/LFM1, KNA1/KNB1/KNVV | Recordings of XK01 and XD01, because BAPI_VENDOR_CREATE takes no vendor data and BAPI_CUSTOMER_CREATEFROMDATA1 only copies a reference customer |
| Material | MM01 | MARA, MAKT, MARC, MARD, MBEW, MVKE, MARM, MLAN | BAPI_MATERIAL_SAVEDATA, one call per row: one material with one plant, valuation area, sales area and storage location |
| Batch | MSC1N | MCH1, MCHA | BAPI_BATCH_CREATE |
| Bill of material | CS01 | MAST, STKO, STPO | BAPI_MATERIAL_BOM_GROUP_CREATE, or CSAP_MAT_BOM_CREATE where SE37 shows it as remote-enabled in your system (otherwise through a remote-enabled wrapper) |
| Pricing condition | VK11 | KONH, KONP, and the condition table that holds the key (A004, A005 and the rest) | Recording of VK11; SAP Note 1135984 advises against BAPI_PRICES_CONDITIONS |
| Purchasing info record | ME11 | EINA, EINE | Recording of ME11 |
| Fixed asset | AS01; AS91 for legacy assets | ANLA, ANLB, ANLZ | BAPI_FIXEDASSET_CREATE1; legacy assets with values through BAPI_FIXEDASSET_OVRTAKE_CREATE |
| Functional location | IL01 | IFLOT, IFLOTX, ILOA | BAPI_FUNCLOC_CREATE |
| Equipment | IE01 | EQUI, EQKT, EQUZ, ILOA | BAPI_EQUI_CREATE |
G/L accounts, ECC vendors and customers, pricing conditions and info records usually run as recordings (S/4HANA notes below). HR master data is a separate stream with its own rules on time constraints and personal data; see HR master data upload (PA30).
Material master migration: the object with the most rows
A material is not one record. It is one MARA row plus a MARC row per plant, an MBEW row per valuation area, an MVKE row per sales organisation and distribution channel, and a MARD row per storage location. A material master migration file therefore has one row per material per plant, or one file per view level, and the extensions to the second and later plants run after the creates.
Business partner: the object that changes shape
An ECC customer file and an ECC vendor file become one business partner load on S/4HANA: a company that is both customer and supplier is one partner with roles on both sides. That merge, and the decision whether the partner number equals the legacy customer number, the vendor number or neither, are made before mock load 1, because the BP grouping and its number range follow from them. SAP KBA 1951318 says batch input is not supported in transaction BP, so the BP load runs through an interface rather than a recording of BP.
Master data by SAP module
PostNow.ai templates are built per object, while most migration plans assign an owner per module. This table maps one onto the other.
| Module | Master data objects | Note for the load |
|---|---|---|
| FI | G/L accounts, bank master, company code data of customers and suppliers, fixed assets | G/L accounts first: partners and assets refer to them |
| CO | Profit centers, cost centers, activity types, internal orders; on S/4HANA cost elements are G/L accounts | Hierarchy nodes exist before the cost and profit centers that sit in them |
| MM | Materials, suppliers, purchasing info records, batches | Suppliers are business partners on S/4HANA |
| SD | Customers, material sales views, pricing conditions | Pricing loads after customers and materials |
| PP | MRP views of the material, BOMs, work centers, routings | BOMs after their component materials |
| PM | Functional locations, equipment, maintenance plans | Functional locations top down, then equipment |
The material master shows why one record can have several owners: it carries purchasing views owned by MM, sales views owned by SD and MRP views owned by PP, so the material file needs every owner's sign-off before it loads, not only the MM lead's.
What changes for master data in S/4HANA
PostNow.ai uses the same BAPI templates on ECC and S/4HANA wherever the BAPI exists in both, as BAPI_MATERIAL_SAVEDATA, BAPI_COSTCENTER_CREATEMULTIPLE and BAPI_PROFITCENTER_CREATE do. Five changes account for most of the master data rework in an S/4HANA project.
- Customers and vendors become business partners. On S/4HANA, XD01 and XK01 send you to transaction BP (message
MD_BP028), and the partner's customer or supplier role creates the data inKNA1orLFA1behind it through customer/vendor integration (CVI). In a system conversion, existing customers and vendors are synchronised to business partners before the conversion, withMDS_LOAD_COCKPIT; in a new implementation the partners are loaded directly. - The material number can be 40 characters. Once the extended material number is switched on (SAP Note 2267140), every source field, mapping and interface that assumed 18 characters needs checking. Where it stays off, material numbers keep their ECC length.
- Cost elements are G/L accounts. The G/L account type (Primary Costs or Revenue, Secondary Costs, Balance Sheet Account, Nonoperating Expense or Income, and from S/4HANA 2020 Cash Account) is set on the account in FS00, cost elements are created there with a cost element category, and KA01 to KA03 and KA06 are no longer available. A chart of accounts brought over from ECC needs the right type on every P&L account.
- Legacy assets take two steps. In S/4HANA, AS91 creates the legacy asset's master data and ABLDT posts the takeover values, or
BAPI_FIXEDASSET_OVRTAKE_CREATEdoes both in one call. In ECC the values are entered in AS91 itself. - The Material Ledger is active. It is mandatory in S/4HANA, while actual costing stays optional. Every valuated material is in the material ledger, so complete the accounting view of every material that will carry stock before the stock load.
Recordings need one more step: record or re-test them in the target release. A recording replays the screens it saw, so an FS00, VK11 or ME11 recording made on ECC is checked in Debug on the S/4HANA mock client before operators run it.
Which tool loads which object
PostNow.ai loads any master data object that has a BAPI, a published API or a transaction that can be recorded, from Excel, on ECC and S/4HANA, run by the people who own the data. SAP's own tools are the Migration Cockpit, built for the initial load into S/4HANA, and LSMW, the classic ECC tool. Most projects use more than one, by object and by phase.
| PostNow.ai | SAP S/4HANA Migration Cockpit | LSMW | |
|---|---|---|---|
| Built for | Excel loads through SAP's interfaces: mock-load corrections, delta loads, hypercare, and every create, extend and change after go-live | The initial load into a new S/4HANA system | Loads into R/3 and ECC |
| Runs on | ECC and S/4HANA | S/4HANA (on-premise, private and public cloud) | R/3 and ECC; S/4HANA on-premise subject to SAP Note 2287723 |
| How an object is loaded | A published template per object and mode: BAPI, recorded transaction or API | Predefined migration objects, filled from template files or staging tables, or by direct transfer from an SAP source system | A project per object: recording, standard batch or direct input program, BAPI or IDoc |
| Checks before the data is kept | Validate offline in Excel, then Simulate (BAPI mode) with rollback | Validation of the file, then an optional simulation that writes no data | Errors appear when the batch input session or IDoc is processed |
| Result | SAP's message on the Excel row that was loaded, plus the new key where the template saves it | Messages per migration object instance | Batch input log in SM35, or IDoc status |
SAP describes the Migration Cockpit as designed for the initial load in a new implementation, and changing data that already exists is not in its scope; from S/4HANA 2021 projects are created in the Fiori app Migrate Your Data rather than in LTMC. SAP Note 2287723 covers LSMW in S/4HANA on-premise: using it there is not recommended and is at the customer's own risk. The full comparison is in SAP data migration tools, and what still works in LSMW is in LSMW in SAP.
Mock loads for master data
PostNow.ai runs a mock load with the same published templates that will run at cutover, so each mock tests the mapping, the cleansed data and the target configuration together. The steps run per object, because each object has its own owner, cleansing problem and dependencies.
- Extract and profile. Pull every field of the object from the legacy system and profile it: record counts per company code, plant or sales area, fill rate per field, distinct values of every coded field. The profile shows the suppliers with no payment terms and the material types the target does not have.
- Cleanse and decide scope. Merge duplicates (which of four bank keys survives, which customer and vendor are one partner) and decide which records are migrated at all, for example materials with no movement in years. Cleanse before mapping, or you cleanse twice.
- Map fields and values. Each source field gets a target field, and each coded value a target value through a value mapping table owned by the object's lead: legacy material type to SAP material type, legacy payment term to SAP payment term. The free field mapping tracker is a ready layout for that list.
- Check before loading. Validate catches format errors in Excel; Simulate lets SAP reject what the target configuration does not support, such as a valuation class not allowed for the material type, without writing anything. A file can be perfectly formed and still fail by the thousand because one customising transport has not reached the mock client.
- Load and reconcile. Run the template, reconcile counts and critical fields (next section), log every failure with its cause, and fix the mapping, the cleansing or the configuration, not the row in SAP.
- Rehearse. The last mock load runs in cutover order, at cutover volume, with the timings written down. Its reconciliation becomes the acceptance criterion for the production load.
How many mock loads to plan, and how to test each one, is covered in SAP data migration testing.
Validation and reconciliation per object
PostNow.ai gives every loaded row its own result in the Excel file it came from, so the third proof of a load, one result per record, exists as soon as the run ends. A migration sign-off needs two more: counts that match the cleansed source per organisational unit, and a full comparison of the fields the business calls critical.
| Object | Count in | Critical fields to compare in full | Proof that it works |
|---|---|---|---|
| G/L account | SKA1 per chart, SKB1 per company code | Account group, account type, reconciliation account type, open item management, field status group | A test posting in each company code |
| Profit center | CEPC, CEPC_BUKRS | Hierarchy node, segment, company code assignment, validity | A test document carrying the profit center |
| Cost center | CSKS per controlling area | Category, profit center, hierarchy area, company code, validity | A test posting to the cost center |
| Business partner | BUT000 per grouping; KNB1, LFB1 per company code; CVI_CUST_LINK, CVI_VEND_LINK | Reconciliation account, payment terms, bank details, tax number, roles | A test sales order and a test purchase order |
| Material | MARA; MARC per plant; MBEW per valuation area; MVKE per sales area | Material type, base unit, valuation class, price control, MRP type, purchasing group | A test requisition and, after the stock load, a goods movement |
| Bill of material | MAST, STKO | Components and quantities per BOM, usage, alternative | A multi-level explosion in CS11 |
| Pricing condition | KONP through the condition table | Rate, unit, validity from and to | Pricing in a test sales order |
| Fixed asset | ANLA per company code | Asset class, cost center, depreciation key and useful life per area | The asset in AW01N and a depreciation simulation |
| Equipment | EQUI, IFLOT | Installation location, cost center, maintenance plant | The structure display in IH01 |
- Counts must match exactly. Every record in scope is either in SAP or on the failure list with its reason. "About 99 percent" is not a reconciliation.
- Descriptive fields can be sampled; critical fields cannot. A wrong description is a nuisance. A wrong reconciliation account posts every invoice of that partner to the wrong balance sheet line.
- Keep the key cross-reference. Where SAP assigns the number, the saved number beside the legacy key (step 5 above) answers, a year later, whether a supplier was migrated or created afterwards.
Where the source is an SAP system, two PostNow.ai Report Library reports help the profile before the load: Duplicate Master Data (Vendors) groups vendors by name, country and VAT number with a count, and Master Data Completeness Audit shows each material's plant, valuation and sales segments, so missing views stand out. Both run in Excel and write nothing.
Worked example: profit centers and cost centers in mock load 2
PostNow.ai handles this with two published BAPI templates run one after the other. Mock load 2 into client 200 of the S/4HANA test system covers controlling area A000 and company code 1010: 42 profit centers and 186 cost centers from the cleansed ECC extract.
| Template | Interface | Fixed values | Columns from the file |
|---|---|---|---|
| Profit center create | BAPI_PROFITCENTER_CREATE | Controlling area A000, company code 1010 in COMPANYCODES | Profit center, valid from and to, name, person responsible, hierarchy node, segment |
| Cost center create | BAPI_COSTCENTER_CREATEMULTIPLE | Controlling area A000, company code 1010 | Cost center, valid from and to, name, person responsible, category, hierarchy area, profit center |
- Validate both files. Four cells are flagged: two cost center names longer than the field's 20 characters and two blank person-responsible cells, which the template marks as required. All four are fixed in the sheet.
- Simulate the profit centers. 39 rows pass. Three return SAP's message that the hierarchy node does not exist: node
YB120exists in the development client but was never created in client 200. The CO lead creates it there, and the Simulate is repeated clean. - Run the profit centers. All 42 are created.
CEPCshows 42 entries forA000andCEPC_BUKRS42 assignments to 1010, matching the extract. - Simulate and run the cost centers. 184 rows pass. Two return SAP's message that their profit center is not valid on the cost center's valid-from date: the legacy cost centers start on 1 January 2019, the profit centers on 1 January 2020. The CO lead moves the valid-from date of those two cost centers to the profit center's start date in the sheet and in the mapping rules, and Retry Failed creates them.
- Reconcile.
CSKSholds 186 cost centers forA000. Category, profit center and hierarchy area are compared for all 186 against the extract, and a test posting to one cost center in each category passes.
The two fixes go into the mock load 3 preparation, not into SAP by hand: the missing node into the cutover plan, the date rule into the value mapping. The two Excel files, with SAP's result on every row, are the evidence that mock load 2 passed for these objects.
Checklist before each master data load
PostNow.ai checks formats offline and keeps operators on the published template; this list covers the decisions that stay with the migration team, object by object.
- Every object this one refers to is loaded and reconciled in the same client.
- The customising the object needs (account groups, groupings, number ranges, asset classes) is in the target client, and so are the hierarchy nodes.
- Number range intervals have room for the records this load creates, and external numbers fit their interval.
- The file holds one mode only: create, extend or change.
- Key columns are text, trimmed, with Leading Zeros set where SAP pads the key.
- Coded values went through the value mapping tables, and the tables are signed off by the object's owner.
- Duplicates were merged before the load: partners on tax number and bank details, materials on their legacy reference.
- Validate is clean, Simulate is clean on the whole file in BAPI mode, and recorded templates were checked in Debug on this release.
- The template saves any number SAP assigns into a column next to the legacy key.
- The counts and critical fields for the reconciliation are agreed before the run, not after it.
What to plan for in an SAP master data migration
PostNow.ai writes master data through SAP's own interfaces, so SAP's checks, number ranges and locks decide each result. Five practices decide most master data migration schedules.
- Freeze the master data in the source. Agree a date after which new legacy records go on a delta list, and load that delta between the last mock and go-live with the same templates.
- One owner per object. The owner signs the value mapping, the reconciliation and the go decision. Shared ownership is how a failure list goes unclaimed.
- Transports have lead time. Many "data errors" in an early mock load turn out to be configuration that has not arrived yet; put the transport list in the cutover plan.
- Volume decides the file split. Split large objects by company code or plant, so each file has one cause when it fails and one batch you can describe in a sentence.
- Plan the life after go-live. New plants, new suppliers and corrections keep coming. The templates proven in the mocks become the team's master data mass upload templates, and changes to existing records go through SAP mass change.
Free master data templates and planning workbooks
PostNow.ai publishes 24 free SAP master data migration templates, among them material create, change and plant extension, batch, characteristic and classification, BOM, cost center, cost element, activity type, internal order, WBS element, asset, functional location, equipment, bank and HR infotypes. Each workbook names the SAP structure and field behind every column, marks the mandatory fields and comes with a field guide. Open one in Excel with PostNow.ai to map it and run Simulate against your own target system. For the project around the loads, the free cutover data readiness checklist lists eleven readiness checks per object to run before the first mock load.

