You are on page 1of 5

10/07/2023, 15:57 Error Message no.

AA 821 in OAYR | SAP Community

Community

 Do you have an S- or P- account? 


If so, you need SAP Universal ID. In a few months,
SAP Universal ID will be the only option to login to
Get started with SAP Universal ID
SAP Community. Without it, you will lose your
content and badges. If you have multiple
accounts, use the Consolidation Tool to merge
your content.

Ask a Question Write a Blog Post Login

Search Questions and Answers

Former Member
28 de Mar de 2007 às 07:24

Error Message no. AA 821 in OAYR


6875 Views
0

Follow RSS Feed

I am trying to open transaction OAYR for changing the posting rules for depreciation but the system does not let me
execute this transaction due to the following error:

Company code ABC not defined in Asset Accounting

Message no. AA 821

Diagnosis

Company code ABC is not defined for Assets Accounting.

Procedure

Define company code via the Customizing menu.

But our company code is not ABC and is something else. How can i remove this error message so that I could proceed
with my work.

Regards,

https://answers.sap.com/questions/2172570/error-message-no-aa-821-in-oayr.html 1/5
10/07/2023, 15:57 Error Message no. AA 821 in OAYR | SAP Community

Shumyl Akram

Add a Comment | Alert Moderator

Assigned Tags

FIN (Finance)

FIN Asset Accounting

Similar Questions 
Asset accounting
Former Member Mar 30, 2008

Fixed assets
Former Member Jul 25, 2007

2 Answers

Ordenar Votos | Criado | Oldest

Former Member
Mar 28, 2007 at 09:31 AM

Please visit the following OSS Note


1
<b>Note 1012987 - Error message AA 821 in transaction OAYR</b>Summary

Symptom

When you call transaction OAYR, the system issues error message AA 821 ("Company code & not
defined in Asset Accounting").

You cannot execute the transaction, although the company code referred to is not relevant to Asset
Accounting or does not exist in the system.

Other terms

OAYR, AA 821, T093C, T093D, inconsistencies, Z_T093CD_REMOVE_INCONST

Reason and Prerequisites

The problem may be caused by inconsistencies between the T093D and T093C tables.

https://answers.sap.com/questions/2172570/error-message-no-aa-821-in-oayr.html 2/5
10/07/2023, 15:57 Error Message no. AA 821 in OAYR | SAP Community

This occurs if there are entries in the T093D table for a company code that is not executed in the T093C
table. (Such a company code is not relevant for Asset Accounting and must not appear in the T093D
table either).

Solution

Analysis

Check if there are entries in the T093D table for the company code mentioned in message AA 821
(transaction SE16).

If this is the case, repeat your search in the T093C table. If there is no entry in the T093C table, the error
is related to the inconsistencies described in this note.

Solution

To solve the inconsistencies, you can use one of the two solutions described in the following section:

Customizing solution

If the company code that is affected still exists in the system, you can assign a chart of depreciation to
this in Customizing (transaction OAOB). Save your settings and remove the assignment to the chart of
depreciation again. If you save the settings again, the information of the company code is deleted from
all relevant tables (for example, from the T093D table).

The inconsistencies that cause the error in transaction OAYR should then be removed.

The Z_T093CD_REMOVE_INCONST report

The source code of the Z_T093CD_REMOVE_INCONST correction report is attached to this note. This
report can identify the inconsistencies referred to between the T093D and T093C tables. In addition, the
incorrect entries can be deleted from the T093D table with the report.

If you want to use the report in your system, create a new report under the name
"Z_T093CD_REMOVE_INCONST". Add the source code from the attached correction instructions in the
report.

If you start the report, the indicator is set by default for the test run. In the test run the report only
checks whether inconsistencies exist between the T093D and T093C tables in the system, and displays
this where necessary to the user. To actually delete incorrect entries, delete the indicator for the test run.
The next time you execute the report, the entries found are deleted from the T093D table.

Don't forget to reward point

Add a Comment | Alert Moderator | Share

 1 comment

Hari Kandaswamy Jun 05, 2020 at 06:23 PM

This worked flawless, thanks for the details

Like 0 | Share | Alert Moderator

https://answers.sap.com/questions/2172570/error-message-no-aa-821-in-oayr.html 3/5
10/07/2023, 15:57 Error Message no. AA 821 in OAYR | SAP Community

Ravinagh Boni
Mar 28, 2007 at 02:55 PM

HI,
0
The reason for the error is probably because there are still some entries belonging to the concerned
company code in table T093D and T093B without an entry in T093C.

In order to get a consistent system, please assign this company code to a chart of depreciation, save it,
and then take the assignment off. In taking off the assignment, the system deletes the concerned
company code in all the asset accounting tables containing the company code and thus also in T093D
and T093B.

If this don't solve the problem you can delete these inconsistent entries by report ZZBKRDEL. Please
review attached Note 19093 nevertheless it states that it is used for AA823. It can also be used for error
message AA821.

Rewards me if it useful.

Regards

Ravinagh Boni

Add a Comment | Alert Moderator | Share

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the
poster to clarify the question or provide more information, please leave a comment instead, requesting
additional details. When answering, please include specifics, such as step-by-step instructions, context for the
solution, and links to useful resources. Also, please make sure that your answer complies with our Rules of
Engagement.

Rules of Engagement 

Know someone who can answer? Share a link to this question.

You must be Logged in to submit an answer.

Please provide a distinct answer and use the comment option for clarifying purposes.

https://answers.sap.com/questions/2172570/error-message-no-aa-821-in-oayr.html 4/5
10/07/2023, 15:57 Error Message no. AA 821 in OAYR | SAP Community

10 characters required.

Submit your Answer

Find us on

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Preferências de Cookies

Newsletter Support

https://answers.sap.com/questions/2172570/error-message-no-aa-821-in-oayr.html 5/5

You might also like