Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix F7158 - There are no company codes for taxes on sales/purchases group &


SAP Error Message - Details

  • 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 &

  • Show details Hide details
  • What causes this issue?

    The tax on sales and purchases group &V1& is not assigned to a company
    code.

    Procedure for System Administrators

    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.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 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:

    1. Missing Configuration: The tax on sales/purchases group may not be properly configured in the system.
    2. No Company Codes Assigned: The specific tax group may not have any company codes assigned to it.
    3. Incorrect Tax Group: The tax group being referenced may not exist or may have been incorrectly specified in the transaction.
    4. Data Inconsistency: There may be inconsistencies in the master data or configuration settings.

    Solution:

    To resolve the error, you can follow these steps:

    1. 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.
    2. 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).
    3. 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.
    4. 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.
    5. Consult Documentation:

      • If you are unsure about the configuration, refer to SAP documentation or consult with your SAP functional consultant for guidance.
    6. Testing:

      • After making the necessary changes, perform a test transaction to ensure that the error no longer occurs.

    Related Information:

    • Transaction Codes:

      • OBYZ: Configuration for tax on sales/purchases.
      • SPRO: Access to the SAP Reference IMG for configuration settings.
    • 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.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author