How To Fix CO166 - Maintain a number range for order type &


SAP Error Message - Details

  • Message type: E = Error

  • Message class: CO - PPC order processing messages

  • Message number: 166

  • Message text: Maintain a number range for order type &

  • Show details Hide details
  • What causes this issue?

    The order/network type has no number range.

    System Response

    You cannot maintain the order/network without a number range.

    How to fix this error?

    Go into customizing and maintain a number range for the specified
    order/network type.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message CO166 - Maintain a number range for order type & ?

    The SAP error message CO166, which states "Maintain a number range for order type &," typically occurs when you attempt to create a production order or a process order without having a defined number range for the specified order type. This is a common issue in SAP when the configuration for the order type is incomplete.

    Cause:

    The error is caused by the absence of a defined number range for the specific order type you are trying to use. Each order type in SAP requires a number range to ensure that each order can be uniquely identified. If this number range is not set up, the system cannot generate a new order number, leading to the error message.

    Solution:

    To resolve this error, you need to maintain the number range for the specific order type. Here are the steps to do this:

    1. Access the Number Range Configuration:

      • Go to the SAP Easy Access screen.
      • Navigate to the following path:
        SPRO -> SAP Reference IMG -> Production -> Shop Floor Control -> Order -> Define Order Types
    2. Select the Order Type:

      • In the configuration screen, find the order type that is causing the error (the one indicated in the error message).
    3. Maintain Number Ranges:

      • Click on the option to maintain number ranges for the selected order type.
      • Define a new number range or adjust an existing one. Ensure that you specify the interval for the number range (e.g., from 100000 to 199999).
    4. Save Your Changes:

      • After maintaining the number range, save your changes.
    5. Test the Configuration:

      • Go back to the transaction where you encountered the error and try to create the order again to see if the issue is resolved.

    Related Information:

    • Transaction Codes:

      • You may use transaction codes like OMH1 (for maintaining number ranges) or CO01 (to create production orders) to navigate directly to the relevant screens.
    • Authorization:

      • Ensure that you have the necessary authorization to make changes to the configuration settings in SAP.
    • Transport Requests:

      • If you are working in a development environment, remember to include your changes in a transport request to move them to the quality or production environment.
    • Documentation:

      • It is advisable to document any changes made to the configuration for future reference and for other team members.

    By following these steps, you should be able to resolve the CO166 error and successfully create production or process orders 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