Message type: E = Error
Message class:  FI - TR-FM Funds Management 
Message number: 666
Message text: Enter 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 FI666 ("Enter company code") typically occurs when a user attempts to perform a financial transaction or access a financial report without specifying a company code. The company code is a critical organizational unit in SAP that represents a legal entity for which financial statements are created.
Cause:
Missing Company Code: The most common cause of this error is that the user has not entered a company code in the relevant field.
Incorrect Configuration: The system may be configured in such a way that it requires a company code for certain transactions or reports, and it is not being provided.
User Role/Authorization Issues: The user may not have the necessary authorizations to access the company code or may be in a context where the company code is not automatically populated.
Solution:
Enter Company Code: The simplest solution is to ensure that you enter a valid company code in the required field before executing Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
FI665 Commitment item & is a summarization item
What causes this issue?  You have entered a commitment item that cannot be posted to. In this function you must enter a commitment item that can be po...
FI664 There is no data for 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...
FI667 Actual data has already been posted in FM area &
What causes this issue?  FM area &V1& already contains actual data, entered in the existing funds center.  Later postings are made using the n...
FI668 Create a commitment item for taking over cash holdings
What causes this issue?  The commitment item you have entered does not have the characteristics required for transferring cash holdings. The commitmen...
Click on this link to search all SAP messages.