How To Fix 9J642 - Plant and controlling area must be in the same company code


SAP Error Message - Details

  • Message type: E = Error

  • Message class: 9J -

  • Message number: 642

  • Message text: Plant and controlling area must be in the same company code

  • Show details Hide details
  • What causes this issue?

    Plant &V1& has been created in company code &V2& and cost center &V3& in
    company code &V4&. However, both must be in the same company code.

    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?

    Change the plant or the cost center so that the comapny codes are the
    same.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 9J642 - Plant and controlling area must be in the same company code ?

    The SAP error message 9J642 indicates that there is a mismatch between the plant and the controlling area in relation to the company code. This error typically arises when you are trying to perform a transaction that requires the plant and controlling area to be associated with the same company code, but they are not.

    Cause:

    1. Configuration Issue: The plant and controlling area are set up in different company codes in the system.
    2. Data Entry Error: Incorrect data entry when creating or modifying master data (like cost centers, internal orders, etc.) that links the plant and controlling area.
    3. Master Data Setup: The plant may not be assigned to the same company code as the controlling area in the configuration settings.

    Solution:

    To resolve this error, you can follow these steps:

    1. Check Plant and Controlling Area Assignment:

      • Go to the transaction code OX19 (for plants) and OKKP (for controlling areas).
      • Verify that the plant is assigned to the same company code as the controlling area.
    2. Adjust Master Data:

      • If you find that the plant and controlling area are in different company codes, you may need to either change the controlling area or create a new plant that is associated with the correct company code.
    3. Review Configuration:

      • Ensure that the configuration settings in the SAP system are correct. This may involve checking the settings in the Enterprise Structure and ensuring that the organizational units are correctly defined.
    4. Consult Documentation:

      • Review SAP documentation or consult with your SAP Basis or configuration team to ensure that the organizational structure is set up correctly.
    5. Testing:

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

    Related Information:

    • Transaction Codes:
      • OX19: Maintain Plant
      • OKKP: Maintain Controlling Area
    • SAP Notes: Check for any relevant SAP Notes that might provide additional insights or solutions related to this error.
    • User Roles: Ensure that you have the necessary authorizations to make changes to the configuration or master data.

    If the issue persists after following these steps, it may be beneficial to engage with your SAP support team or consult with an SAP expert 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