How To Fix KM787 - Combination of controlling area and company code is invalid


SAP Error Message - Details

  • Message type: E = Error

  • Message class: KM - Error messages for Profit Center Accounting

  • Message number: 787

  • Message text: Combination of controlling area and company code is invalid

  • Show details Hide details
  • What causes this issue?

    At least one of the entered company codes is not assigned to the set
    controlling area.

    System Response

    The program cannot be executed.

    How to fix this error?

    Change your entries. You have the following options:
    Only enter company codes that are assigned to the set controlling area.
    For this, use the input help in the <LS>Company Code<LS> field.</></>
    Do <ZH>not </>enter a company code. The system then automatically
    selects all company codes that are assigned to the set controlling area.
    Set the right controlling area by choosing <LS>Extras -> Set Controlling
    Area.</>

    Procedure for System Administrators

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


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message KM787 - Combination of controlling area and company code is invalid ?

    The SAP error message KM787, which states "Combination of controlling area and company code is invalid," typically occurs when there is a mismatch between the controlling area and the company code in the system. This error is often encountered in the context of cost accounting and financial transactions.

    Cause:

    1. Incorrect Configuration: The controlling area is not properly assigned to the company code in the system configuration.
    2. Data Entry Error: The user may have entered an incorrect combination of controlling area and company code during transaction processing.
    3. Missing Assignment: The controlling area may not be assigned to the company code in the configuration settings.
    4. Inactive or Deleted Configuration: The controlling area or company code may have been deactivated or deleted in the system.

    Solution:

    1. Check Configuration:

      • Go to the SAP Customizing Implementation Guide (SPRO).
      • Navigate to Controlling > Cost Center Accounting > Master Data > Cost Centers > Define Controlling Area.
      • Ensure that the controlling area is correctly assigned to the company code.
    2. Verify Assignment:

      • In the same SPRO path, check the assignment of the controlling area to the company code.
      • Ensure that the controlling area is active and correctly linked to the company code.
    3. Review Transaction Data:

      • If the error occurs during a specific transaction, review the data entered for accuracy.
      • Ensure that the controlling area and company code entered match the valid combinations in the system.
    4. Check for Deactivation:

      • Verify if the controlling area or company code has been deactivated or deleted.
      • If so, you may need to reactivate or create a new combination.
    5. Consult Documentation:

      • Review SAP documentation or consult with your SAP Basis or functional team for any specific configurations that may be affecting the controlling area and company code relationship.

    Related Information:

    • Transaction Codes: You can use transaction codes like OBY6 (for company code settings) and OKKP (for controlling area settings) to check the configurations.
    • SAP Notes: Check for any relevant SAP Notes that may address specific issues related to this error message.
    • User Roles and Authorizations: Ensure that the user has the necessary authorizations to access and modify the controlling area and company code settings.

    By following these steps, you should be able to identify and resolve the issue causing the KM787 error message in SAP.

    • 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
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker