Symptom
After result recording through API_INSPECTIONLOT_SRV/A_InspectionCharacteristic, each result has been recorded and valuated. However, on characteristic level, the results record status is still " 2- Processed". If you manually change the results and save, the results record status will be changed to "5 -Processing Is Completed".
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Use API SAP/API_INSPECTIONLOT_SRV/A_InspectionCharacteristic to post all single inspection results for sample size.
- Check in Manage Inspection Lot app or Display Inspection Results - For Operation app, the valuation shown as "no valuation" and the results record status shown as "2 - Processed" on characteristic level.
- Manually update individual result fields.
- The results record status changed to "5 -Processing Is Completed" on characteristic level.
Cause
It's standard system behavior.
If results are posted through API API_INSPECTIONLOT_SRV/A_InspectionCharacteristic, the valuation will only happen on single result level but not on characteristic level. As a result, the results record status remains "2 - Processed" for the characteristic.
Resolution
When single results are recorded, an additional PATCH request using the summarized result recording API (API_INSPECTIONLOT_SRV/A_InspectionResult) is required to set the valuation and the results record status of the whole characteristic.
Below is an example:
PATCH <host>/sap/opu/odata/sap/API_INSPECTIONLOT_SRV/A_InspectionResult(InspectionLot='010000002750',InspPlanOperationInternalID='1',InspectionCharacteristic='0030') ,
Payload: {"InspectionResultStatus": "5"}
Response: 204 no content.
See Also
- Help Portal : Create/Update Single Inspection Results.
- Help Portal : Create/Update Summarized Inspection Result.
Keywords
API_INSPECTIONLOT_SRV, A_InspectionCharacteristic, A_InspectionResult, result recording, valuation, results record status, Processing is Completed , KBA , QM-IM-RR-2CL , Results Recording (Public Cloud) , Problem
SAP Knowledge Base Article - Public