Do you have any question about this error?
Message type: E = Error
Message class: M8 - Invoice Verification/Valuation
Message number: 158
Message text: Check the tax code
You have entered a tax code that is not defined as an input tax.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Check that the tax code is correct.
Error message extract from SAP system. Copyright SAP SE.
M8158
- Check the tax code ?The SAP error message M8158, which states "Check the tax code," typically occurs during the processing of a transaction that involves tax calculations, such as when creating a purchase order, sales order, or invoice. This error indicates that there is an issue with the tax code being used in the transaction.
Causes of Error M8158
- Invalid Tax Code: The tax code entered may not exist in the system or may have been deactivated.
- Configuration Issues: The tax code may not be properly configured in the system, leading to issues in tax determination.
- Missing Tax Jurisdiction: The tax jurisdiction associated with the tax code may not be set up correctly.
- Incorrect Master Data: The master data for the vendor or customer may not have the correct tax information.
- Country-Specific Regulations: The tax code may not be applicable for the specific country or region involved in the transaction.
Solutions to Error M8158
Verify Tax Code: Check the tax code being used in the transaction. Ensure that it is valid and active in the system.
- You can do this by navigating to the tax code configuration in the SAP system (Transaction Code: OB40 for tax codes).
Check Configuration: Ensure that the tax code is properly configured in the system.
- Review the tax determination settings and ensure that the tax code is linked to the correct tax rates and accounts.
Review Master Data: Check the master data for the vendor or customer involved in the transaction.
- Ensure that the tax classification is correctly set up in the vendor or customer master records.
Consult Tax Jurisdiction: If applicable, verify that the tax jurisdiction is correctly set up and linked to the tax code.
- This may involve checking the jurisdiction codes and their corresponding tax codes.
Consult Documentation: If the issue persists, refer to SAP documentation or consult with your SAP support team for further assistance.
Testing: After making any changes, perform a test transaction to ensure that the error has been resolved.
Related Information
Transaction Codes: Familiarize yourself with relevant transaction codes such as:
SAP Notes: Check for any relevant SAP Notes that may address specific issues related to tax codes and error M8158.
User Roles: Ensure that you have the necessary authorizations to view and modify tax codes and master data.
By following these steps, you should be able to identify and resolve the issue causing the M8158 error in SAP. If the problem persists, it may be beneficial to engage with your SAP support team for further investigation.
Get instant SAP help. Start your 7-day free trial now.
M8157
Complete the amount details for withholding tax
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
M8156
Use either a specific tax code or '**' only
What causes this issue? In transactions subject to withholding tax, the system can only check and calculate the input tax correctly if all the suppli...
M8159
Tax code & and account & not compatible
What causes this issue? The tax code &V1& und the tax category set for account &V2& are not compatible; either the tax code is an inp...
M8160
Account & can only be posted to with tax code &
What causes this issue? You tried to post with tax code &V3& to account &V1&. This is not allowed, as postings to account &V1&...
Click on this link to search all SAP messages.