SAP Message Q5025 - Operation '&1' is not allowed for inspection lot '&2'

Diagnosis
The handheld application has not followed the specified sequence ofoperations when confirming results.
Refer to the manufacturer of the handheld application.
Technical details:
In a logical unit of work (LUW) results linked to an inspection lot andoperation must be confirmed. If you have already switched to anotheroperation, no more results can be confirmed for a previous operation.

System Response
The data for the operation is not transferred.

Procedure
There are several ways to avoid this problem:

  • Sort your results tables according to INSPLOT and INSPOPER before
  • confirming results.
    • Execute a BapiService.TransactionCommit (BAPI_TRANSACTION_COMMIT).
    • After this, you can again confirm results for the operation.