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
- Call the POST method of API_PLANNED_ORDERS/A_PlannedOrder.
- Maintain planned order number with external number range "02" in request body.
- Execute API and find message "Number & does not lie within the defined interval" in response.
Or
- Go to Create Planned Order app.
- Enter planned order number with external number range "02" manually.
- 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
SAP Knowledge Base Article - Public