Symptom
When result recording through API_INSPECTIONLOT_SRV/A_InspectionResult, even if all required properties are maintained in payload, no matter using POST or PATCH method, error message QECOPY/049 "No results can be confirmed for charc &1 of inspection lot &2" occurs.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
1.Execute POST request <host>/sap/opu/odata/SAP/API_INSPECTIONLOT_SRV/A_InspectionResult to create a summarized inspection result for an inspection characteristic with the following payload:
{
"InspectionLot": "*",
"InspPlanOperationInternalID": "*",
"InspectionCharacteristic": "*",
"InspectionResultStatus": "5",
"InspectionValuationResult": "*",
"InspResultFrmtdMeanValue": "*",
"InspResultValidValuesNumber": 1,
"InspectionResultText": "*"
}.
2. Error message QECOPY/049 occurs in response.
Cause
The "InspResultValidValuesNumber" property is not the same as the sample size of the characteristic.
Resolution
Make sure the "InspResultValidValuesNumber" equals to the sample size of the characteristic in POST or PATCH payload.
Keywords
InspResultValidValuesNumber, API_INSPECTIONLOT_SRV, A_InspectionResult, sample size, QECOPY/049, summarized inspection result, No results can be confirmed , KBA , QM-IM-2CL , Quality Inspection (Public Cloud) , Problem
SAP Knowledge Base Article - Public