Handling Address Data in Copy Profiles

The handling of the tables in the client copy depends on their delivery class.

The tables in Business Address Services have delivery class A. Since Customizing addresses and user address are also stored in the address tables, these tables have to be handled in a special way using the BAS exit programs, during client copy.

The following describes how the address tables are handled in the respective copy profiles.

Copy profiles

The exit report RSSOUSCO_FOR_CC is called at the end for all specified profiles. This report ensures that the assignment of address to office user in the field SOUD-USRADR is checked and updated for all user addresses.

SAP_USER

In the case of this profile, no application tables are deleted in the target system. Only the users and their address data are copied. Users that no longer exist in the source client are deleted in the target client.

Since the keys of address tables (address number, person number) only have local validity, shadow tables are used for this copy profile. (A similar process occurs when Customizing addresses are transported).

Shadow tables and BAS function modules are also used for local and remote copies without transport requests with the profile SAP_USER.

In the source client, the BAS function module BEFORE_EXP_ADDRESS3 is called as an exit. This function module transfers all address data belonging to users, including the tables for the assignment of addresses to their users (USR21, USADDEF and USCOMPANY), into shadow tables. In the target client, the BAS function module AFTER_IMP_ADDRESS3 is called as an exit. This function module updates the address tables as well as the tables USR21, USADDEF and USCOMPANY from the contents copied from the shadow tables. It is ensured that address numbers and person numbers in the target system are not overwritten by those in the source client.

SAP_UCUS

In contrast to SAP_ALL, all application tables (delivery class A) are deleted in the target system. All user master tables are also deleted and copied from the source client. The relevant user master tables are determined using the function modules CLIENTCOPY_SELECT_SUSR and CLIENTCOPY_SELECT_SUSR_PROFS.

All Customizing tables are copied.

The function module ADDR_CLIENTCOPY_SELECT_TABLES is called to copy the corresponding address data, as in the profile SAP_ALL. In the target system, the BAS report RS2ADRCL is then called as an exit program. This report deletes all entries from the copied BAS tables that do not belong to the address groups BC01 (user addresses), CA01, CAOM, and ZA01 (Customizing addresses).

SAP_CUST

All application tables are deleted in the target system and the Customizing tables are copied into the target system.

The function module ADDR_CLIENTCOPY_SELECT_TABLES is called first to copy the Customizing addresses, as in the profile SAP_UCUS. In the target system, the BAS report RS3ADRCL is then called as an exit program. This report deletes all entries that do not belong to the address groups CA01, CAOM, and ZA01 (Customizing addresses).

In the case of copies by means of transport request, the user addresses are also deleted. In the case of local or remote copies, the user addresses are saved as they are written into shadow tables by the function module BEFORE_EXP_ADDRESS3, which is called before the copy in the target client. The user addresses are restored from the shadow tables after the copy, using the function module AFTER_IMP_ADDRESS3.

SAP_ALL

The data from all tables is copied. The function module ADDR_CLIENTCOPY_SELECT_TABLES is called for the address data by the client copy. This function module provides the transport object R3TR TABU for all BAS tables in an internal table with the structure E071.

The profile "SAP_ALL with different client for user records" is a variant of SAP_ALL. The effect is like a copy with SAP_ALL followed by a copy with SAP_USER from the different source client.

Technically, however, the user tables are retrieved from the different source client and copied to the target clients. The function module BEFORE_EXP_ADDRESS3 is called in the different source client and the function module AFTER_IMP_ADDRESS3 is called in the target client.

SAP_APPL

The data from all tables is copied, except for the user data. This is an alternative to SAP_ALL and is required in particular with the use of central user administration.

The address tables are also copied completely from the source client. Regarding the user addresses, the function module BEFORE_EXP_ADDRESS3 is called in the target client to fill the shadow tables before the copy. The user addresses are restored from the shadow tables after the copy, using the function module AFTER_IMP_ADDRESS3 called in the target client.

Note

If problems occur with addresses after a client copy, see the following notes:

  • Release 4.0: Note 130540
  • As of Release 4.5: Note 350101