Sub topic 14
Transports of copies, client copy and other ways to move settings
This chapter assumes you know the normal route of a Customizing request from development to production. It also assumes you can read the client settings in SCC4 and know the difference between client-dependent and cross-client data. Here you will learn the other mechanisms for moving settings, when each one fits, and what each one risks.
Why the normal route is not always enough
The standard route is: change in the development client, record in a request, release, import into quality assurance, then import into production. It works because the transport layer and the consolidation route decide the targets. It has gaps:
- You may need to send settings to a system that is not on the route, such as a sandbox or a training system.
- You may need to fill a new client with a whole configuration, not one request.
- You may need to compare or copy settings between two clients in the same system.
- You may want to test-import a set of objects without disturbing the original request.
Each gap has its own tool.
Transport of copies
A transport of copies is a request whose only job is to carry a copy of objects to a chosen target. You create it in the Transport Organizer (SE09 or SE10) and add objects to it. You can include the contents of existing requests or enter objects by hand.
Its behavior differs from a normal request in four ways:
- You pick the target system when you create it. The transport route is not used.
- The original objects are not touched. They stay in their original request, which keeps its own status and can still be released along the normal route.
- Objects in a transport of copies are not locked against other changes in the source system.
- Importing it does not change the object's role in the landscape. The target treats the objects as received, not as the result of a normal release.
A typical use is to send a development request to a sandbox for a trial import. Another is to move objects to a system outside the landscape before the route exists.
tp import DEVK900130 SBX client100 pf=/usr/sap/trans/bin/TP_DOMAIN_DEV.PFLThe command is the same as for a normal import. Usually you import through STMS and let it run tp.
Request: DEVK900130 (Transport of copies)
Owner: CONSULTANT1
Target: SBX
R3TR TABU T001 (table entries, selected by key)
R3TR VDAT V_T001 (view contents)For Customizing, a transport of copies stores the same kind of entries as a normal Customizing request: table keys and view contents.
Client copy
A client copy duplicates the contents of one client into another. It is run in the target client, and SCC4 settings control whether it is allowed. The target client's protection level must permit overwriting. Protection level 1 blocks a client copy into that client.
The tools are:
| Transaction | Purpose |
|---|---|
| SCC0 | Local client copy, from a client in the same system |
| SCC9 | Remote client copy, from a client in another system |
| SCC8 | Client export, which writes data to transport files |
| SCC7 | Post-import steps after a client import |
| SCC3 | Logs and monitoring of client copy runs |
The copy is controlled by a profile that decides which data is included.
| Profile | What it copies |
|---|---|
| SAP_CUST | Client-dependent Customizing only, without user data |
| SAP_UCUS | Customizing and user master records |
| SAP_ALL | All client-dependent data, including application data |
Two points matter for understanding the effect:
- A client copy moves client-dependent data only. Cross-client Customizing and repository objects are shared by every client in the system, so there is nothing to copy.
- The copy overwrites matching data in the target. Run it first as a test, and check the log in SCC3 afterwards.
Typical use: build a new quality assurance or training client from a golden configuration client, or refresh a sandbox. It is not suited to moving a single change.
The protection fields in T000
The table T000 holds the client settings from SCC4. The following report lists them for every client in the system, so you can check which clients accept a copy.
REPORT zdemo_client_protection.
SELECT mandt, mtext, cccategory, cccopylock
FROM t000
ORDER BY mandt
INTO TABLE @DATA(clients).
LOOP AT clients INTO DATA(client).
WRITE: / client-mandt, client-mtext,
'Role:', client-cccategory,
'Copy protection:', client-cccopylock.
ENDLOOP.T000 is a client-independent table, so the query returns all clients, not only the logon client. A blank copy protection value means the client can be overwritten.
Copying a request between clients
Sometimes both clients are in the same system. A normal transport is wasteful there, because the repository and cross-client data are already shared. Transaction SCC1 copies the Customizing content of a request from a source client into the client you are logged on to. It copies the client-dependent entries from a request that already exists in the system, so no export or import is needed.
The request must be released or at least recorded for the right client. Copying is a good fit when the sandbox client and the development client share a system and you want a change in both.
Comparing before you move
Before copying or importing, check what differs. The comparison tools show the gaps without changing anything.
- SCMP compares Customizing between clients or systems, using comparison objects defined for that purpose.
- SCU0 compares Customizing tables between two clients or via a remote connection and lists the differences.
The result tells you whether a copy is needed, or whether one missing request explains the gap.
Choosing a mechanism
Common errors
- Copy blocked. The target client has protection level 1 in SCC4. Change the level only if you intend to allow overwriting, and set it back after the copy.
- Wrong profile. SAP_ALL into a client that should hold no application data brings in unwanted records. Pick the narrowest profile that does the job.
- Cross-client surprises. After a client copy, a cross-client setting still differs because it was never copied. Compare it separately.
- Drift after a transport of copies. The target has objects the normal route never delivered. Document each one and follow up.
- Forgotten post-import work. After a client import, SCC7 must run, or the data is not usable.
Exercise
You need to try a development request in a sandbox system that is not on the transport route, and the original request must continue to quality assurance afterwards. Which mechanism do you use, and why is it safe for the original request?
Show answer
Use a transport of copies targeted at the sandbox. It carries a copy of the objects, so the original request keeps its own status and is released along the normal route later. Import the original request in the sandbox afterwards to avoid drift.
Exercise
A colleague runs a client copy with profile SAP_CUST from client 100 to client 200 in the same system. Afterwards a cross-client table entry differs between the two clients. Why, and what should they check?
Show answer
Cross-client data is shared by all clients in the system, so a client copy does not move it, and a difference cannot come from the copy. They should check the entry in client 100 and 200 directly, since both read the same cross-client row, and look for a client-dependent table with a similar name that the copy did change.