Message type: E = Error
Message class:  USMD_FIN_S4MIG -  
Message number: 027
Message text: Missing account for primary cost element &1
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 USMD_FIN_S4MIG027 indicates that there is a missing account for a primary cost element in the context of a migration or data transfer process, typically related to the migration to SAP S/4HANA. This error usually arises when the system expects a primary cost element to be assigned to a specific account in the chart of accounts, but it cannot find the corresponding account.
Cause: Missing Account Assignment: The primary cost element is not assigned to any G/L account in the chart of accounts. Incorrect Configuration: The configuration for the cost element may not have been set up correctly during the migration process. Data Migration Issues: During the data migration process, some data may not have been transferred correctly, leading to missing assignments. Inactive Cost Element: The cost element may be inactive or not properly defined in the system.
Solution: To resolve the error, you can follow these steps: Check Cost Element Configuration: Go to the transaction
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
USMD_FIN_S4MIG026 Account &1/&2: cost element without valid account edition
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
USMD_FIN_S4MIG025 Account &1/&2: cost element not valid in account edition
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
USMD_FIN_S4MIG028 &1 &2 is currently locked by change request &3.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
USMD_FIN_S4MIG029 Necessary account component &1 is currently not active in the data model.
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.