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

Close

How To Fix XR021 - Customer number &1 does not lie in the range &2-&3


SAP Error Message - Details

  • Message type: E = Error

  • Message class: XR - CRM Business Partner Data Exchange

  • Message number: 021

  • Message text: Customer number &1 does not lie in the range &2-&3

  • 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 XR021 - Customer number &1 does not lie in the range &2-&3 ?

    The SAP error message XR021 indicates that a customer number you are trying to use does not fall within the specified range of valid customer numbers. This error typically occurs in scenarios where customer numbers are managed in ranges, such as when using specific number ranges for different types of customers or in different organizational units.

    Cause:

    1. Invalid Customer Number: The customer number you are trying to enter does not exist or is not valid within the defined range.
    2. Number Range Configuration: The number range for customer numbers may not be properly configured, or the number you are trying to use is outside the defined range.
    3. Data Entry Error: There may be a typographical error in the customer number being entered.

    Solution:

    1. Check Customer Number: Verify that the customer number you are entering is correct and exists in the system.
    2. Review Number Range Configuration:
      • Go to the transaction code SNRO (Number Range Objects).
      • Check the number range object associated with customer numbers (usually KNA1 for general customer data).
      • Ensure that the number range is correctly defined and that the number you are trying to use falls within the specified range.
    3. Adjust Number Range: If necessary, you may need to adjust the number range settings to include the customer number you are trying to use. This typically requires authorization and should be done by a system administrator.
    4. Consult Documentation: Review any relevant documentation or configuration guides for your specific SAP implementation to ensure compliance with the defined processes.

    Related Information:

    • Transaction Codes:
      • SNRO: To manage number ranges.
      • SE11: To view data dictionary objects, including customer master data.
    • User Authorizations: Ensure that you have the necessary authorizations to create or modify customer numbers.
    • SAP Notes: Check for any relevant SAP Notes that may address specific issues related to customer number ranges or the XR021 error message.

    If the issue persists after checking these areas, it may be beneficial to consult with your SAP support team or refer to SAP's official documentation for further assistance.

    • 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
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