Lesson 1 of 6
Integration levels in SAP programs
13 min
Listen to this lesson
Every SAP program has a moment when the unit tests are green and the business process still does not work. Contoso Motor Co.'s sales team proved that a sales order for 50 alternators CMC-ALT-100 saves correctly. The warehouse proved that a delivery can be picked and goods-issued in plant 1710 Detroit. Billing proved that an invoice posts. Then the first chained run produced an invoice with no journal entry, because the billing document was blocked for transfer to accounting. Each step passed on its own; the hand-off between them was never tested.
Integration testing exists to test those hand-offs. The trouble is that programs use the word loosely. One team says "integration test" and means two transactions in the same module run back to back. Another means the interface to the bank. A third means the full order-to-cash process with real users. If the test plan does not say which level a test belongs to, nobody can tell what has actually been proven, and the steering committee reads "integration testing 90% complete" without knowing whether a single message has crossed a system boundary.
Start with the vocabulary. The ISTQB Foundation syllabus (v4.0) separates component integration testing, which looks at the interfaces and interactions between components, from system integration testing, which looks at the interfaces between a system and other systems or external services. SAP programs add their own vocabulary on top. The layers below are the ones most SAP test leads use; the names vary between programs, so agree on them in the test strategy and stick to them.
A string test is the informal bridge between unit and integration testing. It chains unit tests inside one area, usually run by the consultant who built the configuration. A cross-module integration test deliberately crosses an organizational or module boundary, for example logistics to finance. A system integration test adds the non-SAP or other-SAP systems: a supplier's EDI connection, the bank, a warehouse system, a tax engine, a planning system. An end-to-end test is the widest view: the business process as the business will run it, including the people who hand work to each other, the outputs they print or send, and the jobs that run overnight.
How does this map to ISTQB? The CTFL v4.0 syllabus names five test levels: component (unit), component integration, system, system integration and acceptance testing. On an SAP program the unit test is component testing, string and cross-module tests are component integration testing of SAP's own modules, SIT is system integration testing, and UAT is acceptance testing. ISTQB's system testing, the behavior of the whole system against its specification, rarely runs as a separate SAP cycle; it is folded into the cross-module and end-to-end runs.
ISTQB also stresses that integration testing depends on the integration strategy. In big-bang integration everything is connected at once and every failure surfaces together. In incremental integration (top-down or bottom-up) pieces are added one at a time, with stubs standing in for what is missing. SAP programs are almost always incremental. In an early cycle a stub can be an inbound IDoc created with the IDoc test tool WE19 instead of a real message from the supplier, or a test endpoint that answers like the bank. Every stub is a boundary not yet proven, so list it in the cycle report until the real connection has been tested.
How SAP Activate frames it
In SAP Activate, implementation testing happens in the Realize phase. SAP's own test strategy guidance treats unit and string tests as informal: they happen as configuration is completed. Integration, end-to-end and data migration tests are formal, and SAP expects them to be documented, for example in the SAP Cloud ALM test management apps. User acceptance testing is run by business experts at the end of Realize, and regression testing belongs to the Run phase, when upgrades and changes arrive. SAP also recommends testing business processes in the test system only after integrations are set up and data is migrated, because that is the only way the results reflect real conditions. The test types are the same in SAP S/4HANA Cloud Public Edition; the main difference there is that SAP delivers standard test scripts and the Test Automation Tool, and after go-live the customer regression-tests its own processes in the test system ahead of each upgrade.
| Level | Typical owner | Contoso example | Formality |
|---|---|---|---|
| Unit | Functional consultant | Purchase order for rotor CMC-RTR-200 picks up the right price from Lakeside Components | Informal, notes in the build backlog |
| String | Consultant with key user | Purchase order, goods receipt into storage location 171S, quality inspection | Informal, but keep the document numbers |
| Cross-module integration | Test lead with module teams | Goods receipt posts to inventory and the GR/IR account in company code 1710 | Formal test case and result |
| System integration | Test lead with integration team | Purchase order reaches Lakeside as an EDI 850 file; the 810 invoice comes back and posts | Formal, with interface evidence |
| End-to-end | Test lead with process owners | Procure-to-pay from requisition to payment, including the payment run and bank file | Formal, signed off by the process owner |
Who usually owns each level and how formal it is.
How SIT cycles are usually organized
SAP Activate does not prescribe a number of cycles, so programs choose their own. A common pattern is two or three integration cycles, each widening the scope and the realism of the data. Contoso's test lead Priya planned three, all in client 100 of the CMQ system. Each cycle has entry criteria (what must be true before it starts, such as transports imported and interfaces connected) and exit criteria (what must be true to call it done); lesson 6 covers those in detail. The point here is that a cycle is a time box with a defined scope and level, not "testing until it feels right." Between cycles, the team fixes defects, imports the next set of transports and refreshes or reloads data, so each cycle starts from a known state.
- Realize sprintsUnit and string testsInformal, done as each configuration item is finished.
- SIT cycle 1Core SAP chainsCross-module flows with manually created test data; external systems stubbed or simulated.
- SIT cycle 2Interfaces liveReal connections to Lakeside's test SFTP server, the Great Lakes EDI test partner and the bank test endpoint; outputs and batch jobs included.
- SIT cycle 3End-to-end on migrated dataFull processes on data from a mock migration, run by key users with the consultants watching.
- End of RealizeUAT and sign-offBusiness acceptance, then exit into the Deploy phase.
What would you do?
Priya's SIT cycle 1 report says "integration testing 92% complete." Grace asks whether that means the Lakeside EDI interface is proven. Of the 120 passed cases, 40 used inbound IDocs created with WE19 in place of real Lakeside files. What should Priya report?
- Unit, string, cross-module, system integration and end-to-end tests each prove a different thing.
- Integration tests target the hand-offs between steps, modules and systems; a stubbed boundary is not yet proven.
- In SAP Activate, unit and string tests are informal; integration, end-to-end and data migration tests are formal and documented.
- Most programs run two or three SIT cycles that widen scope and data realism; agree the plan in the test strategy.
Check your understanding · not graded
Lesson check
1. Contoso chains order, delivery, picking and goods issue inside sales and logistics, run by the consultant who configured them. What level is this?
2. Which test proves that Lakeside's EDI invoices post correctly in SAP S/4HANA?
3. According to SAP's test strategy guidance, which tests are formal and should be documented?
4. When does SAP recommend testing business processes in the test system?
5. In SIT cycle 1 Lakeside's EDI connection is not live, so inbound confirmations are created with WE19. What does a pass prove?