SAP Knowledge Base Article - Public

3738196 - Runtime error 'BEHAVIOR_ILLEGAL_STATEMENT (HTTP 500)' occurs when creating payment receipt - SAP S/4HANA Cloud Public Edition

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

        1. Open the "Create Payment Receipts for Cash Manager" app.
        2. Select the "Create Manually" button.
        3. Select the journal entry and select the payment method "Check".
        4. Click "Save".
        5. 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

          1. Search for "Create Number Define Groups and Assign to Receipt Lots (ID: 105840)" configuration activity and create a number range for the year.
          2. Search for "Create Receipt Lots and Assign to Business Places (ID: 101088)" configuration activity, and assign the number range to the company code.
          3. 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

            Product

            SAP S/4HANA Cloud Public Edition all versions