Now accepting guest editorial from SAP, Oracle, Workday and ServiceNow practitioners.Pitch a guide
The Sign-Off Table

Lesson 4 of 5

Privacy and production copies

11 min

Listen to this lesson

0:00 / 7:32

A production copy is attractive because the data is real. That is also the problem. Production holds personal data about customers' contact people, suppliers who are sole traders, employees and sometimes consumers. Copying it into a test system extends the reach of that personal data to more people, more systems and weaker controls. Data protection law does not exempt test systems.

Where personal data hides in SAP

  • Business partners: names, addresses, phone numbers, email addresses, tax numbers and bank details of persons and contact people.
  • Employee data: HR master data, payroll results, and employee-related business partners used for travel expenses or as suppliers.
  • Free text: notes on sales orders, service tickets and invoices often contain names, phone numbers or worse.
  • Attachments: scanned invoices, signed delivery notes and contracts.
  • Logs and change documents: user names and the history of who changed what.

The obligations in plain terms

Under the EU General Data Protection Regulation (GDPR) and similar laws, personal data may only be processed for a lawful, defined purpose, limited to what is necessary, and protected with appropriate technical and organizational measures. GDPR names pseudonymization among those measures (Articles 25 and 32) and requires data protection by design. Being a US company doesn't take Contoso out of scope: US state laws such as California's CCPA cover personal information, including business contacts, and Wave 2 brings Mexican customers and their contacts under Mexico's federal data protection law. Testing is rarely the purpose the data was collected for. Your organization's data protection officer or counsel decides how the rules apply; your job is to make sure the test approach does not ignore them.

PrincipleWhat it means for test dataContoso example
MinimizationCopy only the data the tests needCopy 2025 sales for plant 1710, not ten years of history
Pseudonymization / anonymizationReplace identifying values before testers see themContact names, emails and bank details scrambled in CMQ
Access controlRestrict who can see the copyOnly the test team and support have CMQ logons
RetentionRemove copies when no longer neededTraining client 200 rebuilt each quarter without real data

Data protection principles applied to SAP test systems.

Scrambling before access

The safest pattern is to make personal data unrecognizable before anyone outside Basis can log on to the copied system. On SAP ECC, SAP Test Data Migration Server (TDMS) did this, scrambling data during a transfer or in an existing system by predefined or custom rules. For SAP S/4HANA, TDMS 4.0 is not released as a standard product (check the TDMS release notes in SAP for Me for the current position); SAP has offered scrambling there as a project-based consulting service rather than a supported tool. Many organizations build their own scrambling programs. Check SAP's current offering for your release with your SAP contact before planning around a tool. Whatever the tool, the test team should agree the rules, because careless scrambling breaks tests.

Nobody outside Basis logs on to a production-derived copy until the scrambling is verified and the approach approved.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-206

Some data should be removed rather than scrambled. HR and payroll data is rarely needed outside HR testing; exclude it from general test copies. Attachments are hard to scramble and are often better left behind. When a test genuinely needs realistic personal data, for example to test the blocking of business partners at end of purpose and their later deletion with SAP Information Lifecycle Management (ILM), use synthetic people created for the purpose.

  1. Do the planned tests need this data at all?No → leave it out of the copy, as with HR and payroll data or attachments · Yes → next question
  2. Does it identify a living person?No → copy it as is, within the minimized scope · Yes → next question
  3. Does the test need realistic personal data, for example to test blocking and deletion?Yes → use synthetic people created for the purpose · No → scramble it with deterministic, format-preserving rules
Deciding, for each kind of data in a production copy, whether to exclude, keep, scramble or replace it.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-206

Access, retention and evidence

Scrambling is one control among several. Keep the list of people with logons to a production-derived system short and reviewed, and remove access when people leave the project. Agree how long a copy may live: a QAS refreshed every quarter should not keep last year's copy in a forgotten client. Training clients, such as Contoso's client 200, are a common blind spot because trainees and trainers come and go; build them from synthetic data where you can.

Test evidence can leak personal data too. A screenshot of a business partner, an exported spreadsheet of open items or a defect attachment can carry names and bank details into tools with much wider access than the SAP system. Ask testers to capture document numbers and business keys rather than whole screens of personal data, and to crop or mask what they must capture.

EvidenceLeaks personal dataSafe and still checkable
Customer checkScreenshot of the full business partner screen with contact names and bank detailsBusiness partner number and the sales area it was tested in
Open itemsExported spreadsheet of all open items with namesDocument numbers and amounts for the items the test touched
Defect attachmentUncropped screen of an invoice with a contact's phone numberCropped or masked image showing only the failing field
Capturing test evidence by business keys instead of whole screens of personal data.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-206

What would you do?

Grace, Contoso's PMO lead, wants UAT to run on the CMQ copy that Mock 2 converts from EP1, so key users see realistic data. EP1 holds supplier bank details and contact people for Great Lakes Fleet Services. Testers include contractors. What should Priya insist on?

Key points
  • Production copies contain personal data in business partners, HR, free text, attachments and logs.
  • Data protection obligations apply to test systems: minimize, pseudonymize, restrict access, retain only as long as needed.
  • Scramble before testers get access, with deterministic rules that keep formats valid.
  • Exclude HR data and attachments from general test copies unless a test truly needs them.

Check your understanding · not graded

Lesson check

  1. 1. When should personal data in a production copy be scrambled?

  2. 2. Which is an example of data minimization in a test copy?

  3. 3. Why must scrambling rules be deterministic and format-preserving?

  4. 4. Where can personal data hide besides business partner records?

  5. 5. A production-derived CMQ copy has just landed. Who should be able to log on before the scrambling is verified?