Programme SAP CACS_REP_0538004 - Repair Program for Copy Services (Table TCACS_MAP20/MAP21)

Purpose
This report runs a database conversion for the "Defined by own copyservice" mapping category.
In addition, all customizing entries for the copy services are locatedthat could cause problems in the generation of the mapping subprograms.Since subprograms are generated for mapping from the customizingentries, a missing or non-existent copy function could lead to problemswhen the subprograms are activated.
Firstly, the mapping category "Defined by own copy service" isconverted from the "SPACE" value to "U" in the customizing tableTCACS_MAP21.
Next, the existing customizing entries are checked for this mappingcategory. It used to be possible to define inconsistent entries incustomizing (for example, to choose this mapping category, but leave acopy function blank or enter a copy function that does not exist).These entries caused errors in certain circumstances during thegeneration and running of the copy services.
A new check (from this add on patch onwards) ensures that incorrectentries such as these can no longer be made.
This program searches for entries in the TCACS_MAP21 table that arerelevant to the version management of the copy services, which havedefined the mapping category "with their own copy service". Then thesystem checks whether a copy function has been entered, and if yes,whether this copy function exists.
If entries are found that do not have a copy function, the systemdetermines whether this version is currently valid (SY-DATUM is betweenthe TECH_BEGIN and TECH_END of this version). If this is the case, youneed to change this version in customizing accordingly by entering avalid copy function.
The same applies for when a copy function is found but does not existaccording to the system table TFDIR.
The correction of the currently valid customizing entries, however,causes new versions, which may cause problems when accessed with aknowledge date from the past (between TECH_BEGIN and TECH_END of thisversion).
The same applies to both cases if entries are found that do not have acopy function or have a copy function that does not exist, and theversions that have a TECH_END which is before the SY-DATUM date.
In addition to the mapping category "Defined by own copy services", allof the customizing for the copy services is checked for criticalstructures. If one is found, the system issues an error message in thelist.
If this program lists versions without a copy function or versions thathave non-existent copy functions, or if it lists incorrect entries inthe customizing tables TCACS_MAP20 or TCACS_MAP21, then it isimportant that you reset the copy service customizing back tothe standard settings. Since your own settings would be lost when youdo this, you need to save them first.
You can reset the copy service customizing to the standard settings inthe implementation guide (IMG) by choosing Commissions -> Tools ->Copy Services -> Reset Copy Services -> Reset to Standard Customizingand Regenerate Administrative Data, or by choosing the CACS_RESETtransaction or starting the CACS_RESET_MAP report. For moreinformation, see the documentation on the CACS_RESET_MAP program.