Message type: E = Error
Message class:  FAGL_ALE - Single Document and Totals Document Transfer 
Message number: 039
Message text: Periods of company codes &1 and &2 do not match
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 FAGL_ALE039 indicates that there is a mismatch in the periods of the company codes involved in a transaction or process. This typically occurs in the context of financial accounting, particularly when dealing with data transfer between different company codes or when trying to post documents that involve multiple company codes.
Cause: The error arises when the fiscal periods (e.g., month, quarter) of the two company codes do not align. This can happen due to several reasons: Different Fiscal Year Variants: The company codes may have different fiscal year variants configured, leading to discrepancies in the periods. Open/Closed Periods: One company code may have certain periods open for posting while the other does not, causing a mismatch.
Configuration Issues: There may be configuration issues in the financial settings of the company codes that lead to this error.
Solution: To resolve the FAGL_ALE039 error, you can take the following steps: Check Fiscal Year Variants: Go to the
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
FAGL_ALE038 No documents exist for the values entered
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FAGL_ALE037 You are not authorized to call this transaction
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FAGL_ALE040 Program can only be started once per company code
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FAGL_ALE041 No fiscal year variant found for ledger &1 in company code &2
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.