Symptom
Run time error message occurs when creating payment receipt.
Error message: "HTTP request failed", "statusCode: 500", "responseText: BEHAVIOR_ILLEGAL_STATEMENT Runtime Error: 'BEHAVIOR_ILLEGAL_STATEMENT'. The OData request processing has been abnormally terminated."
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open the "Create Payment Receipts for Cash Manager" app.
- Select the "Create Manually" button.
- Select the journal entry and select the payment method "Check".
- Click "Save".
- Observe the error message: "HTTP request failed", "statusCode: 500", "responseText: BEHAVIOR_ILLEGAL_STATEMENT Runtime Error: 'BEHAVIOR_ILLEGAL_STATEMENT'. The OData request processing has been abnormally terminated."
Cause
The number range configuration was not maintained, which caused the runtime error during the creation of payment receipts.
Resolution
- Search for "Create Number Define Groups and Assign to Receipt Lots (ID: 105840)" configuration activity and create a number range for the year.
- Search for "Create Receipt Lots and Assign to Business Places (ID: 101088)" configuration activity, and assign the number range to the company code.
- Re-test the creation of payment receipts to confirm resolution.
See Also
Refer to: help portal for detailed guidance on configuration activities.
Keywords
runtime error, behavior_illegal_statement, payment receipt, http request failed, statusCode 500, odata request, number range configuration, create payment receipts, s/4hana cloud , KBA , FI-LOC-FI-PH , Philippines , Problem
SAP Knowledge Base Article - Public