Message type: E = Error
Message class:  FINS_FI_FYV_MAINT - Fiscal Year Variant Maintenance 
Message number: 022
Message text: Company code &1 contains documents for FY variant &2.
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
The SAP error message FINS_FI_FYV_MAINT022 indicates that there are existing documents in the specified company code that are associated with a fiscal year variant that you are trying to modify or delete. This error typically occurs when you attempt to change the fiscal year variant settings for a company code that has already posted financial documents for that fiscal year variant.
Cause: Existing Documents: The primary cause of this error is that there are financial documents (such as invoices, journal entries, etc.) that have been posted in the specified company code for the fiscal year variant in question. Inconsistent Configuration: Attempting to change the fiscal year variant settings while there are active postings can lead to inconsistencies in financial reporting and data integrity.
Solution: To resolve this error, you can take the following steps: Check for Existing Documents: Use transaction codes like FB03 (Display Document) or FBL1N (Vendor Line Item Display) to check if there are any
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
FINS_FI_FYV_MAINT021 Period &1 of the year-independent FY variant &2 ends on &3 in all years.
What causes this issue?  You have chosen to use a year-independent fiscal year variant &V2&. You have specified &V3& as the last day o...
FINS_FI_FYV_MAINT020 FY variant &1 was changed without generating the periods in FY &2.
What causes this issue?  To generate the periods in FY &V2&, please select <LS>Periods</> on the navigation screen.System Response...
FINS_FI_FYV_MAINT023 An error occurred while saving the view &1. Please try again.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FINS_FI_FYV_MAINT024 FY variant &1 cannot be saved because it is corrupt.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.