SAP Knowledge Base Article - Public

3497733 - Get Runtime Error: 'BEHAVIOR_ILLEGAL_STATEMENT' in Record Inspection Results app

Symptom

When recording results for an inspection lot in Record Inspection Results app, the following error message shows up:
Runtime Error: 'BEHAVIOR_ILLEGAL_STATEMENT'. The OData request processing has been abnormally terminated. If you use SAP S/4HANA Cloud, please create an incident. Otherwise, if "Runtime Error" is not initial, launch ADT feed "Runtime Errors" or transaction ST22 / SM21 (system log analysis) for details and analysis. 

Environment

SAP S/4HANA Public Cloud

Reproducing the Issue

  1. Open Record Inspection Results app.
  2. Enter inspection lot number.
  3. Select a result code for the characteristic
  4. After clicking "Save", the error message shows up.

Cause

The dump happens because the codes maintained in the selected set don't exist in the code group. For example, their names are not exactly the same.

Resolution

Please maintain the selected set codes properly.

Keywords

BEHAVIOR_ILLEGAL_STATEMENT, Record Inspection Results, selected set, code group , KBA , QM-PT-BD-2CL , Basic Data (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions