24.1.11

SAP Note 19093 - AA823: Company code does not exist

Symptom:

Error message AA823: 'Company code does not exist' may occur for Customizing settings in the chart of depreciation or for company codes.
Key words: SAPMA07C, OAE1, OAB1

Cause and prerequisites

Tightened inspection in the Asset Customizing whether the company codes of Asset Accounting are also defined in Financial Accounting.
This check is only available as of Release 2.2.

Solution
Each Asset Accounting company code must also be available in Financial Accounting.
If the company code is wrongly missing in Financial Accounting, it needs to be set up again there.
If the company code is no longer required in Asset Accounting, you can delete it as of Release 3.0D by calling the consistency check in the Implementation Guide. However, this only applies to company codes that have been assigned to an active chart of depreciation. (This is not the case, for example, for charts of depreciation delivered by SAP such as 0DE).
In earlier maintenance levels or if the consistency check report did not delete the incorrect entries, you can delete the company code with the following repair program:
Create repair program ZZBKRDEL with Transaction SE38. As title enter 'Deleting asset company code tables' and enter '1' for 'Type' and 'A' for 'Application'. Save your entries. Select 'Local private object' for the application class in the displayed popup. Then choose the function 'Source text'.
Enter the following statements in the editor:

REPORT ZZBKRDEL.
TABLES: T093B, T093C, T093D, T093U.

PARAMETERS: BUKRS LIKE T093C-BUKRS OBLIGATORY.

DELETE FROM T093B WHERE BUKRS = BUKRS.
DELETE FROM T093C WHERE BUKRS = BUKRS.
DELETE FROM T093D WHERE BUKRS = BUKRS.
DELETE FROM T093U WHERE BUKRS = BUKRS.

WRITE: 'Company Code', BUKRS, 'successfully deleted'.



This report cannot be executed in test mode. For this reason, you have to enter the company code to be deleted as parameter.


CAUTION: You may only start the program if you have made sure that there is no asset data existing for this company code.
If you are not sure, you can start the already existing program RATSTDEL using Transaction SE38 which deletes the fixed assets of a company code (however, which may not be productive).

No comments:

Post a Comment