Symptom
While performing Change of Stock operation through the web service: InventoryProcessingGoodsAndActivityConfirmationGoodsConfirmationIn the below error occurs.
Error: Stock category not valid; only one stock category permitted
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to Application and User Management work center.
- Go to Service Explorer view.
- Search for the service: InventoryProcessingGoodsAndActivityConfirmationGoodsConfirmationIn.
- Select the service and download the WSDL file.
- Create a new project in the SoapUI.
- Execute the query using the request payload in SoapUI.
- The error appears in the response payload.
Error: Stock category not valid; only one stock category permitted
Cause
While removing inspection status of a material through Change of Stock operation via webservice the request payload contains the tag <TargetInventoryStockStatusCode>''</TargetInventoryStockStatusCode>.
Resolution
- When no value is provided for the TargetInventoryStockStatusCode tag, do not use single quotation marks ('').
- Instead, use self-closing tag: <TargetInventoryStockStatusCode/>.
See Also
Keywords
Stock Category; Inventory Processing; InventoryProcessingGoodsAndActivityConfirmationGoodsConfirmationIn; Goods and Activity Confirmation; Webservice; Change of Stock; Payload Error; Invalid Stock Category; SOAP UI; Self-Closing Tag Format; Inspection Stock; Not Inspection Stock; Stock category Not Valid; Only One Stock Category Permitted , KBA , AP-IP-INV , Inventory , AP-IP-GAC , Goods and Activity Confirmation , Problem
SAP Knowledge Base Article - Public