Copy Companies (ttaad1231m000)

Use this session to copy companies for setting up training environments and to set up test companies.

See Example - Copy Companies (ttaad1231m000).

Steps to be performed after the Copy Companies (ttaad1231m000) session has been run

If the source company has tables shared from another company, the sharing is copied to the target company. This action is performed through logical tables.

This action is not performed if the table sharing has been set up through the Table Sharing Modeler. In that case, you must update the actual table sharing so that the target company is also shared correctly. You can perform this update action in two ways:

  • Update the actual table sharing set

    Copy the actual table sharing set to a new version. Add the table relations for the table sets to relate the new target company to the physical company. Make the new version of the table sharing set actual.

  • Import from logical tables

    In the Table Sharing Sets (tltsm1115m009) session, run the Import from Logical Tables command. A new table sharing set is created that matches the settings defined in logical tables.

Buttons

These buttons are available:

Show
Starts the Companies (ttaad1100m000) session to show all companies to copy.
Continue
Checks the input and executes the copy action as specified on the form. In the background several actions run. Some actions may run more than once as dictated by the exact scenario.

Field Information

Source Companies

Specify a source company. All companies that belong to the same set as this company are copied.

Source Companies (description field)

If only one company must be copied, for example if the company set consists of exactly one company, this field shows the company’s description. Otherwise, it contains a comma-separated list of company numbers within the set.

Ellipsis indicate a truncated list. Click Show to review all companies.

First target company

The first company in the source set is copied to this company. Any successive companies are copied with the same offset.

Number of Copies

The number of times a set is copied. If a single company is copied, the next free number is taken. If multiple companies are copied, any successive first companies has a tens added to the offset with no overlap with a previous copied set.

Overwrite Existing Companies

If this check box is selected, any existing tables are overwritten. Use with caution as this can cause severe data loss!

Pattern to be Replaced

Specify a pattern to be replaced in the target companies. The session searches the company dumps of the source companies to replace the specified string.

Caution: 
This field should be used by expert users only. An incorrect replacement action can corrupt the data in the target companies.

Do not use this field to change company numbers in the data. The logic in the session already takes care of that: The session already replaces the source company numbers, which are specified in the Source Companies fields, in the data of the target companies.

Do not specify numbers only.

The session replaces all occurrences of the replacement string in the data of the target companies. Therefore, ensure the string you are searching for is unique.

Examples - Incorrect use of this field

This table shows some bad examples that you should NEVER specify as a replacement string:

Source Companies Source company description First target company Pattern to be Replaced Replace with Effect of the replacement pattern
0051 Logistical company 0051 1251 1000 100 The session replaces every occurrence of 1000 in the target company (1251) data by 100. This also applies to amounts that contain 1000. For example, 1000.50 is replaced by 100.50. Therefore, the financial administration in the target companies is corrupted.
0051 Logistical company 0051 1251 A a Replaces all uppercase A's by lowercase a's.
0051 Logistical company 0051 1251 0051 1251

DefaultBecause of the specified source company and target company, the session correctly replaces the company number 0051 in the target company data by 1251.

DefaultBecause of the replacement pattern, the session also replaces EVERY occurrence of 0051 in the target company data by 1251. This also applies to amounts that contain 0051. For example, 10051.78 is replaced by 11251.78. Therefore, the financial administration in the target companies is corrupted.

0051 Logistical company 0051 1251 ${compnr}

( ${compnr} is the current company number.)

${compnr}

( ${compnr} is the current company number.)

DefaultBecause of the specified source company and target company, the session correctly replaces the company number 0051 in the target company data by 1251.

DefaultBecause of the replacement pattern, the session also replaces EVERY occurrence of 0051 in the target company data by 1251. This also applies to amounts that contain 0051. For example, 10051.78 is replaced by 11251.78. Therefore, the financial administration in the target companies is corrupted.

Example - Correct use of this field

Depending on your company name, you can use this field to replace the company name in the target company. This only works if the Replace with value fits in the company description field.

This table shows an example:

Source Companies Source company description First target company Pattern to be Replaced Replace with Description
0051 Logistical company 0051 1251 Logistical company 0051 Logistical company 1251 The session replaces every occurrence of "Logistical company 0051" in the target company data by "Logistical company 1251".
Replace with

Specify the string that should replace the string that you specified in the Pattern to be Replaced field.

Caution: 
This field should be used by expert users only. An incorrect replacement action can corrupt the data in the target companies.

For details and examples, see Pattern to be Replaced.

Logging Directory

Any output generated by the sessions that are started in the background are routed to this directory. The directory must exist. You must specify the ${BSE}/appdata folder when working in the Cloud.