How To Fix EK158 - Contract & does not belong to contract account &. Check entry


SAP Error Message - Details

  • Message type: E = Error

  • Message class: EK - IS-U Accounts Receivable and Payable

  • Message number: 158

  • Message text: Contract & does not belong to contract account &. Check entry

  • Show details Hide details
  • What causes this issue?

    Every contract is allocated to a contract account.
    This error occurs if the contract account that was determined for the
    contract does not match the contract account that was entered.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    Correct the entries for the contract and the contract account.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message EK158 - Contract & does not belong to contract account &. Check entry ?

    The SAP error message EK158 typically indicates that there is an issue with the contract account associated with a particular contract in the system. This error can occur in various scenarios, such as when trying to create or process a purchase order, contract, or invoice that references a contract account that does not match the expected criteria.

    Cause:

    1. Incorrect Contract Account: The contract account specified in the transaction does not match the contract account defined in the contract.
    2. Missing or Inactive Contract: The contract may not exist, or it may be inactive or deleted.
    3. Data Entry Errors: There may be typographical errors in the contract account number or related fields.
    4. Configuration Issues: There may be configuration issues in the SAP system that affect how contract accounts are linked to contracts.

    Solution:

    1. Verify Contract Account: Check the contract account number in the transaction and ensure it matches the one defined in the contract. You can do this by navigating to the contract in the SAP system and reviewing its details.
    2. Check Contract Status: Ensure that the contract is active and has not been deleted or archived. You can check the status of the contract in the contract management module.
    3. Correct Data Entry: If there are any typographical errors, correct them and try the transaction again.
    4. Review Configuration: If the issue persists, consult with your SAP administrator or functional consultant to review the configuration settings related to contract accounts and contracts.
    5. Consult Documentation: Refer to SAP documentation or help resources for additional guidance on the specific transaction you are working with.

    Related Information:

    • Transaction Codes: You may need to use transaction codes like ME31K (Create Contract), ME32K (Change Contract), or ME33K (Display Contract) to review contract details.
    • SAP Notes: Check for any relevant SAP Notes that may address this specific error or provide additional troubleshooting steps.
    • User Authorizations: Ensure that you have the necessary authorizations to access and modify contract accounts and contracts in the system.

    If the problem continues after following these steps, it may be beneficial to engage with your SAP support team or consult with SAP's customer support for further assistance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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