Professional Documents
Culture Documents
Community
Former Member
28 de Mar de 2007 às 07:24
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:
Diagnosis
Procedure
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
Assigned Tags
FIN (Finance)
Similar Questions
Asset accounting
Former Member Mar 30, 2008
Fixed assets
Former Member Jul 25, 2007
2 Answers
Former Member
Mar 28, 2007 at 09:31 AM
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
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 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.
1 comment
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
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
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.
Find us on
Newsletter Support
https://answers.sap.com/questions/2172570/error-message-no-aa-821-in-oayr.html 5/5