Lesson 3 of 7
The refresh calendar with Basis
10 min
Listen to this lesson
A test environment ages from the day it is refreshed. Master data drifts from production, open items pile up, test runs consume stock and change statuses, and number ranges advance. Refreshing is the cure, but every refresh also destroys something: project data, test users, configuration in flight, connected-system settings. The refresh calendar decides when each environment is renewed, how, and what must be rebuilt afterward, so that refreshes land just before the test windows that need them and never in the middle of one.
System copy or client copy
| Method | What it copies | When to use it | Watch out for |
|---|---|---|---|
| System copy (database copy) | The whole system: all clients, repository, cross-client customizing | Pre-production from production; rebuilding a quality system | Overwrites every client and every transport not yet in the source; needs the full post-copy runbook |
| Remote client copy | One client's data and client-dependent customizing from another system | Seeding a test client with production-like data without touching other clients | Long runtimes on large clients; cross-client settings and code are not copied |
| Local client copy | One client to another client in the same system | Rebuilding the training client 200 from a template client | Copy profiles decide what moves: customizing only, or master and transactional data too |
| Selective (subset) copy | Chosen organizational units or time slices | Smaller test systems with recent data | Needs a tool and careful scoping; consistency across documents is hard |
Ways to renew an SAP test environment. The method decides what the post-copy runbook must restore.
The client copy transactions are long established: SCCL for a local copy, SCC9 for a remote copy, SCC8 and SCC7 for export and import, and SCC3 for the logs, with profiles such as SAP_ALL (all client data), SAP_CUST (customizing only) and SAP_UCUS (customizing and user masters). From SAP_BASIS 7.54, the ABAP basis of SAP S/4HANA 1909, SAP also offers a new client copy tool with SCCLN (local) and SCC9N (remote), parallel processing of large tables, and SCC_CLIENT_SIZE to estimate a client's size before copying; SAP Note 2962811 is the general information note. Sam's team decides which tool to use. The TCoE needs to know only what each method keeps and what it destroys.
The post-copy runbook
A copy is not a test environment. A system copied from production starts life believing it is production: its RFC destinations point at production partners, its background jobs are scheduled as in production, its logical system names are production's, and its users and roles are production's. The post-copy runbook turns it into a safe, usable test system. Basis owns the technical steps; the TCoE owns the readiness check at the end.
- IsolateStart with restricted logon; suspend released background jobs (report BTCTRNS1) before they run
- RenameConvert logical system names with BDLS; set client roles and change options in SCC4
- RepointRFC destinations in SM59, IDoc ports and partner profiles in WE21 and WE20, SAPconnect in SCOT, printers
- ReconnectTransport management in STMS; BTP destinations and Integration Suite or PO endpoints
- RestoreTest users, roles and certificates exported before the copy
- MaskRun the masking step before any tester logs on (lesson 5)
- RescheduleRelease only the jobs the test system needs
- CheckTCoE readiness check: smoke tests per value stream, then open the system
Two details deserve emphasis. First, export what you need to keep before the copy: test users and roles, RFC destinations and partner profiles of the target, and transports that exist only in the target. Second, track the runbook as a checklist with timestamps. The time from "copy complete" to "test-ready" is one of the service's key measures, and Contoso's first refresh of CMR took six working days, most of it waiting for unrecorded manual steps.
Who does the copy depends on your contract
Under RISE with SAP, SAP operates the systems, and system copies and refreshes are services whose number, scope and post-copy steps are defined in your contract and in SAP's roles and responsibilities documentation for SAP S/4HANA Cloud Private Edition. Read it before you build a calendar: it tells you how many copies are included, how far ahead to request them, and which post-copy steps SAP performs and which remain yours. For on-premise landscapes, many customers automated refreshes with SAP Landscape Management 3.0. Its mainstream maintenance ends on December 31, 2027 with no extended maintenance planned (SAP Note 3375877), and SAP has since discontinued SAP Landscape Management Cloud, so check how your refresh automation will continue. In SAP S/4HANA Cloud Public Edition the model is different again: SAP offers a Test Data Refresh service, requested through SAP for Me, that replaces master and transactional data in the quality system with production data, including depersonalization, without copying configuration (SAP Note 3070606).
Building the calendar
Lay refreshes onto the TCoE annual calendar (sap-tst-401, lesson 4) and work backward from the test windows. CMR is refreshed four times a year; two of those refreshes are timed three weeks before the regression windows for Contoso's two feature pack stack updates, so the system is production-like when the stack arrives. CMQ is refreshed once a year in a quiet window agreed with all projects, because every refresh wipes project data and any transport not yet in production, which then has to be re-imported from a list Luis prepares.
What would you do?
A project asks for a CMQ refresh in the middle of its SIT cycle because its test data has drifted. Two other projects are in UAT in the same client. What should Priya do?
- Choose the renewal method by what it keeps and destroys: system copy, remote or local client copy, or a selective copy.
- A copied system starts as production; the post-copy runbook isolates, renames, repoints, restores, masks and checks it.
- Under RISE, your contract and the roles and responsibilities documentation define copies and post-copy duties.
- Time refreshes backward from test windows and protect transports that exist only in the target.
Check your understanding · not graded
Lesson check
1. What is the first risk of starting a system freshly copied from production?
2. Which client copy profile copies customizing only?
3. Why does Luis export a transport list before CMR is refreshed from CMP?
4. Under RISE with SAP, where do you find which post-copy steps SAP performs?