How To Fix EB002 - Company code for document number specification (&1) must be unique


SAP Error Message - Details

  • Message type: E = Error

  • Message class: EB - IS-U invoicing

  • Message number: 002

  • Message text: Company code for document number specification (&1) must be unique

  • Show details Hide details
  • What causes this issue?

    One company code is allocated to a billing document.

    System Response

    A selection cannot be made by billing document.

    How to fix this error?

    Specify only one company code for document number specification.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message EB002 - Company code for document number specification (&1) must be unique ?

    The SAP error message EB002 indicates that there is a problem with the uniqueness of the company code for a specified document number. This error typically occurs when you are trying to post a document (such as an invoice, journal entry, etc.) in SAP, and the system finds that the combination of the document number and company code is not unique.

    Cause:

    1. Duplicate Document Number: The document number you are trying to use has already been assigned to another document within the same company code.
    2. Incorrect Document Number Range: The document number range for the company code may not be set up correctly, leading to conflicts.
    3. Posting in the Wrong Company Code: You might be trying to post a document in a company code that is not intended for that document number.
    4. Data Entry Error: There may be a typographical error in the document number or company code.

    Solution:

    1. Check Existing Documents: Verify if the document number you are trying to use already exists in the system for the specified company code. You can do this by using transaction codes like FB03 (Display Document) or using reports that list documents.

    2. Use a Unique Document Number: If the document number is already in use, you will need to select a different, unique document number for your entry.

    3. Review Document Number Ranges: Check the configuration of document number ranges for the company code. You can do this by navigating to:

      • SPRO ? Financial Accounting ? Financial Accounting Global Settings ? Document Number Ranges ? Define Document Number Ranges. Ensure that the ranges are set up correctly and that there are no overlaps.
    4. Correct Company Code: Ensure that you are posting the document in the correct company code. Double-check the company code field in your transaction.

    5. Consult with Your SAP Administrator: If you are unsure about the document number ranges or if there are system settings that need to be adjusted, consult with your SAP administrator or the person responsible for SAP configuration in your organization.

    Related Information:

    • Transaction Codes: Familiarize yourself with transaction codes like FB03 (Display Document), FB01 (Post Document), and OB52 (Open and Close Posting Periods) to help troubleshoot and resolve issues.
    • SAP Notes: Check SAP Notes for any known issues or patches related to document number uniqueness.
    • User Authorization: Ensure that you have the necessary authorizations to post documents in the specified company code.

    By following these steps, you should be able to resolve the EB002 error and successfully post your document in SAP.

    • 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