How To Fix GX221 - The company codes entered do not match the controlling areas


SAP Error Message - Details

  • Message type: E = Error

  • Message class: GX - Archiving/Reorganization

  • Message number: 221

  • Message text: The company codes entered do not match the controlling areas

  • Show details Hide details
  • What causes this issue?

    The company codes that you have entered are not in the controlling
    areas that you have 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?

    Check your settings. If you want to make entries for company codes,
    these must be in the controlling areas you enter.

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message GX221 - The company codes entered do not match the controlling areas ?

    The SAP error message GX221 indicates that there is a mismatch between the company codes and the controlling areas that have been entered in a transaction. This typically occurs when you are trying to perform a transaction that involves both financial accounting (FI) and controlling (CO) modules, and the company code you are using is not assigned to the controlling area you are trying to use.

    Cause:

    1. Company Code and Controlling Area Mismatch: The company code you are trying to use is not assigned to the controlling area specified in the transaction.
    2. Incorrect Configuration: The configuration settings in the SAP system may not have the correct assignments between company codes and controlling areas.
    3. Data Entry Error: There may be a simple data entry error where the wrong company code or controlling area has been entered.

    Solution:

    1. Check Assignments:

      • Go to the SAP transaction code OBY6 (or navigate through the menu: SPRO > Financial Accounting > Financial Accounting Global Settings > Assign Company Code to Controlling Area).
      • Verify that the company code you are using is correctly assigned to the controlling area you are trying to work with.
    2. Correct Data Entry:

      • Ensure that you are entering the correct company code and controlling area in the transaction. Double-check for any typos or incorrect selections.
    3. Configuration Review:

      • If you have the necessary authorizations, review the configuration settings to ensure that the company codes and controlling areas are set up correctly.
      • If you are not authorized to make changes, contact your SAP administrator or the person responsible for SAP configuration in your organization.
    4. Consult Documentation:

      • Refer to SAP documentation or help resources for more detailed information on how to manage company codes and controlling areas.
    5. Testing:

      • After making any changes, perform a test transaction to ensure that the error has been resolved.

    Related Information:

    • Transaction Codes:
      • OBY6 - Assign Company Code to Controlling Area
      • OKKP - Change Controlling Area
    • SAP Notes: Check SAP Notes for any known issues or additional guidance related to this error message.
    • User Roles: Ensure that the user has the appropriate roles and permissions to access the necessary configuration settings.

    If the issue persists after following these steps, it may be beneficial to consult with your SAP support team or a functional consultant who specializes in FI/CO integration.

    • 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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant