How To Fix KEO058 - Company code &1 cannot be added if organizat.unit not assigned to CO area


SAP Error Message - Details

  • Message type: E = Error

  • Message class: KEO - Enterprise Organization

  • Message number: 058

  • Message text: Company code &1 cannot be added if organizat.unit not assigned to CO area

  • Show details Hide details
  • What causes this issue?

    You want to assign company code &V1& to HR organizational unit "&V3&"
    (key &V4&). However, this organizational unit is not assigned to a
    controlling area within the enterprise organization.

    System Response

    The system cannot assign the company code to the HR organizational unit
    because an assignment to cost accounting is required and this is
    missing.

    How to fix this error?

    In Customizing, company code &V1& is assigned to controlling area &V2&.
    You therefore need to assign controlling area &V2& to the enterprise
    organization - you will then be able to add company code &V1& to the
    enterprise organization below this 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 KEO058 - Company code &1 cannot be added if organizat.unit not assigned to CO area ?

    The SAP error message KEO058 indicates that a company code cannot be added because the organizational unit (in this case, the company code) is not assigned to a controlling area (CO area). This is a common issue when setting up financial accounting and controlling in SAP.

    Cause:

    The error occurs when you attempt to assign a company code to a controlling area without first ensuring that the company code is properly linked to the controlling area. In SAP, a controlling area is a unit for which costs and revenues can be managed and reported. Each company code must be assigned to a controlling area to ensure that financial data can be accurately tracked and reported.

    Solution:

    To resolve this error, you need to assign the company code to the appropriate controlling area. Here are the steps to do this:

    1. Access the SAP Easy Access Menu:

      • Go to the SAP Easy Access screen.
    2. Navigate to the Configuration:

      • Use the following path: SPRO -> SAP Reference IMG -> Controlling -> General Controlling -> Master Data -> Cost Center Accounting -> Assign Company Code to Controlling Area.
    3. Assign the Company Code:

      • In the configuration screen, you will see a list of controlling areas and company codes.
      • Select the controlling area to which you want to assign the company code.
      • Click on the "Assign Company Code" option and add the relevant company code.
    4. Save Your Changes:

      • After making the assignment, save your changes.
    5. Check for Other Dependencies:

      • Ensure that all other necessary configurations related to the controlling area and company code are correctly set up, such as currency settings and fiscal year variants.

    Related Information:

    • Transaction Codes: You can also use transaction codes to navigate directly to the relevant configuration screens. For example, you can use OBY6 to access the company code settings.
    • Documentation: Refer to SAP Help documentation for detailed information on controlling area and company code configurations.
    • Testing: After making the changes, test the configuration by trying to perform the action that previously resulted in the KEO058 error to ensure that the issue is resolved.

    By following these steps, you should be able to resolve the KEO058 error and successfully assign the company code to the controlling area.

    • 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