Message type: E = Error
Message class:  M8_2 - Logistics Invoice Verification 
Message number: 050
Message text: Company code &2 from contract &1 is different from CC &3 from plant &4
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 M8_2050 indicates a mismatch between the company code associated with a contract and the company code associated with a plant in a transaction. This error typically arises in the context of materials management or procurement processes, particularly when dealing with contracts and purchase orders.
Cause: The error occurs when: The company code linked to the contract (identified by &1) does not match the company code of the plant (identified by &4) that is being referenced in the transaction. The system expects that the company code for the plant and the company code for the contract should be the same for the transaction to proceed.
Solution: To resolve this error, you can take the following steps: Verify Company Codes: Check the company code associated with the contract. You can do this by navigating to the contract in the SAP system and reviewing its details. Check the company code associated with the plant. You can do this
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
M8_2049 Plant &2 from contract &1 does not match plant &4 from purchase order &3
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
M8_2048 Contract &1 does not exist
What causes this issue?  You have entered a contract number that does not exist in the system.System Response  The system issues an error message and ...
M8_2051 Enter at least one assignment with a contract reference
What causes this issue?  Message number M8_251System Response  You want to post directly to a G/L account or material account.How to fix this error?  ...
M8_2052 Select a relevant item
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.