Symptom
- ABAP programming error occurs with runtime error BEHAVIOR_ILLEGAL_STATEMENT.
- Error message: "Statement 'SUBMIT_AND_RETURN' is not allowed with this status."
- Execution takes place in a transactional context where a BO implementation is active for "R_INSPECTIONLOTTP".
- The termination occurred in ABAP program or include "LQEEVU21", in "QEEV_SAMPLING_INSTRUCT_PRINT".
- The main program was a custom program.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Read more...
Environment
- SAP R/3
- SAP R/3 Enterprise
- SAP ERP Central Component
- SAP ERP
- SAP Enhancement package for SAP ERP
- SAP Enhancement package for SAP ERP, version for SAP HANA
- SAP S/4HANA, on-premise
- SAP S/4HANA Cloud Private Edition
Product
SAP ERP Central Component all versions ; SAP ERP all versions ; SAP R/3 Enterprise all versions ; SAP R/3 all versions ; SAP S/4HANA Cloud Private Edition all versions ; SAP S/4HANA all versions ; SAP enhancement package for SAP ERP all versions ; SAP enhancement package for SAP ERP, version for SAP HANA all versions
Keywords
behavior_illegal_statement, submit_and_return, rap bo transactional context violation, abap programming error, runtime error, sap s/4hana, quality inspection, qm-im-rr, lqeevu21, qeev_sampling_instruct_print , KBA , QM-IM , Quality Inspection , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview