Skip to main content

Copy user

With this function you can copy users from one connection to another, including the assignment of roles and profiles. Use this function to copy selected users from one system / client to another one or in case you have to keep / restore user data on a system that will be overwritten via system copy (for example system users, project team members, test users etc.). Another use case is the need to copy users in roll-in or carve-out projects. There is no SAP standard function to do so (the client copy functions in SAP take all users and delete all already existing users).

Notice that only the assignment of roles and profiles will be copied to the target system. The roles and profiles itself will not be copied. Thus, if a role or a profile does not exist in the target system, the assignment would fail. Have a look into the messages area, please.

You can also store the user data in a file. This might be useful for example when you have to keep / restore user data in a system that will be overwritten via system copy and there is no suitable system / client to "park" the user data. After the system copy is done you can use the file as the source for restoring the users.

If a flag for "Overwrite" is set, the user will be deleted in the target system and afterwards created with the attributes from the source system resp. the file.

In the "Initial password" field you can enter a password for the users. In case you leave it empty a password will be generated. In the "Messages / log" area you will get a list of the users and their generated passwords. In case you miss the opportunity when you copy the users: don't worry, you can do this with the "Set password" function afterwards.

In the checkboxes below you can specify whether specific attributes of the user master data shall be copied. The function should work properly without any error messages when you use systems with identical company addresses, role definitions etc. It can be used also for systems with different settings - but in that case you might be faced with errors like "Company code not found", "Role ... does not exist" etc. In that case you can reduce the scope of the copied data by deactivating the single checkboxes.

Regarding the license costs for the SAP users it might be useful to set the user type of copied users to '11' (Multi-Client/System) and specify the source system / client as the one used for charging. You can specify this in the dialog window raised via button "More..." right from the "License" checkbox. The small graphic on the button indicates whether this is set or not. If you choose another source of the users, it will be automatically switched off.

For this function also system users (type B, C) can be used. The authorizations designated for user and role maintenance (S_USER_GRP for creation of the user, S_USER_AGR and S_USER_PRO for the assignment of roles and profiles) are necessary.

Additionally, two things are to be mentioned for the "Copy user" function:

1.: With this function the passwords of the users can not be copied! The function modules by SAP used for this function don't offer this possibility. If this is necessary, you can follow this procedure:

1. copy the users to the target system
2. download the USR02 table for the users to be copied from the source system into a file (use the binary (BIN) format) -> use function "Download / upload table data" in the "Table data" section and specify a "where" clause for selecting the users (BNAME = 'USER1' or BNAME = 'USER2' or...).
3. delete the USR02 entries (use function "Delete table data") for the users in the target system using the same "where" clause as in step 2
4. upload the file created in step 2 in the target system using the "Download / upload table data" function.

2.: Also the user documentation (stored in table USDOCU) is not accessed by the function modules of SAP. You can use function "Process table data using R3trans" to export the data of table USDOCU from the source system / client and import it into the target system / client. Without processing "Remove / ClientRemove" on the target system / client the entries of the user documentation will replace already existing data.

This function is also in the command line tool available.

####