Symptom
You have maintained property "Customer" (as an example) in the request body. When creating inspection lot through API_INSPECTIONLOT_SRV/A_InspectionLot with this payload, error message QM_API_ODATA_MSG/016 "Property & is not permitted" occurs in response.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Execute POST request <host>/sap/opu/odata/SAP/API_INSPECTIONLOT_SRV/A_InspectionLot with the following payload:
{
"d": {
"Material": "*",
"Plant": "1010",
"InspectionLotType": "89",
"InspectionLotQuantity": "*",
"InspectionLotText": "*",
"InspectionLotStartDate": "*",
"InspectionLotEndDate": "*",
"Customer": "*"
}
} - Error message "QM_API_ODATA_MSG/016: Property CUSTOMER is not permitted". occurs in response.
Cause
This is standard behavior.
The property "Customer" (as an example) is not supported in the request body of create operations on entity A_InpectionLot.
Resolution
Make sure only the following properties are added to the request body:
- Material、Plant、InspectionLotType、InspectionLotQuantity、Batch、BatchStorageLocation、InspectionLotText、InspectionLotEndDate.
See Also
Help portal: Create Inspection Lot.
Keywords
inspection lot, QM_API_ODATA_MSG/016, property not permitted, API_INSPECTIONLOT_SRV, 400 Bad Request , KBA , QM-IM-2CL , Quality Inspection (Public Cloud) , Problem
SAP Knowledge Base Article - Public