Symptom
When creating Payment Receipts, the system raises an error during number range validation if the number range configuration contains a mix of year-specific intervals (e.g., 2019, 2020, ..., 2025) and a generic year-9999 interval, and the current fiscal year (e.g., 2026) does not have a dedicated interval.
Environment
SAP S/4HANA Cloud Public Edition CE2608 and above.
Reproducing the Issue
- Open the app Create Payment Receipts – For Cash Manager.
- Choose Create Manually, enter required fields, and select Go.
- Select a journal entry and choose Create Payment Receipt.
- Enter the required fields and choose Save.
- The system shows the error: "Define a valid internal number range for payment receipts".
Cause
Starting from CE2608, the number range framework method NUMBER_STATUS (class CL_NUMBERRANGE_RUNTIME) correctly raises an exception when called with a year-specific value that does not exist as a dedicated interval. Prior to CE2608, the method incorrectly returned 0 in this scenario instead of raising an error.The year-9999 interval configuration is not a supported use case for Payment Receipts number range processing. That it functioned in earlier releases was a side effect of the above defect, not intended behavior.
Resolution
Only year-specific intervals are supported for Payment Receipts (e.g., 2025, 2026, 2027, and so on). The year-9999 generic interval is not supported.If you encounter this error, add the missing year-specific interval (e.g., 2026) manually on the production system via the configuration activity "Define Internal Number Ranges for Payment Receipts" (ID:103389).
Keywords
Payment Receipt, number range, year 9999, mixed interval, NUMBER_STATUS, CL_NUMBERRANGE_RUNTIME , KBA , FI-LOC-FI-PH , Philippines , Problem
SAP Knowledge Base Article - Public