Inconsistencies in the company code table
[codetable] [in the company] [off the table] [sit at the table]
Symptom
Owing to program or transport errors, the company code assignment of profit centers may not be stored correctly.
This inconsistent data then causes program terminations or short dumps in further processing.
This note contains the report ZPCA40B_CHECK_CEPC_BUKRS, which checks the consistency of the company code assignment and corrects possible errors.
Additional key words
KE51, KE52, KE53, KM333, CEPC_BUKRS
Cause and prerequisites
The report detects and corrects the following errors:
1. The dummy profit centers must always have been assigned to all company codes of the controlling area.2. If there are entries for company codes in CEPC_BUKRS which have not at all been assigned to the controlling area, these entries are deleted.3. If there are entries for profit centers in CEPC_BUKRS which do not at all exist in the controlling area, these entries are deleted.4. If a profit center has been assigned to all company codes of the controlling area, no entry may normally exist in CEPC_BUKRS (the only exception being the use of Joint Venture Accounting).
You can execute the report per controlling area. In the test run, it only analyzes data. In the update run, it corrects the reported errors.
Solution
Use Transaction SE38 to create report ZPCA40B_CHECK_CEPC_BUKRS specified in the advance corrections.
Maintain the following selection texts for the report:
G_KOKRS Controlling area
G_TEST Test run
Maintain the following text symbols for the report:
010 Analysis for controlling area:
020 Data is consistent
030 OK
040 Incorrect
050 Old entries in CEPC_BUKRS
060 <<
080 New entries in CEPC_BUKRS
090 <<
Source code corrections