What is SAP upgrade testing?
SAP upgrade testing checks that the processes, reports and interfaces a business relies on behave the same after SAP's own software changes: a support package stack, an enhancement package or an S/4HANA release upgrade. Baseline first, upgrade a sandbox, then compare. PostNow.ai SAP Testing repeats the whole suite on both sides and compares reports row by row.
- The "before" is the hard part. Once the system is upgraded, the old results are gone unless you kept them.
- Every difference needs a reason. A difference nobody described is a finding, even when it turns out to be harmless.
This guide is for SAP project managers, test managers and Basis-adjacent leads planning a support package stack, an enhancement package or an S/4HANA release upgrade. SAP upgrade testing is not the same job as testing a transport. An upgrade replaces large parts of SAP's standard code in one step, so there is no single changed object to aim the tests at, and the proof depends on what the system did before. PostNow.ai SAP Testing runs one suite before and after the upgrade, compares key reports row by row and keeps every run as evidence for the go-live decision. Below you will find the upgrade types, a seven-step test plan, the effect of custom code, what to compare, a sandbox example and how to keep the suite working afterwards.
What types of SAP upgrade are there, and what does each change?
Basis teams use four kinds of software change, each with its own SAP tool. They differ in how much they change and in what the test team has to prepare. The table follows SAP's documentation for each tool.
| Type | SAP tool | What changes | What to test |
|---|---|---|---|
| Support package stack (ECC or S/4HANA) | SPAM imports ABAP support packages; SUM applies a full stack | Corrections across components, at a combination of support package levels SAP ships together | Full regression of the processes you run, plus every SAP Note and modification listed in SPAU |
| Enhancement package (SAP ERP 6.0) | SUM, with a stack file from the Maintenance Planner | New and changed code, plus new functions that stay off until a business function is switched on in SFW5 | Full regression after the install, then each business function you switch on as its own change |
| S/4HANA release upgrade, for example 2022 to 2023 | Maintenance Planner, then SUM, which runs the Simplification Item-Check | A new application release and ABAP platform (SAP BASIS 7.58 for 2023) and the simplification items of the target release | Full regression, the items the Readiness Check flags, custom code findings, roles after SU25, Fiori apps |
| Conversion from SAP ERP | A system conversion, not an upgrade | The data model: new tables for stock, the journal, pricing and business partners | Covered in SAP S/4HANA conversion testing |
Add-ons have their own tool. SAINT, the SAP Add-On Installation Tool, installs and upgrades ABAP add-ons. Test the processes an add-on supports in the same run as the rest.
SAP support package testing
A support package stack looks small on paper because it adds no new release. In practice it changes many objects in many components at once. Treat SAP support package testing as a full regression, not a sample. Two lists from Basis tell you where to look harder: the SAP Notes you implemented earlier that the stack now contains, and the modifications SPAU asks you to adjust. Each one is a place where the system may behave differently afterwards.
SAP enhancement package upgrade testing
An enhancement package installs new code, but most new functions stay inactive until a business function is switched on in transaction SFW5. That splits SAP enhancement package upgrade testing into two changes. First test the install alone, with no business function switched on, and expect no change in behavior. Then treat each business function as a separate project, with its own tests. Many business functions cannot be switched off again, so test them in a sandbox before anyone activates them in development.
S/4HANA release upgrades
For an S/4HANA release upgrade, SAP's upgrade guide makes the Maintenance Planner a mandatory first step, because SUM needs the stack file it creates. The Simplification Item-Check is also mandatory and is called by SUM. The SAP Readiness Check for SAP S/4HANA upgrades is not mandatory, but SAP highly recommends it: it reads your productive system and lists the simplification items relevant to your source and target release. That list is the starting point of your test scope. In PostNow.ai SAP Testing the same suite runs on whichever environment you pick, so the tests you run today become the "before" of the upgrade.
How PostNow.ai handles SAP upgrade testing
One suite, run on the same environment before and after the upgrade, with every report compared and every run kept.
- 01
Capture the before
Run the full suite on the system that will be upgraded, then pin the report runs you trust as baselines.
- 02
Run the same suite after
After the upgrade, the same tests post through BAPIs again and read back the SAP tables, on the same environment.
- 03
Compare and explain
Report steps match rows by key with the baseline. Changes you describe pass, and any other difference fails.
- 04
Sign off on evidence
Runs are read-only with a SHA-256 checksum, and approvers sign off the upgrade cycle against them.
SAP upgrade test plan in 7 steps
An SAP upgrade test plan follows the system path of the upgrade: sandbox, development, quality, production. The test work is front-loaded, because the most valuable output, the "before", can only be taken once.
1. Set the scope and take the baseline
Start from the Readiness Check results, the simplification items and the list of business functions in scope. Add the processes that post money or goods, the key reports, and the interfaces. Then run the full suite on the system that will be upgraded and keep the results. Report the baseline last, after the posting tests, so the reports include what the tests posted. In PostNow.ai a report step can use a pinned earlier run as its baseline, which is exactly what an upgrade needs.
2. Freeze the system and upgrade a sandbox first
Between the baseline and the upgrade, nothing may post. Basis suspends scheduled jobs before the downtime (report BTCTRNS1, released again with BTCTRNS2), and the interface owners stop inbound traffic. The first upgrade runs on a sandbox built from a recent copy of production. It tells Basis how long SUM takes, and it gives the test team a first look at what changed.
3. Adjust modifications and custom code
Developers adjust dictionary objects in SPDD during the upgrade, then programs, SAP Notes and enhancements in SPAU and SPAU_ENH after it. For an S/4HANA upgrade, the custom code is also checked against the target release with the Custom Code Migration app or the ABAP test cockpit. Every decision here goes into a transport and onto the test list. The custom code section explains why.
4. Run full regression and compare
Run the report tests first, before any posting test changes the data, and compare them with the baseline. Then run the full suite. Every difference gets one of three outcomes: an expected change you describe, a data cause you can show, or a defect. In PostNow.ai a failed step becomes a defect linked to its run, and the fix is confirmed by a new run.
5. Let key users accept what changed
Automated checks prove the data. Key users judge what people see on screen: new screens, changed Fiori apps, new fields and messages. After an S/4HANA upgrade, SAP's guide also requires a comparison of default authorization values in SU25, so include role tests for the users who will log on first. In PostNow.ai these are manual steps in the same run, answered with a comment and a screenshot, and covered in SAP UAT testing.
6. Repeat in quality, then upgrade production
Development is upgraded next, and the adjustments made there are recorded in transports. Quality follows with those transports included in the upgrade, so the SPDD and SPAU decisions are not made twice. The suite runs again in quality, against its own baseline. For production, take the baseline with read-only report runs before the downtime and repeat them after it. Production environments in PostNow.ai are validation-only: reports and checks run there, postings never do.
7. Keep testing after go-live
The first month-end close after an upgrade is a test in its own right. Keep the suite on its schedule, re-baseline a report only after an intended change, and keep the upgrade cycle closed and unchanged as the record. The next support package stack starts from this point.
How to build the sandbox and keep it close to production is the subject of the SAP test environment guide. PostNow.ai keeps each phase in its own test cycle, so sandbox, quality and production results never mix.
How do custom code and modifications affect SAP upgrade testing?
SAP's standard code is tested by SAP. Your changes to it are not. An upgrade brings the two together, and the adjustment tools ask a developer to decide, object by object, which version survives. Those decisions are where an upgrade most often changes behavior that nobody planned.
- SPDD, during the upgrade. Modified ABAP Dictionary objects, such as tables, structures and data elements, are adjusted before the new dictionary is activated. If a modification is not carried over, a custom field added to a standard object can be lost, so test every process that writes or reads it.
- SPAU, after the upgrade. Modified repository objects, such as programs, function modules and screens, are adjusted, and SAP Notes implemented with the Note Assistant are listed too. Notes that the new release already contains show as obsolete and can be reset. Objects modified with the Modification Assistant get a semi-automatic adjustment.
- SPAU_ENH, for enhancements. Enhancement implementations that a changed SAP object may have affected are listed for adjustment in the Enhancement Builder.
- Custom code checks for S/4HANA. For a release upgrade, SAP's guide recommends checking custom code against the simplification items of the target release with the Custom Code Migration app or the ABAP test cockpit, and removing custom code nobody uses.
The test consequence is simple. Ask the developers for the adjustment list, with the decision for each object: adopted the new SAP version, kept the modification, or reset to standard. A reset is the riskiest outcome for testing, because the custom behavior is gone. Put each object with a decision on the test list, next to the process that uses it.
SAP records the adjustments in transport requests, and those requests can be included when the next system is upgraded. For each adjustment transport, PostNow.ai SAP Testing reads the request header, text and objects (E070, E07T, E071) and matches the objects to your tests, so those transports get a test record of their own. Objects that no test uses show as a coverage gap. How this works is explained in SAP transport testing.
Upgrade testing by hand vs PostNow.ai
The "before" lives in screenshots
- Report exports saved to a folder, if someone remembers
- A sample of transactions keyed again after the upgrade
- Rows compared by eye in two spreadsheets
- Differences explained in an email thread
The "before" is a pinned run
- Report baselines pinned before the downtime
- The full suite runs again on the same environment
- Every row matched by key with its baseline
- Planned differences described once as rules
What should you compare before and after an SAP upgrade?
A posting test tells you a process still works. A before and after comparison tells you the data the business already has still reads the same. Pick a small set of comparisons that cover the money and the goods, and run them at the same selection and key date on both sides.
- Stock. Stock per material, plant and storage location, for example MB52 (program
RM07MLBS). - Open items. Customer and supplier open items at a key date, for example FBL5N (program
RFITEMAR) and FBL1N. - Balances. G/L balances per company code, account and period, the figures finance signs the close on.
- Open documents. Purchase orders, sales orders and deliveries in progress, with their status.
- New postings. The suite's own postings, read back from the tables they write, with pricing and tax.
- Interfaces and output. Messages in and out, and the forms and output the upgraded system creates.
- Jobs and roles. The released jobs after BTCTRNS2, and users' access after the SU25 follow-up.
SAP has its own tool for part of this. Data Transition Validation compares business data before and after an S/4HANA upgrade, or a conversion, using business reports or transactions, and SAP's upgrade guide says it is part of the standard license. Agree the reports with finance and your auditors in the preparation phase, whichever tool you use.
In PostNow.ai, a report step runs an SE38 report with ALV output, from an allow-list your Basis team keeps. It compares every row with the baseline by key and lists rows as added, changed or unchanged. The details are in SAP report testing, and the other step types are shown on the PostNow.ai SAP testing tool page.
Worked example: an S/4HANA 2022 to 2023 upgrade in a sandbox
This example follows a sandbox upgrade in PostNow.ai SAP Testing. The system names, counts and material numbers are an example. The SAP transactions, programs and tables are standard.
The setup. The sandbox SB1, client 100, is a copy of production on S/4HANA 2022, company code 1710 and plant 1710. The project has a test cycle called "Sandbox upgrade to 2023" with the head of logistics and the financial controller as approvers. Its suite holds 42 tests across procure-to-pay, order-to-cash, inventory and record-to-report, plus two report tests:
- R-01, stock. Runs
RM07MLBS(MB52) for plant 1710, all storage locations, matched by material and storage location. - R-02, customer open items. Runs
RFITEMAR(FBL5N) for company code 1710 at the key date of the upgrade weekend, matched by document number and line item.
Friday, before. The full suite runs and all 42 tests pass. R-01 and R-02 run last and are pinned as baselines: 5,486 stock rows and 2,118 open item rows. Basis suspends the scheduled jobs and SUM starts.
Monday, after. SPDD and SPAU are done, and the adjustment transport has had its own transport run. The report tests run first.
| Test | Baseline | After the upgrade | Result |
|---|---|---|---|
| R-02 FBL5N, company code 1710 | 2,118 rows | 2,118 unchanged | Passed |
| R-01 MB52, plant 1710 | 5,486 rows | 5,485 unchanged, 1 changed | Failed |
| Full suite, 42 tests | 42 passed | 42 passed | Passed |
The difference. In R-01, material RM-2207 in storage location 171B had 120 pieces of unrestricted stock in the baseline and 160 after the upgrade. Nobody had described that change, so the test failed and named the row. The question is whether the upgrade changed how stock is calculated, or whether stock really moved.
The explanation. A read of MATDOC for material RM-2207 and storage location 171B, with a posting date (BUDAT) after the baseline, returns one goods receipt for 40 pieces, material document 5000009183. It was posted by the interface user of the warehouse system on Sunday night, when the sandbox came back up. The jobs had been suspended, but the inbound interface had not been stopped, and its queued messages posted as soon as the system accepted them. The difference is real stock, not an upgrade defect.
What the team did. The test manager adds an expected-change rule to R-01: unrestricted stock may change only for RM-2207 in 171B, by the quantity of material document 5000009183. The re-run passes, with 5,485 rows unchanged and one change as described. The failed run stays in the cycle as it was. The sign-off comment records the cause, and the cutover runbook gets a new line: stop the inbound interfaces before the baseline, not after.
Upgrade testing in three situations
Run the whole suite, every time
A stack has no single changed object to test. PostNow.ai repeats the whole suite on each side of the import and matches the key reports against the run you pinned.
- Whole suite on both sides
- Report rows matched by key
- Failed steps logged as defects
Test the install, then each switch
Run the suite after the install, then again for each business function switched on. Each one arrives in a transport, and PostNow.ai matches its objects to the tests that depend on them.
- One cycle per business function
- Tests matched to transport objects
- Gaps shown for objects without a test
Keep the before and the after
Pin report baselines on the old release, run the same suite on the new one and describe each planned difference as a rule.
- Pinned baselines per report
- Planned differences described as rules
- Read-only records for sign-off
How do you keep the test suite working across an upgrade?
A suite that breaks during the upgrade cannot test it. Most of the breakage comes from the tests themselves, not from SAP. These habits keep the same tests valid on both sides:
- Test through interfaces, not screens, where you can. In PostNow.ai, BAPI and table steps do not depend on screen layouts. A test step built on an SAP GUI recording has to be recorded again if the upgrade changes its screen, so list those steps before the upgrade and plan the time.
- Read the tables your release writes. Check the simplification items for tables your checks read. A check that reads a replaced table may still find rows through a compatibility view and miss the table SAP now writes.
- Freeze the tests along with the system. Do not edit tests between the baseline and the after run. A change to the test makes the comparison meaningless.
- Re-baseline on purpose. When a planned change is accepted, set a new baseline and record the reason in the version note of the test. Never re-baseline to make a failure go away.
- Refresh data after a system copy. A sandbox built from production has new document numbers and master data. Check data sets before the first run. PostNow.ai loads the materials, partners and documents a test starts from out of an Excel sheet, which is explained in SAP test data management.
- Include a scenario SAP must reject. After an upgrade, a negative scenario proves the checks can still fail.
SAP upgrade testing automation
The case for SAP upgrade testing automation is repetition. The same suite runs at least once per system on the path, before and after, and again after each fix. That is too much to key by hand, and a hand-keyed run is hard to repeat exactly. Automate the postings, the table checks and the report comparisons. Keep people for judgment: whether a changed screen works for the user, and whether a difference makes business sense. In PostNow.ai a suite can be scheduled daily, on weekdays, weekly or monthly, and a re-run can be limited to the scenarios that failed. Every run record is locked when it finishes, carries a SHA-256 checksum and is kept for one, three or seven years. The general rules for a lasting suite are in SAP regression testing best practices.
What an untested upgrade costs the business
The upgrade weekend ends on time, and the problems arrive with the first invoices, the first stock count and the first close.
- No proof of the starting point. When a balance looks wrong after go-live, nobody can show what it was before.
- A modification silently reset. A SPAU decision removes custom behavior, and the first user to notice is a customer.
- A go-live on a weekend's spot checks. A few transactions were keyed and looked fine, and the rest was hoped for.

