Message type: E = Error
Message class:  FAGL_ALE - Single Document and Totals Document Transfer 
Message number: 040
Message text: Program can only be started once per company code
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_ALE040, which states "Program can only be started once per company code," typically occurs in the context of the Financial Accounting (FI) module, particularly when dealing with the General Ledger (G/L) accounting and ALE (Application Link Enabling) processes. This error indicates that a specific program or process is already running for the specified company code, and SAP restricts it from being executed again until the first instance has completed.
Cause: Concurrent Execution: The most common cause of this error is that the program is already running for the same company code. This can happen if: A previous execution of the program has not yet completed. The program was started multiple times, either manually or through a scheduled job. Lock Mechanism: SAP uses a locking mechanism to prevent data inconsistencies. If a program is already processing data for a company code, it will lock that company code for the duration of the
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
FAGL_ALE039 Periods of company codes &1 and &2 do not match
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
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_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...
FAGL_ALE042 ALE: Totals document transfer completed successfully
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.