SAP Knowledge Base Article - Public

3656142 - Error "Number & does not lie within the defined interval" occurs when creating planned orders with external number range

Symptom

You want to create a planned order with external number range "02" and order type "LA" via:

  • API_PLANNED_ORDERS/A_PlannedOrder
  • Create Planned Order app  

However, the planned order is not created, and error message "Number & does not lie within the defined interval" occurs.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Call the POST method of API_PLANNED_ORDERS/A_PlannedOrder.
  2. Maintain planned order number with external number range "02" in request body.
  3. Execute API and find message "Number & does not lie within the defined interval" in response. 

Or

  1. Go to Create Planned Order app.
  2. Enter planned order number with external number range "02" manually.
  3. Get the error "Number & does not lie within the defined interval".

Cause

The error message is expected according to the planned order type configuration.

The external number range assigned to planned order type "LA" is defined as range "03" by default. This configuration cannot be changed in S/4HANA Cloud Public Edition. Therefore, when attempting to create a planned order using an external number outside this range, the error "Number & does not lie within the defined interval" will occur.

Resolution

Create planned orders with external number range "03".

Keywords

planned order, external number range, number interval, A_PlannedOrderHeader, number range 02, order type, LA, MD11 , KBA , PP-SFC-PLN-2CL , Order Planning (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions