You are on page 1of 25

SAP Basis - Client Copy

Prepared by
Wasim Latif

HP Global Soft
March 2013

2
HP Global Soft

3
HP Global Soft

Document History

Version
1.0

Date
<10.03.2013>

Author

Comment

Wasim Latif

4
HP Global Soft

Reviewed by

TABLE OF CONTENTS
1

Introduction.............................................................................................................. 5
1.1
1.2
1.3

BACKGROUND................................................................................................................ 5
PURPOSE OF THIS DOCUMENT.......................................................................................... 5
PREREQUISITES.............................................................................................................. 5

Creating a New Client..............................................................................................6

Client Copy............................................................................................................... 9
3.1

FEATURES...................................................................................................................... 9

Local Client Copy..................................................................................................10


4.1
4.2
4.3
4.4
4.5
4.6
4.7

PREREQUISITES............................................................................................................ 10
SOURCE CLIENT LOCK / SYSTEM LOCK.............................................................................10
PERFORMING THE CLIENT COPY......................................................................................11
CLIENT EXPORT............................................................................................................ 13
IMPORTING THE EXPORTED PROFILES/DATA......................................................................15
POST PROCESSING....................................................................................................... 15
CHECKING THE LOGS.................................................................................................... 16

SAP Notes.............................................................................................................. 17

SCC9 Remote Client Copy

5
HP Global Soft

Client Copy

1 Introduction
1.1 Background

One can use the client copy to create


New clients from the SAP reference client 000 during initial installation of an R/3
System.
training clients
demo clients
test clients
production clients

1.2 Purpose of this document


This document will describe the in-detail process of creating a new client, resource
estimation for creating new client and performing a local client copy.

1.3 Prerequisites
It is assumed that you have proper authorization to perform the client copy in the SAP
system.

HP Global Soft

Client Copy

2 Creating a New Client


We perform client copy when we create a new client. This new client is created in
transaction SCC4.Pre requisites for creating a new client are listed below.
You should have enough free space in the database for this new client. To estimate the
amount of space required, you can perform a test run. This is described more in detail
later in this section.
You should have authorization for creating a new client.
Perform the following steps for creating a new client and calculating the resources required for
creating and doing client copy.
Log on to SCC4 and go to Change mode.
Click on new entries button as shown below.

You will get the below screen. Make the entries in the following screen as per your
requirements.

Save the entries once you are done. The new client created. Now the next step is
performing client copy i.e copying contents to the new client. Before doing that we need
to estimate the resources required. (database space required)

HP Global Soft

Client Copy

To estimate the resources required we will perform a test run in the newly created client.
Log in into the new client with standard user SAP*.
You can improve the performance of the client copy, for example, by excluding tables
or packages, with Edit -> Expert Settings. You can exclude tables from the client copy,
for example if they are not relevant for the target client, in the Tables tab. For further
information about excluding tables from the client copy,choose the Help button in the
expert settings. For further information about expert settings in the client copy, see the
SAP note 446485.
Go to transaction SCCL and fill the entries in the resultant screen with the source client
details from which you need copy. Do not for get to check the Test Run Button as
shown below.

Schedule as a back ground job.

Click on Continue and you will get the following screen. In this screen click on the check
button Resource Check

HP Global Soft

Client Copy

Now the job will run in the background and the log for this can be found in SCC3. Open
the log. Click on green tick.

If you click on Resource Analysis button, you will see the estimated database space
details as shown below.

Thus you can estimate the resources required for performing client copy.

HP Global Soft

Client Copy

3 Client Copy
Client copy in SAP can be done either locally or remotely. You can copy the following
components in client copy

3.1 Features
You can copy the following components of the source client into the target client:

User master data: User master data is only deleted in the target system if a profile with
user master data is copied. Authorization profiles and roles belong to customizing and
are therefore always copied with it. Copying users without authorization profiles is
problematic, so the copy profile SAP_USER contains authorization profiles and roles as
well.
Customizing: All profiles except SAP_USER contain customizing. Customizing data is
generally in tables with delivery classes C, G, E and S.
Master/transaction (application) data: select this option, for example, if you want to
set up a test system from the production client.

HP Global Soft

Client Copy

4 Local Client Copy


4.1 Prerequisites

If you are creating a new client and then performing client copy, please check the
available free space which can be done using db02 transaction. Also keep monitoring
the table space growth.
Make sure that you have authorization to perform the client copy.
Inform all the developers or the team about the activity and make sure no one will log
into the system during the activity
If required lock the client against log on or lock the users in SU10.

4.2 Source client lock / system lock


If required use the report RSCCEXPT to enable the source client locking for the duration
of client copy. (Please note - only available from 6.10 systems up, from 6.40 available from the
expert settings option in the menu). Run the program in SE38 (any client).
Select the lock option:

Press Save.
While the client copy is running, users will not be able to log onto the source client.
Once the client copy is complete the lock is automatically removed. If the client copy is
cancelled (for whatever reason) log onto another client, and run SCC3, you will be prompted to
unlock the source system.

HP Global Soft

10

Client Copy

4.3 Performing the client copy


The following steps illustrate the procedure for client copy
1. Log into the target client using SAP* and pass for the password or use DDIC/Super user
id.
2. Enter transaction SCCL

3. Enter the profile (SAP_ALL to copy everything) depending on what do you want to copy.
The following table describes the list of available profiles along with their description
Copy profile

Description

SAP_USER

Users, user roles and authorization profiles


are copied. The client is not reset.

SAP_CUST

SAP_CUSV

Client-specific customizing including


authorization profile is copied. The
application data is deleted, the user data is
retained.
SAP_CUST with variants

SAP_UCUS

SAP_CUST with user master data

SAP_UCSV

SAP_UCUS with variants

SAP_ALL

All client data except change documents


(see note 180949) and local data is copied.

SAP_APPL

SAP_ALL without user master data

4. Enter the source client number

HP Global Soft

11

Client Copy

As shown, enter the appropriate Source client number.


5. Enter the source client for User Masters
This means that the target client User masters will be updated by the source client User
masters details. This option will be useful if you are creating a new client and performing
the client copy.
Suppose if you dont want use the Source clients user masters, then perform a client
export in the target client before running the client copy. The client export process is
explained in step 3.4 below.
6. Select in the menu bar GOTO Parallel processes
a. Fill in:
b. Maximum number of processes: 3
c. Logon/server group: (Select with F4) PUBLIC
d. Click on the SAVE Button
7. Click schedule job button

Enter the Background server name.


8. Click yes after verifying the client copy settings
9. To schedule the job to run immediately, click the immediate button. Otherwise Date/Time
and choose an appropriate time.
HP Global Soft

12

Client Copy

10. Click the save icon


Now the Job has been scheduled (if you have chosen the schedule job option).It is
recommended to run this job during low system activity time (off business hours)

4.4 Client Export


We can use the client export transaction for exporting the user profiles to transport
requests (before performing client copy) and then we can import them back in to the system
using STMS.
Enter the transaction SCC8

Select the profile you need to export to the transport request.

HP Global Soft

13

Client Copy

If you want to export the SAP_USER which will contain the user master records and
authorization profiles choose it.

Now enter the target system and client number whose User master record details are to
be exported.

Schedule the job or else you can run the Job immediately.
Now it will give you a transport request which was created with profile data. Up to 3 requests are
created, depending on the data selected and available:

HP Global Soft

14

Client Copy
1. "<SID>KO<num>" for transporting cross-client data, if you have selected this
2. "<SID>KT<num>" for transporting client-specific data
3. "<SID>KX<num>" for transporting client-specific texts, provided texts are available in
this client
When the transport requests have been created successfully, the data is exported
synchronously by starting the transport program tp at operating system level, and can take
several hours, depending on the data volume.
The status of the export can be found using either Transaction SCC3 or Transaction SE01
and specifying the transport request. Wait until the data has been successfully exported before
you start another client copy or transport involving the source client
You can check in SCC3 whether the Client export is successful or not.
Go to SCC3 -> Exports ->

4.5 Importing the exported Profiles/data


Once you export the SAP profiles using SCC8 then choose one of the above-named
requests to import, in the Transport Management System (transaction STMS) import overview.
Its other transport requests are then selected automatically.

4.6 Post Processing


After importing the exported client following post processing needs to be done. You must
post-process with the transaction SCC7 after the import. When you call the transaction SCC7 in
the target system an analysis procedure first determines the associated transport request and
displays its ID "<SID>KT<NUM>" with the parameters of this export. Verify that the correct
transport request was selected for import.
If the transport requests are not yet in the import queue in the target system then add the
request manually. You can also import the same at the OS level using TP command.
You can check the related import log in SCC3.

HP Global Soft

15

Client Copy

4.7 Checking the Logs


All the client copy logs can be found using the transaction SCC3.

You can select the Exports log by clicking on Exports button as shown above.
Also it displays the list of client copies that were performed in the system.
The log file contains the following details.

It will display the type of client copy, and the profiles that are copied.
By looking at this log you can find details like User name which is used for scheduling client
copy, and the dates of start and completion.
Also, displays details like No. Of tables accessed, copied and deleted lines during client copy.

HP Global Soft

16

Client Copy

5 SAP Notes
In This section I have listed useful SAP notes.
Note 198960 - Copies from client: Incorrect update rules
Note 304605 - SAP query: Queries missing after client copy
This note describes how you can improve the performance of local or remote client copies on
iSeries. Note 517589 - iSeries: Client copy performance
Prerequisite-an RFC connection has to exist
If you experience problems copying from another system, see the SAP note
557132.
For more information about remote client copies, see also SAP Note 47502
On how to copy large production clients, see SAP Note 489690 in the SAP
Service Marketplace.

HP Global Soft

17

Client Copy

SAP Remote Client Copy (Transaction Code: SCC9)


/ LABELS: SAP

The client copy held between two different databases or two different servers (R/3
systems) is known as Remote Client copy. Remote Client copy requires RFC Connections.
Create RFCUSER with SAP_ALL and SAP_NEW profiles on source system (DR1)
Run su01 and create new user RFCUSER and copy from ddic
Make sure the user type is SYSTEM.

Lock all users on source


Send system message to all users SM02
Wait for one hour and kill any remaining users
HP Global Soft

18

Client Copy

Run SU10 to mass user lock


Stop all background jobs
Display all background jobs using sm37
Run BTCTRANS1 to de schedule all jobs
Run BTCTRANS2 to re schedule all jobs
Make sure enough space is available for TableSpaces in target
Create RFC Connection from target to source (TCODE SM59)
Connection type should be R3 connection
Connecting two applications running on two different servers to enable the data
communication is called as RFC connection. Using RFC connection the communication
obtained between source and target systems with the help of gateway work process
which enables data communication between them.
RFC connections will be created using SM59 transaction code
Steps in creation of RFC destination
Go to SM59 in target client

HP Global Soft

19

Client Copy

Create
Give RFC destination Name (SIDCLNT)
Connection type (3) for R/3 connection

Choose Description and Enter


Now additional tabs will be opened

HP Global Soft

20

Client Copy

Give CI host name of Source client and Instance number in the tab
Technical Settings: Go to Logon/Security tab, mention source client number, give
user information using which source RFC to be logged on to target then save and Test
connection.
User info in RFC
In RFC administration, screen logon details required to be given for the source system of
RFC to be logged in to the target system RFC. This user type should be system or service
which ever part of target system database. Once RFC is created source to target system
the data extraction can be done from target system to source system

Test

HP Global Soft

21

Client Copy

Go back and run SM59 and you will see the newly created connection.

Run Remote Client Copy (TCODE SCC9)


Remote client copy will be done using SCC9 transaction code using the same steps as
done in local client copy.

HP Global Soft

22

Client Copy

HP Global Soft

23

Client Copy

HP Global Soft

24

Client Copy

Only difference is for the source client, instead of giving the client number of a local
client you will need to provide the RFC connection for the system containing the source
client, which is defined in step 1.

HP Global Soft

25

You might also like