Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: F7 - Program Error Messages
Message number: 158
Message text: There are no company codes for taxes on sales/purchases group &
The tax on sales and purchases group &V1& is not assigned to a company
code.
Assign the tax on sales and purchases group to the appropriate company
code.
<DS:TRAN.OBC6>Proceed</>
ENDIF
Error message extract from SAP system. Copyright SAP SE.
F7158
- There are no company codes for taxes on sales/purchases group & ?The SAP error message F7158, which states "There are no company codes for taxes on sales/purchases group &," typically occurs when the system is unable to find any company codes associated with the specified tax on sales/purchases group. This can happen for various reasons, such as configuration issues or missing data.
Cause:
- Missing Configuration: The tax on sales/purchases group may not be properly configured in the system.
- No Company Codes Assigned: The specific tax group may not have any company codes assigned to it.
- Incorrect Tax Group: The tax group being referenced may not exist or may have been incorrectly specified in the transaction.
- Data Inconsistency: There may be inconsistencies in the master data or configuration settings.
Solution:
To resolve the error, you can follow these steps:
Check Tax Configuration:
- Go to the SAP transaction code OBYZ (for tax on sales/purchases).
- Verify that the tax on sales/purchases group in question is correctly configured.
- Ensure that the relevant company codes are assigned to the tax group.
Assign Company Codes:
- If no company codes are assigned, you will need to assign the appropriate company codes to the tax on sales/purchases group.
- This can be done in the same configuration area (OBYZ).
Verify Tax Group in Transaction:
- Check the transaction where the error occurred to ensure that the correct tax on sales/purchases group is being used.
- If necessary, change the tax group to one that is properly configured.
Check Master Data:
- Review the master data for the relevant vendors, customers, or materials to ensure that they are correctly linked to the appropriate tax groups.
Consult Documentation:
- If you are unsure about the configuration, refer to SAP documentation or consult with your SAP functional consultant for guidance.
Testing:
- After making the necessary changes, perform a test transaction to ensure that the error no longer occurs.
Related Information:
Transaction Codes:
SAP Notes: Check for any relevant SAP Notes that may address this specific error or provide additional guidance.
User Roles: Ensure that you have the necessary authorizations to make changes to tax configurations.
By following these steps, you should be able to resolve the F7158 error and ensure that your tax configurations are correctly set up in SAP.
Get instant SAP help. Sign up for our Free Essentials Plan.
F7157
Valuation transfer has been scheduled
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
F7151
Cost element &1 (&2) still contains transaction data in table &3
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
F7170
Chart of accounts &1 still contains transaction data in table &2
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
F7198
Custom selections at document level not possible
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.