SAP Knowledge Base Article - Public

3729303 - Runtime error 'BEHAVIOR_ILLEGAL_STATEMENT' during contract creation in App 'Contract Management' - SAP S/4HANA Cloud Public Edition

Symptom

  • Error occurs when creating a contract in the contract management application.
  • Error occurs specifically for company codes in 'IN' country.
  • 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 contract management application.
  2. Input header and other mandatory fields.
  3. Select Indian company code.
  4. Click 'Create'.
  5. Observe the error message: 'BEHAVIOR_ILLEGAL_STATEMENT'.

Cause

No Business Place/Section code is maintained, which is a mandatory field in Indian localization.

Resolution

  1. Use the 'Manage Contract' app instead of the 'Contract Management' app.
  2. Verify that the Business Place/Section code is maintained, as these fields are mandatory for Indian localization.
  3. Attempt to create the contract via the 'Manage Contract' app.

See Also

Keywords

contract creation error, behavior_illegal_statement, odata request terminated, business place, section code, india, manage contract, contract management, runtime error, re-fx , KBA , RE-FX-CN-2CL , Contract (Public Cloud) , RE-FX-LC-IN , India , RE-FX-2CL , Flexible Real Estate Management (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions