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
- Open the contract management application.
- Input header and other mandatory fields.
- Select Indian company code.
- Click 'Create'.
- Observe the error message: 'BEHAVIOR_ILLEGAL_STATEMENT'.
Cause
No Business Place/Section code is maintained, which is a mandatory field in Indian localization.
Resolution
- Use the 'Manage Contract' app instead of the 'Contract Management' app.
- Verify that the Business Place/Section code is maintained, as these fields are mandatory for Indian localization.
- 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
SAP Knowledge Base Article - Public