Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WX152 - Plant or customer & already exists in company code &


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WX - Master data maintenance: Plant

  • Message number: 152

  • Message text: Plant or customer & already exists in company code &

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WX152 - Plant or customer & already exists in company code & ?

    The SAP error message:

    WX152: Plant or customer & already exists in company code &


    Cause:

    This error occurs when you try to create or assign a plant or customer to a company code, but the combination of the plant/customer and the company code already exists in the system. Essentially, SAP is preventing duplicate entries for the same plant or customer within the same company code.

    • For plants: The plant you are trying to assign is already assigned to the specified company code.
    • For customers: The customer number you are trying to assign or create is already linked to the specified company code.

    When does it occur?

    • During master data creation or assignment (e.g., creating a plant or customer master record).
    • When assigning a plant to a company code in customizing.
    • When creating or assigning a customer to a company code in customer master data.

    Solution:

    1. Check existing assignments:

      • Verify if the plant/customer is already assigned to the company code.
      • Use transaction codes:
        • For plants: OX18 (Assign plants to company codes)
        • For customers: XD03 (Display customer), check company code data.
    2. Avoid duplicate entries:

      • If the plant/customer is already assigned, no need to create or assign again.
      • If you intended to create a new plant/customer, use a different plant/customer number.
    3. Correct the data entry:

      • If you mistakenly entered the same plant/customer and company code combination, correct the input.
    4. If you want to assign the plant/customer to a different company code:

      • Use the appropriate transaction to assign the plant/customer to the new company code, ensuring no duplicates.

    Related Information:

    • Plants and company codes: In SAP, a plant is assigned to exactly one company code. You cannot assign the same plant to multiple company codes.
    • Customers and company codes: A customer can have multiple company code assignments, but each assignment must be unique.
    • Transaction codes:
      • OX18 - Assign plants to company codes
      • XD01 - Create customer (company code data)
      • XD02 - Change customer
      • XD03 - Display customer

    Summary:

    The WX152 error indicates a duplicate assignment of a plant or customer to a company code. To resolve it, verify existing assignments and avoid creating duplicates. Use the appropriate SAP transactions to check and maintain master data assignments correctly.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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